루션에 프로젝트를 추가하면 참조에 느낌표가 표시되면서 빌드가 안 되는 경우가 있습니다.
이때, 프로젝트 파일 ( Example.csproj )을 열었을 때, 다음 문구가 있다면,
... <Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" /> <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> <PropertyGroup> <ErrorText>이 프로젝트는 이 컴퓨터에 없는 NuGet 패키지를 참조합니다. ... </ErrorText> </PropertyGroup> <Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" /> </Target> ... |
아래와 같이 <!-- ... --> 로 주석 처리를 해주면 됩니다.
|
< END >
'코딩 > Visual Studio' 카테고리의 다른 글
2017-11-10 Visual Studio에서 빈 솔루션 생성 (VS 2015) (0) | 2017.11.10 |
---|