How do you parameterize deployments when using ASP.NET 4.5 publish profiles?

前端 未结 1 1820
时光取名叫无心
时光取名叫无心 2021-02-06 10:44

The new pubxml files in ASP.NET 4.5 are definitely a step in the right direction. I also like msdeploy\'s support for parameters.xml files (even though

相关标签:
1条回答
  • 2021-02-06 11:20

    You can't set your own parameters file, but you can declare parameter values from within the pubxml:

    <ItemGroup>
      <MSDeployParameterValue Include="Parameter Name">
        <ParameterValue>Parameter Value</ParameterValue>
      </MSDeployParameterValue>
    </ItemGroup>
    
    0 讨论(0)
提交回复
热议问题