What is the best way to publish multiple versions of the same ClickOnce application?

前端 未结 3 567
小蘑菇
小蘑菇 2021-01-16 12:31

I have a c# ClickOnce application that I need to be able to publish multiple times for OEM purposes.

The way I understand it now is that publish settings are located

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-16 13:16

    I found that you are able to edit certain properties using MSBuild.exe like this

    MSBuild Solution.sln /target:publish /property:ProductName=ProductA\;Publisher=CompanyA\;ApplicationIcon=companyA.ico

    I found another useful post on modifying.csproj files programatically with .NET code. (This would only be needed if you're modifying things that are deeper than just the project properties specified in the ClickOnce documentation below)

    The MSBuild documentation here was also useful -- especially under Publishing Properties

提交回复
热议问题