Skip to content

Commit a8ae853

Browse files
committed
Tweak test
1 parent 90898c7 commit a8ae853

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

test/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopLibrary.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,8 @@ public void PackageReferences_with_private_assets_do_not_appear_in_deps_file(str
246246
}
247247
else
248248
{
249-
dependencyContext.CompileLibraries.Any(l => l.Name.Equals("Microsoft.AspNetCore.App")).Should().BeFalse();
249+
dependencyContext.CompileLibraries.Any(l => l.Name.Equals("Microsoft.AspNetCore.App")).Should().BeTrue();
250+
dependencyContext.CompileLibraries.Any(l => l.Name.Equals("Microsoft.AspNetCore")).Should().BeFalse();
250251
}
251252
}
252253
}

test/TestAssets/TestProjects/RazorSimpleMvc22/SimpleMvc22.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
</PropertyGroup>
1919

2020
<ItemGroup>
21+
<PackageReference Include="Microsoft.AspNetCore" Version="2.2.0" ExcludeAssets="runtime"/>
2122
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.2.6" PrivateAssets="All" />
2223
<PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.2.0" PrivateAssets="All" />
2324
</ItemGroup>

0 commit comments

Comments
 (0)