PluralSightでビデオをフォローしています。私はソースファイルをダウンロードしてフォローしています。私は、ファイルをダウンロードし、プログラムを実行しようとしたとき.NET MVCコアの現在のSDKで.NET標準2.0をサポートしていません
、私は終わった:
Severity Code Description Project File Line Suppression State Error The current .NET SDK does not support targeting .NET Standard 2.0. Either target .NET Standard 1.6 or lower, or use a version of the .NET SDK that supports .NET Standard 2.0. Microsoft.AspNetCore.Mvc.Formatters.Xml C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference.targets 126
私もthisポストに続き、別途2.0のコアをダウンロードし、それはまだ私にこのエラーを与えているしています。 Visual Studio 15.3に更新した後でも。
ご協力いただきまして誠にありがとうございます。ありがとうございました!
Severity Code Description Project File Line Suppression State Error KRB1001 Package references have not been pinned. Run './build.cmd /t:Pin'. Also, you can run './build.cmd /t:Restore' which will pin and restore packages. 'build.cmd' can be found in 'C:\Users\ty_lo\source\Mvc\'. VersioningWebSite C:\Users\ty_lo\source\Mvc\Directory.Build.targets 12
Global.aspxは、ASP.NET MVCではなくASP.NETのコアMVCです。開始するのに最適な場所は公式の文書です:https://docs.microsoft.com/en-us/aspnet/core/ – Tseng
あなたは2.0をダウンロードしましたが、プロジェクト設定を2.0に変更しましたか? – Alexan
@Alexan global.jsonファイルのバージョンを変更しましたが、プロジェクト設定で変更しませんでした。これはどうですか? – giggidy