sempack is a dotnet core cli tool to help version and pack nupkgs.
Updates the VersionPrefix property of the .csproj file.
If the Version property is set, Version will be carried over to VersionPrefix.
If both VersionPrefix and Version properties are set, the highest value for each will be chosen.
Build | Status |
---|---|
develop | |
master |
Use the command line with the following command:
dotnet tool install --global sempack --version 1.1.7057.22950
sempack -f foo/foo.csproj --major --minor --build-version --revision
<Version>{MAJOR}.{MINOR}.{BUILD-VERSION}.{REVISION}</Version>
Command | Description |
---|---|
-f or --source-file |
the csproj file to pack |
--major |
increments the major version by one |
--minor |
increments the minor version by one |
--build-version |
increments the build version by one |
--revision - increments the revision version by one |
|
-v or --verbose |
will turn on verbose logging |
sempack will pass through all dotnet pack commands.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.