0

現在、Visual Studio 2008バージョン9.0.30729.4462をインストールしていますが、すべてがリンクしていると思われるかなり奇妙な問題が発生しています。

1.ソリューションを構築すると、デバッグ出力に次の5〜10個の出力が表示されます。

Project file contains ToolsVersion="4.0", which is not supported by this version of MSBuild. Treating the project as if it had ToolsVersion="3.5".

プロジェクトのすべての.csprojファイルには。が含まれていますtoolsversion="3.5"

2.プロジェクトのプロパティの[セキュリティ]タブにアクセスしようとすると、次のエラーが発生します。

Visual Studio was unable to determine the Code Access Security (CAS) permissions that are applicable to your project. The most likely cause is that your project references a strongly-named assembly that defines custom permissions, but that is not properly installed in the global assembly cache (GAC). To correct this, try the following:

1. Ensure that any custom permissions defining assemblies referenced by your project have been properly installed to the GAC. If any of these assemblies have been rebuilt or have had their version numbers modified, you must install the new assemblies in the GAC.

2. Restart Visual Studio.

ここで解決策を探すことは、これが通常ツールバージョン4.0の問題であることを示しています。ただし、私が言ったように、私のプロジェクトはすべてcsprojファイルに3.5が設定されています。

トラブルシューティングはどこから始めればよいですか?

4

1 に答える 1

0

これらの問題は両方とも、toolsversion="4.0" の問題に関連していました。私のソリューションには多くのプロジェクトが統合されているため、ソリューション ディレクトリで "toolsversion=" を検索しました。私の .csproj プロジェクト ファイルのいくつかは実際に 4.0 に設定されていたことがわかりました。すべてのプロジェクトが 3.5 に設定されると、セキュリティ タブが元に戻り、コンパイル時にエラーが発生しなくなりました。

于 2013-03-20T00:13:13.820 に答える