Skip to content

Commit 37d4829

Browse files
authored
test: exclude Microsoft.NET.Test.Sdk from Microsoft.ComponentDetection.TestsUtilities project (#321)
1 parent 7002566 commit 37d4829

File tree

6 files changed

+18
-11
lines changed

6 files changed

+18
-11
lines changed

test/Directory.Build.props

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22

33
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))"/>
44

5-
<PropertyGroup Label="Build">
6-
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
7-
</PropertyGroup>
8-
95
<ItemGroup Label="Package References">
10-
<PackageReference Include="Microsoft.NET.Test.Sdk"/>
116
<PackageReference Include="MSTest.TestAdapter"/>
127
<PackageReference Include="MSTest.TestFramework"/>
138
<PackageReference Include="Moq"/>
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<ItemGroup>
3+
<ItemGroup Label="Project References">
44
<ProjectReference Include="..\Microsoft.ComponentDetection.TestsUtilities\Microsoft.ComponentDetection.TestsUtilities.csproj"/>
55
</ItemGroup>
66

7+
<ItemGroup Label="Package References">
8+
<PackageReference Include="Microsoft.NET.Test.Sdk"/>
9+
</ItemGroup>
10+
711
</Project>

test/Microsoft.ComponentDetection.Contracts.Tests/Microsoft.ComponentDetection.Contracts.Tests.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<ProjectReference Include="..\..\src\Microsoft.ComponentDetection.Contracts\Microsoft.ComponentDetection.Contracts.csproj"/>
55
</ItemGroup>
66

7-
<ItemGroup>
7+
<ItemGroup Label="Package References">
8+
<PackageReference Include="Microsoft.NET.Test.Sdk"/>
89
<PackageReference Include="System.Reactive"/>
910
<PackageReference Include="packageurl-dotnet"/>
1011
</ItemGroup>

test/Microsoft.ComponentDetection.Detectors.Tests/Microsoft.ComponentDetection.Detectors.Tests.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<ProjectReference Include="..\Microsoft.ComponentDetection.TestsUtilities\Microsoft.ComponentDetection.TestsUtilities.csproj" />
55
</ItemGroup>
66

7-
<ItemGroup>
7+
<ItemGroup Label="Package References">
8+
<PackageReference Include="Microsoft.NET.Test.Sdk"/>
89
<PackageReference Include="NuGet.Versioning" />
910
<PackageReference Include="System.Reactive" />
1011
<PackageReference Include="packageurl-dotnet" />

test/Microsoft.ComponentDetection.Orchestrator.Tests/Microsoft.ComponentDetection.Orchestrator.Tests.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@
55
<ProjectReference Include="..\Microsoft.ComponentDetection.TestsUtilities\Microsoft.ComponentDetection.TestsUtilities.csproj"/>
66
</ItemGroup>
77

8+
<ItemGroup Label="Package References">
9+
<PackageReference Include="Microsoft.NET.Test.Sdk"/>
10+
</ItemGroup>
11+
812
</Project>
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3+
<PropertyGroup Label="Build">
4+
<IsPackable>true</IsPackable>
5+
</PropertyGroup>
6+
37
<ItemGroup Label="Project References">
48
<ProjectReference Include="..\..\src\Microsoft.ComponentDetection.Detectors\Microsoft.ComponentDetection.Detectors.csproj"/>
59
<PackageReference Include="System.Reactive"/>
610
</ItemGroup>
7-
<PropertyGroup>
8-
<IsPackable>true</IsPackable>
9-
</PropertyGroup>
11+
1012
</Project>

0 commit comments

Comments
 (0)