novotnyllc / MSBuildSdkExtras

Extra properties for MSBuild SDK projects
MIT License
347 stars 42 forks source link

Build error on Visual Studio 16.1.0 #166

Closed YZahringer closed 5 years ago

YZahringer commented 5 years ago

I have several compilation errors after updating Visual Studio to version 16.1.0. I use MSBuild.Sdk.Extras/2.0.24.

NETSDK1005 Assets file 'Project.Shared\obj\project.assets.json' doesn't have a target for 'UAP,Version=v10.0.16299'. Ensure that restore has run and that you have included 'uap10.0.16299' in the TargetFrameworks for your project. C:\Program Files\dotnet\sdk\2.2.204\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.target

clairernovotny commented 5 years ago

That's a bug in 16.1: https://github.com/dotnet/project-system/issues/4854

MSiccDev commented 5 years ago

Any ideas to work around this until it gets fixed?

glennawatson commented 5 years ago

According to the bug you can side-by-side install previous versions of visual studio 16. See Oren's link above for details. I wouldn't be surprised if the fix is out this week though.

clairernovotny commented 5 years ago

Closing as external. The fix will be in VS 2019 16.1.2.

SimonCropp commented 5 years ago

@onovotny did u forget to close?

clairernovotny commented 5 years ago

Was waiting for 16.1.2 to be released first

SimonCropp commented 5 years ago

@onovotny ok good plan :)

clairernovotny commented 5 years ago

16.1.2 is available with the fix: https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes#16.1.2

jamesmcroft commented 4 years ago

Interestingly this issue has cropped back up again so it seems. Package version is 2.0.54 and .NET Core SDK is 3.1.201

jalbertSyncroTech commented 4 years ago

We're also seeing this with the latest VS 16.5.4. I've added a comment to the original dotnet bug report.

jalbertSyncroTech commented 4 years ago

This seems to be the same issue as https://github.com/novotnyllc/MSBuildSdkExtras/issues/200