因此,我已经安装了VS 2010,并且正在修改我的MSBuild脚本,以便进行TeamCity构建集成.除了一个例外,一切都很顺利.
我如何告诉MSBuild我想要应用我在发布构建时创建的Web.conifg转换文件……
我有以下生成编译后的网站,但它输出一个web.配置,网络.调试.配置和网络.释放将配置文件(全部3个)保存到已编译的输出目录中.在studio中,当我执行"发布到文件"系统时,它将进行转换,并且只输出Web.配置适当的更改...
<Target Name="CompileWeb">
<MSBuild Projects="myproj.csproj" Properties="Configuration=Release;" />
</Target>
<Target Name="PublishWeb" DependsOnTargets="CompileWeb">
<MSBuild Projects="myproj.csproj"
Targets="ResolveReferences;_CopyWebApplication"
Properties="WebProjectOutputDir=$(OutputFolder)$(WebOutputFolder);
OutDir=$(TempOutputFolder)$(WebOutputFolder)\;Configuration=Release;" />
</Target>
任何帮助都会很好..!
I know this can be done by other means but I would like to do this using the new VS 2010 way if possible