We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61ab712 commit 4df737fCopy full SHA for 4df737f
src/Tasks/Microsoft.NET.Build.Tasks.UnitTests/GivenADependencyContextBuilder.cs
@@ -195,6 +195,15 @@ public void ItDoesntCreateReferenceAssembliesWhenNoCompilationOptions()
195
.NotContain(d => d.Name == "System.Collections.NonGeneric.Reference");
196
}
197
198
+ [Fact]
199
+ public void ItDoesntCreateKeepUnneededRuntimeReferences()
200
+ {
201
+ DependencyContext dependencyContext = BuildDependencyContextWithReferenceAssemblies(useCompilationOptions: false);
202
+
203
+ dependencyContext.RuntimeLibraries.Count.Should().Be(1);
204
+ dependencyContext.RuntimeLibraries[0].Name.Should().Be("simple.dependencies"); // This is the entrypoint
205
+ }
206
207
[Fact]
208
public void ItHandlesReferenceAndPackageReferenceNameCollisions()
209
{
0 commit comments