.netsemantic-versioningaspnet-api-versioning

dotnet set semantic version


Is there a way to actively modify the versioning of the .csproj files using the dotnet CLI? In the same way we can update the npm version.

I need to modify the files, I'm not looking for dotnet build -p:Version=1.2.3.4.

OR for example with maven you can do this: mvn versions:set -DnewVersion=1.2.3.4 which actually updates your pom.xml.


Solution

  • Try this one: https://github.com/TAGC/dotnet-setversion

    It uses XDocument to load, modify and save the csproj file.