runtime: Build for System.Runtime fails within VS
Cleaned and synced to today
build.cmd clr+libs -rc release
build.cmd -subset libs.tests -rc release
build.cmd -subset libs.tests -framework net48 -rc release
build -vs System.Runtime
Build in VS and it fails with
7>C:\git\runtime\.dotnet\sdk\5.0.100-preview.8.20362.3\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(195,5): error MSB4018: The "GenerateDepsFile" task failed unexpectedly.
7>C:\git\runtime\.dotnet\sdk\5.0.100-preview.8.20362.3\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(195,5): error MSB4018: System.NullReferenceException: Object reference not set to an instance of an object.
7>C:\git\runtime\.dotnet\sdk\5.0.100-preview.8.20362.3\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(195,5): error MSB4018: at Microsoft.NET.Build.Tasks.ReferenceInfo.GetVersion(ITaskItem referencePath)
7>C:\git\runtime\.dotnet\sdk\5.0.100-preview.8.20362.3\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(195,5): error MSB4018: at Microsoft.NET.Build.Tasks.ReferenceInfo.CreateReferenceInfo(ITaskItem referencePath)
7>C:\git\runtime\.dotnet\sdk\5.0.100-preview.8.20362.3\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(195,5): error MSB4018: at Microsoft.NET.Build.Tasks.ReferenceInfo.CreateReferenceInfos(IEnumerable`1 referencePaths)
7>C:\git\runtime\.dotnet\sdk\5.0.100-preview.8.20362.3\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(195,5): error MSB4018: at Microsoft.NET.Build.Tasks.GenerateDepsFile.WriteDepsFile(String depsFilePath)
7>C:\git\runtime\.dotnet\sdk\5.0.100-preview.8.20362.3\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(195,5): error MSB4018: at Microsoft.NET.Build.Tasks.GenerateDepsFile.ExecuteCore()
7>C:\git\runtime\.dotnet\sdk\5.0.100-preview.8.20362.3\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(195,5): error MSB4018: at Microsoft.NET.Build.Tasks.TaskBase.Execute()
7>C:\git\runtime\.dotnet\sdk\5.0.100-preview.8.20362.3\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(195,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
7>C:\git\runtime\.dotnet\sdk\5.0.100-preview.8.20362.3\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(195,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
7>Done building project "System.Runtime.Tests.csproj" -- FAILED.
I have a design time binlog available.
Reproes with both VS 16.8.0 and 16.6.5.
From the binlog we know it’s when VS is trying to build with TF=Unix.
@ericstj any thoughts? @ViktorHofer and @safern are puzzled.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (16 by maintainers)
The issue here is that we have just buid net5.0-windows from the root and trying to build the tests for net5.0-unix as well from the vs. When we build from the vs, it doesn’t build all the project references and expects that these are already built. Doing a build on tests
i will try Adding all the project dependencies to the sln.