cmake(dotnet): Fix Sample and Test csproj.in

Now correctly use the copied .cs file instead of the original one.
Which means hacking the `<CMAKE_BINARY_DIR>/dotnet/<component>/<sample>/<sample>.cs`
then running `dotnet build` behave as expected...
This commit is contained in:
Corentin Le Molgat
2025-03-28 11:46:12 +01:00
parent 36220e039d
commit b13bc4085b
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@
</PropertyGroup>
<ItemGroup>
<Compile Include="@SAMPLE_FILE_NAME@" />
<Compile Include="@SAMPLE_NAME@.cs" />
<PackageReference Include="@DOTNET_PROJECT@" Version="@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.*" />
</ItemGroup>
</Project>

View File

@@ -32,7 +32,7 @@
</PropertyGroup>
<ItemGroup>
<Compile Include="@TEST_FILE_NAME@" />
<Compile Include="@TEST_NAME@.cs" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="xunit" Version="2.8.2" />
<PackageReference Include="xunit.runner.console" Version="2.8.2" />