'How to read csproj xml elements in runtime?

I am trying to read specific XML elements from a csproj file (my project file), specifically the <ApplicationVersion> element (I'm deploying under ClickOnce - (this is not the assembly version)

Is there a runtime option to read this field? or the only option is to simply parse the csproj file as an xml file?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source