Skip to content

Commit e4dfe26

Browse files
committed
Debug build failure?
The **Windows - .NET Core** > **Prepare Solution** step is failing: ##[error]build-tools\VersionInfo\VersionInfo.csproj(0,0): Error MSB4236: The SDK 'Microsoft.Build.NoTargets' specified could not be found. D:\a\1\s\build-tools\VersionInfo\VersionInfo.csproj : error MSB4236: The SDK 'Microsoft.Build.NoTargets' specified could not be found. …which doesn't make sense, as `Microsoft.Build.NoTargets` is versioned in `global.json`, and similar usage works in xamarin-android… Hypothesis: it works elsewhere because the `.sln` is in the same dir as the `global.json`, which isn't the case here. Theory: adding `build-tools/global.json` will fix things. Time to test!
1 parent 2f1234c commit e4dfe26

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build-tools/global.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"sdk": {
3+
"allowPrerelease": true
4+
},
5+
"msbuild-sdks": {
6+
"Microsoft.Build.NoTargets": "2.0.1"
7+
}
8+
}

0 commit comments

Comments
 (0)