Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 9a65936

Browse files
ChristophLindemannkzu
authored andcommitted
Fix: Exclude scenario .cs files from test dll
The scenario .cs files where compiled into the main NuGet.Build.Packaging.Tests assembly, because they where not excluded from the Compile ItemGroup.
1 parent 264e41a commit 9a65936

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/Build/NuGet.Build.Packaging.Tests/NuGet.Build.Packaging.Tests.csproj

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,14 @@
3232
</ProjectReference>
3333
</ItemGroup>
3434
<ItemGroup>
35-
<None Remove="Scenarios\**\obj\**\*.*;Scenarios\**\bin\**\*.*" />
35+
<!-- Do not compile any scenario related generated files -->
36+
<Compile Remove="Scenarios\**\obj\**\*.*;Scenarios\**\bin\**\*.*" />
37+
38+
<!-- Do not compile any scenario related cs files, but add them as none -->
39+
<Compile Remove="Scenarios\**\*.cs" />
40+
<None Include="Scenarios\**\*.cs" />
41+
42+
<None Remove="Scenarios\**\obj\**\*.*;Scenarios\**\bin\**\*.*" />
3643
<None Remove="App.config" />
3744
<None Include="Scenarios\**\*.*proj;Scenarios\**\*.sln" />
3845
</ItemGroup>

0 commit comments

Comments
 (0)