【发布时间】:2012-02-28 19:37:12
【问题描述】:
我们正在尝试通过 MSbuild 部署 Web 服务,然后使用 MSDeploy 将服务推送到 IIS 服务器。基于不同的环境,我们有单独的配置文件,需要根据它们所在的位置使用 .问题是在创建包时,其他 web..config 文件没有得到包。我试过使用
<CopyAllFilesToSingleFolderForPackageDependsOn>
CustomCollectFiles;
$(CopyAllFilesToSingleFolderForPackageDependsOn);
</CopyAllFilesToSingleFolderForPackageDependsOn>
结合
<Target Name="CustomCollectFiles">
<ItemGroup>
<FilesForPackagingFromProject Include="*.config">
<DestinationRelativePath>%(Filename)%(Extension)</DestinationRelativePath>
<FilesForPackagingFromProject>
</ItemGroup>
</Target>
但它似乎没有将文件复制过来。我做错了什么还是我可以选择将这些转换为转换文件?
【问题讨论】:
标签: web-services msbuild msdeploy