You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MSBuild change dotnet/msbuild#14274 (passing ExcludeRestorePackageImports=true during implicit restore, behind change wave 18.10) regressed the test ItCanTestAMultiTFMProjectWithImplicitRestore with:
NuGet.targets(571,5): error MSB3202: The project file "...\TestLibrary\TestLibrary.csproj" was not found.
Root-cause analysis is in #55245. The MultiTFMXunitProject/XUnitProject test asset intentionally has a nonexistent <ProjectReference> to TestLibrary.csproj; restore is supposed to skip it gracefully. Passing ExcludeRestorePackageImports=true collapses the restore build configuration and causes the missing project to leak into a NuGet _GenerateRestoreGraphProjectEntry MSBuild call that does not set SkipNonexistentProjects, so it errors instead of skipping.
Action taken
The MSBuild change is being reverted in dotnet/msbuild#14349. To unblock codeflow in the meantime, ItCanTestAMultiTFMProjectWithImplicitRestore has been temporarily disabled.
Background
The MSBuild change dotnet/msbuild#14274 (passing
ExcludeRestorePackageImports=trueduring implicit restore, behind change wave 18.10) regressed the testItCanTestAMultiTFMProjectWithImplicitRestorewith:Root-cause analysis is in #55245. The
MultiTFMXunitProject/XUnitProjecttest asset intentionally has a nonexistent<ProjectReference>toTestLibrary.csproj; restore is supposed to skip it gracefully. PassingExcludeRestorePackageImports=truecollapses the restore build configuration and causes the missing project to leak into a NuGet_GenerateRestoreGraphProjectEntryMSBuild call that does not setSkipNonexistentProjects, so it errors instead of skipping.Action taken
The MSBuild change is being reverted in dotnet/msbuild#14349. To unblock codeflow in the meantime,
ItCanTestAMultiTFMProjectWithImplicitRestorehas been temporarily disabled.What to do here
Re-enable
ItCanTestAMultiTFMProjectWithImplicitRestoreonce:The test lives in
test/dotnet.Tests/CommandTests/Test/GivenDotnetTestBuildsAndRunsTestFromCsprojForMultipleTFM.cs.