1

내가 비주얼 스튜디오 2010에서 실버 라이트 3 솔루션을 열려고했습니다, 그러나 나는 다음과 같은 오류지고있어 : 나는 것을 발견Visual Studio에서 실버 3 프로젝트를로드 할 수 없습니다 2010

Unable to read the project file 'ESM.Visualization.csproj'. C:\Code\ESM\ESM.Visualization\ESM.Visualization.csproj(238,3): The imported project "C:\Program Files(x86)\MSBuild\Microsoft\Silverlight\v3.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on the disk.

을 Silverlight v3.0이 없지만 Silverlight v4.0이 이미 설치되어 있으므로 Visual Studio 2010에서 Silverlight 3.0을 구할 수있는 방법을 찾지 못했습니다.

+0

http://stackoverflow.com/questions/3591369/silverlight-4- ([해결 - 마이크로 소프트 실버 - CSHARP - 대상은 - - - 찾을 수 없습니다] resolving-microsoft-silverlight-csharp-targets-was-found)는 유용한 링크입니다. – Shubh

답변

3

* .csproj 파일을 수동으로 변경해야합니다.

텍스트 편집기에서 열고, 잘못된 코드 (번호 238, 내 생각)과 라인으로 이동하고 그렇게 보이는 것을 확인하십시오, 그런 다음이 줄을 변경

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" /> 

을의 내용을 설정 "4.0"에 두 번째 요소 : 또한

<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier> 
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> 
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion> 
+0

프로젝트에 악영향을 미칠 수 있습니까? 나는 그 일을 생각하고 있었지만 우연히 모든 것을 깨뜨리고 싶지 않았습니다. –

+0

@ Yawus, Visual Studio 편집기 (콤보 박스에서 다른 버전의 Sivlerlight 선택)를 사용하여 프로젝트 설정을 편집하면 동일하게 작동합니다. 마법은 없습니다. 기본 편집기는 * .csproj 파일 만 변경합니다. 따라서 동일한 작업을 수동으로 수행 할 수 있습니다. – vorrtex

관련 문제