Skip to content

Microsoft.Build.NoTargets missing in prep-source-build on 10.0.0-preview.6 #2009

@corngood

Description

@corngood

Describe the Bug

When building 10.0.0-preview.6 in a sandbox without networking, I get these errors:

/build/dotnet-10.0.0-preview.6.25358.103/eng/init-detect-binaries.proj : error : Could not resolve SDK "Microsoft.Build.NoTargets". Exactly one of the probing messages below indicates why we could not resolve the SDK. Investigate and resolve that message to correctly specify the SDK.
/build/dotnet-10.0.0-preview.6.25358.103/eng/init-detect-binaries.proj : error :   SDK resolver "Microsoft.DotNet.MSBuildWorkloadSdkResolver" returned null.
/build/dotnet-10.0.0-preview.6.25358.103/eng/init-detect-binaries.proj : error :   Unable to find package Microsoft.Build.NoTargets. No packages exist with this id in source(s): dotnet-eng, dotnet-libraries, dotnet-public
/build/dotnet-10.0.0-preview.6.25358.103/eng/init-detect-binaries.proj : warning : Unable to load the service index for source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json.
/build/dotnet-10.0.0-preview.6.25358.103/eng/init-detect-binaries.proj : warning : Unable to load the service index for source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json.
/build/dotnet-10.0.0-preview.6.25358.103/eng/init-detect-binaries.proj : warning : Unable to load the service index for source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-libraries/nuget/v3/index.json.
/build/dotnet-10.0.0-preview.6.25358.103/eng/init-detect-binaries.proj : error MSB4236: The SDK 'Microsoft.Build.NoTargets' specified could not be found.

This worked okay on preview 5.

Steps to Reproduce

Build dotnetCorePackages.dotnet_10.stage0.vmr from NixOS/nixpkgs#426786

Other Information

I believe this is something to do with init-detect-binaries.proj being called from prep-source-build.sh without the bootstrap packages being available.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions