File tree Expand file tree Collapse file tree 6 files changed +17
-5
lines changed
EasyConfig.SiteExtension.NuGet Expand file tree Collapse file tree 6 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 1+ next-version : 1.0.0
2+ mode : Mainline
3+ branches : {}
4+ major-version-bump-message : ' \+semver:\s?(breaking|major)'
5+ minor-version-bump-message : ' \+semver:\s?(feature|minor)'
6+ patch-version-bump-message : ' \+semver:\s?(fix|patch)'
7+ no-bump-message : ' \+semver:\s?(none|skip)'
8+ commit-message-incrementing : Enabled
9+ ignore :
10+ sha : []
Original file line number Diff line number Diff line change 3131 inputs :
3232 targetType : " filePath"
3333 filePath : " pipelines/tools/Run-GitVersion.ps1"
34+ arguments : ' -Verbose'
3435 workingDirectory : " $(ProjectFolder)"
3536
3637 - task : DotNetCoreCLI@2
7273 configuration : ' $(BuildConfiguration)'
7374 nobuild : true
7475 versioningScheme : ' byEnvVar'
75- versionEnvVar : ' GitVersion.NuGetVersion '
76+ versionEnvVar : ' GitVersion_NuGetVersion '
7677 buildProperties : ' '
7778 verbosityPack : ' Normal'
7879
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ Process {
1414
1515 Write-Verbose " Writing variables ..."
1616 foreach ($property in $jsonObj.PSObject.Properties ) {
17- Write-Verbose " GitVersion. $ ( $property.Name ) : $ ( $property.Value ) "
18- Write-Output " ##vso[task.setvariable variable=GitVersion. $ ( $property.Name ) ;]$ ( $property.Value ) "
17+ Write-Verbose " GitVersion_ $ ( $property.Name ) : $ ( $property.Value ) "
18+ Write-Output " ##vso[task.setvariable variable=GitVersion_ $ ( $property.Name ) ;]$ ( $property.Value ) "
1919 }
2020 Write-Verbose " Done"
2121}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ $nugetfolder = $dir + "/" + "src/EasyConfig.SiteExtension.NuGet"
66dotnet publish " $extensionfolder /EasyConfig.SiteExtension.csproj" -- output " $nugetfolder /content/" -f netcoreapp3.0 - c Release
77Copy-Item " $nugetfolder /applicationHost.xdt" " $nugetfolder /content/"
88
9- dotnet pack " $extensionfolder /EasyConfig.SiteExtension.csproj" - o ./ output - c Release -- no- build
9+ dotnet pack " $extensionfolder /EasyConfig.SiteExtension.csproj" / p:PackageVersion = 1.1 . 1 - o ./ output - c Release -- no- build
1010# $nupkgfilename = @(Get-Childitem -path ./output/*.nupkg)[0].Name
1111
1212# dotnet nuget push $nupkgfilename -k $env:NugetKey -s https://api.nuget.org/v3/index.json
Original file line number Diff line number Diff line change 33 <metadata >
44 <id >EasyConfig.SiteExtension</id >
55 <title >Easy Config</title >
6- <version >1.0.0 </version >
6+ <version >$version$ </version >
77 <authors >Kirsten Kluge</authors >
88 <license type =" expression" >MIT</license >
99 <projectUrl >https://github.com/codez-one/EasyConfig</projectUrl >
Original file line number Diff line number Diff line change 77 <AspNetCoreHostingModel >InProcess</AspNetCoreHostingModel >
88 <NuspecFile >../EasyConfig.SiteExtension.NuGet/EasyConfig.SiteExtension.nuspec</NuspecFile >
99 <NuspecBasePath >../EasyConfig.SiteExtension.NuGet/</NuspecBasePath >
10+ <NuspecProperties >version=$(PackageVersion)</NuspecProperties >
1011 <NoPackageAnalysis >true</NoPackageAnalysis >
1112 </PropertyGroup >
1213
You can’t perform that action at this time.
0 commit comments