简体   繁体   中英

Generate a XML Version File automatically with Visual Studio C#

I am using the Autoupdater.NET package in a C# project of mine.

The package uses an XML file stored on (my) server to check if there is a new version of my software available, now it would be a nice thing to autogenerate this XML file everytime I build a new version of my code.

So, after each new build, there should be a file "myProject_1.4.2.xml" in the project folder.

How can I build a "tool" or some kind of plugin for Visual Studio (2019) to accomplish this.

You can use Visual Studio Build Events for this.
In VS, go to Project Properties -> Build Events.
In the Post-build event command line area you can execute something to create the XML for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM