deadlydog / AutoUpdateProjectsMinimumRequiredClickOnceVersion

Automatically force your ClickOnce app to update itself without prompting the user; less obtrusive, and enhanced security by ensuring the latest version is used.
MIT License
10 stars 3 forks source link

Add support for pubxml files #5

Closed TIPConsulting closed 3 years ago

TIPConsulting commented 3 years ago

Would it be possible to add support for the new .net Core csproj files and .pubxml publish files? I'd like to use this tool, but it only recognizes publish rules if they are embedded in the project file. That is not the standard behavior, publish profiles are now stored in standalone files

The publish profile files can be found here: $(ProjectDir)Properties\PublishProfiles\

The target extension is .pubxml

To identify ClickOnce publish profiles look for this tag in the pubxml file: <PublishProtocol>ClickOnce</PublishProtocol>. This identifies the profile as a ClickOnce as opposed to folder or Docker profiles

Additionally, it would be very nice for the publish profile to get its version numbers from the csproj file Example:

I want to be able to set csproj.Version and have both of the publish profile versions update as well

TimKras commented 3 years ago

Any updates about the .pubxml feature?

deadlydog commented 3 years ago

Thanks for the suggestion and details. I'm not sure when I'll have time to get to this one, as I'm quite busy these days and have quite a few older free open source tools like this with pending feature requests. I'm happy to accept PRs though.

deadlydog commented 3 years ago

Merged and version numbers bumped. Thanks for contributing!

Also, not sure if it would be of interest to you, but there's also this similar repo https://github.com/deadlydog/Set-ProjectFilesClickOnceVersion which can be used in a CI/CD pipeline, as per my blog. If you decide to use it a similar PR could be made there. Thanks again @TimKras !