Visual Studio 15 Preview 3 で単純なコンソール アプリケーションを実行できませConsole Application
んVisual C# -> Windows
。次のエラーで失敗します。
1>C:\Program Files (x86)\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(3389,7): error MSB4018: The "GetFrameworkPath" task failed unexpectedly.
1>C:\Program Files (x86)\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(3389,7): error MSB4018: System.ArgumentException: Visual Studio version "4.0" is not supported. Please specify a value from the enumeration Microsoft.Build.Utilities.VisualStudioVersion.
1>C:\Program Files (x86)\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(3389,7): error MSB4018: at Microsoft.Build.Shared.ErrorUtilities.ThrowArgument(Exception innerException, String resourceName, Object[] args)
1>C:\Program Files (x86)\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(3389,7): error MSB4018: at Microsoft.Build.Shared.FrameworkLocationHelper.GetVisualStudioSpec(Version version)
1>C:\Program Files (x86)\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(3389,7): error MSB4018: at Microsoft.Build.Tasks.GetFrameworkPath.<>c.<.cctor>b__0_5()
1>C:\Program Files (x86)\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(3389,7): error MSB4018: at System.Lazy`1.CreateValue()
1>C:\Program Files (x86)\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(3389,7): error MSB4018: --- End of stack trace from previous location where exception was thrown ---
1>C:\Program Files (x86)\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(3389,7): error MSB4018: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
1>C:\Program Files (x86)\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(3389,7): error MSB4018: at System.Lazy`1.get_Value()
1>C:\Program Files (x86)\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(3389,7): error MSB4018: at Microsoft.Build.Tasks.GetFrameworkPath.get_FrameworkVersion40Path()
1>C:\Program Files (x86)\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(3389,7): error MSB4028: The "GetFrameworkPath" task's outputs could not be retrieved from the "FrameworkVersion40Path" parameter. Visual Studio version "4.0" is not supported. Please specify a value from the enumeration Microsoft.Build.Utilities.VisualStudioVersion.
ここに私の App.config ファイルがあります:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>
デフォルトのテンプレート ボイラー プレート コードに新しい参照、nuget パッケージ、またはコードを追加していません。私はすでに次の手順を実行しました:
- Visual Studio を再起動します
- クリーン ソリューション
- 管理者権限で Visual Studio を実行する
誰かが同様の問題に直面している場合は助けてください。
同様の問題が Visual Studio コミュニティ サイトに記録されているのを見ましたが、誰も応答していません。