2013-03-18 5 views
0

현재 Visual Studio 2008, 버전 9.0.30729.4462가 설치되어 있으며 모두 링크되어 있다고 여겨지는 이상한 문제가 있습니다. 내 솔루션을 구축 할 때Visual Studio 2008 버전 문제

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.

여기에 솔루션을 찾고를 이것은 일반적으로 toolsversion 4.0 문제임을 나타냅니다. 그러나, 내가 말했듯이, 모든 프로젝트는 csproj 파일에 3.5 세트를 가지고 있습니다.

어디에서 문제 해결을 시작해야합니까?

답변

0

이 두 가지 문제는 toolsversion = "4.0"문제와 관련이 있습니다. 솔루션에 많은 프로젝트가 통합되어 있으므로 솔루션 디렉토리에서 "toolsversion ="을 검색했습니다. 내 .csproj 프로젝트 파일 중 일부가 실제로 4.0으로 설정되었습니다. 모든 프로젝트가 3.5로 설정되면 보안 탭이 다시 돌아 왔으며 컴파일 할 때 더 이상 오류가 발생하지 않았습니다.