Is there a way to execute code (C# preferably) either during or after ClickOnce deployment of a WPF application?
I simply want to write the new version number of the application being deployed to a database.
Bonus: Is there a way to bundle this deployment code into the project / solution so that it follows the application around to each developer?
I tried Googling but honestly haven't found any relevant threads on this topic yet.
I do notice there's "Build Events" in the project properties, but I don't know if they support C# code, and I'm more-so looking for "Deployment Events" if that's even a thing?
Not sure where to start. :(
I expect a dedicated table in my database to be updated as a result of ClickOnce deployment, hopefully via C# code. (I know how to write to a database in C#, but not sure how to execute deployment events with C# code if possible?)