是的。编辑设置文件名: SettingsFileGenerator.xml 中的设置
并改变
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s62"><Data ss:Type="String">Settings File Name:</Data></Cell>
<Cell ss:StyleID="s40"><Data ss:Type="String">Exported_LocalSettings.xml</Data></Cell>
<Cell ss:StyleID="s40"><Data ss:Type="String">DevSettings.xml</Data></Cell>
<Cell ss:StyleID="s40"><Data ss:Type="String">Exported_TestSettings.xml</Data></Cell>
<Cell ss:StyleID="s40"><Data ss:Type="String">Exported_ProdSettings.xml</Data></Cell>
</Row>
至
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s62"><Data ss:Type="String">Settings File Name:</Data></Cell>
<Cell ss:StyleID="s40"><Data ss:Type="String">Local_settings.xml</Data></Cell>
<Cell ss:StyleID="s40"><Data ss:Type="String">Dev_settings.xml</Data></Cell>
<Cell ss:StyleID="s40"><Data ss:Type="String">Test_settings.xml</Data></Cell>
<Cell ss:StyleID="s40"><Data ss:Type="String">Prod_settings.xml</Data></Cell>
</Row>
同样根据 TechNet 线程Not ble to deploy application through BTDF framework in Visual Studio 2013确保在 MSBuild 部分的 Properties 中SkipExportSettings
设置为False
<MSBuild
Projects="$(MSBuildProjectFullPath)"
Properties="LoadedPropsFromEnvSettings=True;SkipExportSettings=True;$(PropsFromEnvSettingsDelimited)"
Targets="$(TargetsAfterLoadPropsFromEnvSettings)"
UseResultsCache="false" UnloadProjectsOnCompletion="true" />