I have a repository that includes multiple libraries. One of the libraries is experimental, so when I do a dotnet pack, I want its version to retain the preview version suffix as with unstable releases, even if the rest of the libraries does not have this.
This is my current version.json:
// https://github.com/bUnit-dev/bUnit/blob/main/version.json
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json",
"version": "1.26-preview",
"assemblyVersion": {
"precision": "revision"
},
"nuGetPackageVersion": {
"semVer": 2.0
},
"publicReleaseRefSpec": [
"^refs/heads/stable$"
],
"cloudBuild": {
"buildNumber": {
"enabled": true
}
},
"release": {
"branchName": "release/v{version}",
"firstUnstableTag": "preview"
},
"pathFilters": [
"./src"
]
}
The project I want to always be marked as experimental/preview is this: https://github.com/bUnit-dev/bUnit/blob/main/src/bunit.web.query/bunit.web.query.csproj
I have a repository that includes multiple libraries. One of the libraries is experimental, so when I do a
dotnet pack, I want its version to retain thepreviewversion suffix as with unstable releases, even if the rest of the libraries does not have this.This is my current version.json:
The project I want to always be marked as experimental/preview is this: https://github.com/bUnit-dev/bUnit/blob/main/src/bunit.web.query/bunit.web.query.csproj