mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
* build(csharp): rename NuGet package to Microsoft.Regorus Align the NuGet package identity with the Microsoft.Regorus namespace and the Microsoft.* reserved prefix on nuget.org in preparation for publishing the package. - Add explicit <PackageId>Microsoft.Regorus</PackageId> - Update PackageVersion in Directory.Packages.props - Update version bump regex for new package name * build(csharp): default to ProjectReference for in-repo consumers Use ProjectReference for Regorus.Tests, Benchmarks, TestApp, and TargetExampleApp so that local development does not require a pre-built .nupkg. PackageReference mode remains available via /p:UsePackageReference=true for validating the packaged NuGet. * build(csharp): add nuget.config with source mapping and xtask integration Add explicit NuGet configuration to ensure in-repo builds always resolve Microsoft.Regorus from the locally built package, even after the package is published on nuget.org. - Add nuget.config with <clear/> and packageSourceMapping - Update xtask to copy .nupkg into local-packages/ directory - Pass /p:UsePackageReference=true from xtask for CI testing - Add restore validation step to the xtask test flow - Add .gitignore for the local-packages directory
27 lines
966 B
XML
27 lines
966 B
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<OutputType>Exe</OutputType>
|
|
<TargetFrameworks>net8.0</TargetFrameworks>
|
|
<RootNamespace>TestApp</RootNamespace>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
<LangVersion>10.0</LangVersion>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<!-- Allow CI to append the version suffix for locally built packages -->
|
|
<RegorusPackageVersionSuffix Condition="'$(VersionSuffix)' != ''">-$(VersionSuffix)</RegorusPackageVersionSuffix>
|
|
<UsePackageReference Condition="'$(UsePackageReference)' == ''">false</UsePackageReference>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup Condition="'$(UsePackageReference)' != 'true'">
|
|
<ProjectReference Include="../Regorus/Regorus.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition="'$(UsePackageReference)' == 'true'">
|
|
<PackageReference Include="Microsoft.Regorus" />
|
|
</ItemGroup>
|
|
</Project>
|