lightswitch icon indicating copy to clipboard operation
lightswitch copied to clipboard

MSBuild SDK Version Error

Open Axemasta opened this issue 5 years ago • 0 comments

When pulling the code to run the samples a fresh build all did not succeed. The LightSwitch.Agent project failed to build with the following errors:

iOS

/Users/myuser/.nuget/packages/msbuild.sdk.extras/2.0.29/Build/LanguageTargets/CheckMissing.targets(5,5): Error: 
The specified language targets for Xamarin.iOS10 is missing. 
Ensure correct tooling is installed for 'Xamarin.iOS'. Missing: 
'/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/xbuild/Xamarin/iOS/Xamarin.iOS.CSharp.targets' (LightSwitch.Agent)

Android

/Users/myuser/.nuget/packages/msbuild.sdk.extras/2.0.29/Build/LanguageTargets/CheckMissing.targets(5,5): Error: 
The specified language targets for monoandroid90 is missing. 
Ensure correct tooling is installed for 'monoandroid'. Missing: 
'/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/xbuild/Xamarin/Android/Xamarin.Android.CSharp.targets' (LightSwitch.Agent)

This looks to be an issue with the MSBuild SDK Extras that is fixed in a newer version (see issue)

The fix is to up the version number from <Project Sdk="MSBuild.Sdk.Extras/2.0.29">

to: <Project Sdk="MSBuild.Sdk.Extras/2.1.2">

Axemasta avatar Dec 24 '20 16:12 Axemasta