I just created a new .NET Core web application (all defaults, not webapi or web application) and I get the following error:
Unexpected dependency "System.Runtime.CompilerServices.Unsafe" without version number.
1> ------ Build started: Project: WebApplication1, Configuration: Debug Any CPU ------ 1> C: \ Program Files (x86) \ Microsoft Visual Studio \ 2017 \ Professional \ MSBuild \ SDKs \ Microsoft .NET.Sdk \ build \ Microsoft.PackageDependencyResolution.targets (154.5): Error: Unexpected dependency "System.Runtime.CompilerServices.Unsafe" without version number.
1> WebApplication1 โ c: \ users \ chris \ documents \ visual studio 2017 \ Projects \ WebApplication1 \ Bin \ Debug \ netcoreapp1.1 \ WebApplication1.dll
1> Done the building project "WebApplication1.csproj" - FAULT.
========== Build: 0 failed or updated, 1 failed, 0 skipped ===========
This is a recent installation of VS2017 with the .NET kernel installed as part of this. If I follow the error, it will lead me to the above goals and complaints below: undefined:

UPDATE:
I tried everything until the complete uninstallation and reinstallation of VS 2017. It seems that this only happens with .NET Core 1.1 templates (even with updated nuget packages).
source
share