8
我旁邊的配置在我的Web.config文件的MSBuild變換一個配置幾次
<Target Name="UpdateWebConfigForProjectsBeforeRun">
<ItemGroup>
<FilesToTransofm Include="ProjectsDeployBin\Web.*.$(Configuration).config"/>
</ItemGroup>
<Message Text="Transform file: %(FilesToTransofm.Identity)" />
<TransformXml Source="web.config"
Transform="%(FilesToTransofm.Identity)"
Destination="web.config" />
</Target>
什麼,我試圖做它得到ProjectsDeployBin目錄下的所有CONFIGS與每個文件適用於主要的web.config。
第一次轉換後主web.config被msbuild鎖定。
那麼我該如何解決這個問題?有沒有其他方法來通過文件集合來轉換我的web.config? 謝謝。