문제

I have an MVC 3 apllication with several config transforms. In TFS build definition I set MSBuild Arguments in Advanced section to /p:DeployOnBuild=True /t:TransformWebConfig /p:Configuration=Release. But it has no effect. What is wrong?

도움이 되었습니까?

해결책

I found solution here. Just need to modify website project file:

 <Target Name="AfterBuild">
  <TransformXml Condition="Exists('$(OutDir)\_PublishedWebsites\$(TargetName)')" Source="Web.config" Transform="$(ProjectConfigTransformFileName)" Destination="$(OutDir)\_PublishedWebsites\$(TargetName)\Web.config" />
 </Target>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top