Visual Studio 2010에서 여러 프로젝트가 포함 된 .NET 2.0 솔루션 (모든 것이 올바르게 빌드 된 곳)을 Visual Studio 2010으로 변환했습니다. Visual Studio 2010을 Admistrator 모드로 실행하고 "Build Solution"을 선택합니다. 일부에 실패한 빌드 프로젝트의 일부 단계를 포스트 빌드 : 나는이 같은 프로젝트를 선택하면Visual Studio 2008에서 변환 된 솔루션이 실패 함 Visual Studio 2010의 Gacutil 사후 구축 단계
Microsoft (R) .NET Global Assembly Cache Utility. Version 3.5.30729.1
Copyright (c) Microsoft Corporation. All rights reserved.
Failure adding assembly to the cache: Access denied. You might not have administrative credentials to perform this task. Contact your system administrator for assistance.
36>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets(3717,9): error MSB3073: The command ""C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\gacutil.exe" /i MyAssembly.dll" exited with code 1.
을, 단지 개별 프로젝트보다는 전체 솔루션을 구축 한 다음 gacutil 명령은 성공적이다.
권한 오류 ("액세스가 거부되었습니다")가 발생하지만 Visual Studio 2010이 관리자 모드로 실행되고 있음을 확인한 것처럼 오류 메시지가 표시됩니다. 제목 표시 줄에 "MySolution - Microsoft Visual Studio (관리자) ").
전체 솔루션을 빌드 할 때 gacutil이 실패하지만 솔루션의 단일 프로젝트 만 빌드 할 때 성공하지 못하는 이유는 무엇입니까?
솔루션 프로젝트에서 프로젝트 참조 또는 dll 참조를 사용 했습니까? – denfromufa