는 내가있어 (경로가 단축) : 결과VS2010 Web.config 변환을 NAnt에서 작동시키는 방법은 무엇입니까? 내 NANT 파일에서
<echo message="#### TARGET - compile ####"/>
<echo message=""/>
<echo message="Build Directory is ${build.dir}" />
<exec program="${framework}\msbuild.exe"
commandline="..\src\Solution.sln /m /t:Clean /p:Configuration=Release" />
<exec program="${framework}\msbuild.exe"
commandline="..\src\Solution.sln /m /t:Rebuild /p:Configuration=Release" />
<exec program="${framework}\msbuild.exe"
commandline="..\src\Solution.sln /m /t:TransformWebConfig /p:Configuration=Release" />
:
Build FAILED. "C:\..\src\Solution.sln" (TransformWebConfig target) (1) -> C:\..\src\Solution.sln.metaproj : error MSB4057: The target "TransformWebConfig" does not exist in the project. [C:\..\src\Solution.sln] 0 Warning(s) 1 Error(s)Time Elapsed 00:00:00.05
솔루션 및 관련 프로젝트의 모든 VS2010하고 웹 응용 프로그램은 .csproj에서 올바른 참조를 가지고 있습니다.
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
이것은 올바르게 작동하지 않아야합니까?
처럼 일'UseWPP_CopyWebApplication = TRUE '트릭입니다 - 감사합니다! –