Skip to content

Commit

Permalink
test: exclude Microsoft.NET.Test.Sdk from `Microsoft.ComponentDetec…
Browse files Browse the repository at this point in the history
…tion.TestsUtilities` project (#321)
  • Loading branch information
JamieMagee authored Oct 21, 2022
1 parent 7002566 commit 37d4829
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 11 deletions.
5 changes: 0 additions & 5 deletions test/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@

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

<PropertyGroup Label="Build">
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
</PropertyGroup>

<ItemGroup Label="Package References">
<PackageReference Include="Microsoft.NET.Test.Sdk"/>
<PackageReference Include="MSTest.TestAdapter"/>
<PackageReference Include="MSTest.TestFramework"/>
<PackageReference Include="Moq"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<ItemGroup>
<ItemGroup Label="Project References">
<ProjectReference Include="..\Microsoft.ComponentDetection.TestsUtilities\Microsoft.ComponentDetection.TestsUtilities.csproj"/>
</ItemGroup>

<ItemGroup Label="Package References">
<PackageReference Include="Microsoft.NET.Test.Sdk"/>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<ProjectReference Include="..\..\src\Microsoft.ComponentDetection.Contracts\Microsoft.ComponentDetection.Contracts.csproj"/>
</ItemGroup>

<ItemGroup>
<ItemGroup Label="Package References">
<PackageReference Include="Microsoft.NET.Test.Sdk"/>
<PackageReference Include="System.Reactive"/>
<PackageReference Include="packageurl-dotnet"/>
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<ProjectReference Include="..\Microsoft.ComponentDetection.TestsUtilities\Microsoft.ComponentDetection.TestsUtilities.csproj" />
</ItemGroup>

<ItemGroup>
<ItemGroup Label="Package References">
<PackageReference Include="Microsoft.NET.Test.Sdk"/>
<PackageReference Include="NuGet.Versioning" />
<PackageReference Include="System.Reactive" />
<PackageReference Include="packageurl-dotnet" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@
<ProjectReference Include="..\Microsoft.ComponentDetection.TestsUtilities\Microsoft.ComponentDetection.TestsUtilities.csproj"/>
</ItemGroup>

<ItemGroup Label="Package References">
<PackageReference Include="Microsoft.NET.Test.Sdk"/>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup Label="Build">
<IsPackable>true</IsPackable>
</PropertyGroup>

<ItemGroup Label="Project References">
<ProjectReference Include="..\..\src\Microsoft.ComponentDetection.Detectors\Microsoft.ComponentDetection.Detectors.csproj"/>
<PackageReference Include="System.Reactive"/>
</ItemGroup>
<PropertyGroup>
<IsPackable>true</IsPackable>
</PropertyGroup>

</Project>

0 comments on commit 37d4829

Please sign in to comment.