Skip to content

Commit

Permalink
Version 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyRybalkinItr committed Jun 12, 2024
1 parent 805c324 commit f9115f7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![NuGet Version](https://img.shields.io/nuget/v/StyleCopPlus)](https://www.nuget.org/packages/StyleCopPlus)

This project is an implementation of StyleCop+ rules using the .NET Compiler Platform (Roslyn) as well as some
additional refactorings and analyzers. Original project is available on
additional opinionated refactorings and analyzers. Original project is available on
[CodePlex](https://stylecopplus.codeplex.com/).

## Installation
Expand Down
2 changes: 1 addition & 1 deletion src/StyleCopPlus.Vsix/source.extension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ internal sealed partial class Vsix
public const string Name = "StyleCopPlus";
public const string Description = @"A set of analyzers and refactorings based on StyleCopPlus project implemented with Roslyn engine.";
public const string Language = "en-US";
public const string Version = "3.2.0";
public const string Version = "3.3.0";
public const string Author = "Sergey Rybalkin";
public const string Tags = "StyleCopPlus";
}
Expand Down
4 changes: 2 additions & 2 deletions src/StyleCopPlus.Vsix/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml Version="3.3" encoding="utf-8"?>
<PackageManifest Version="3.3.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="StyleCopPlus..f472894e-d3a6-4fe0-a4fc-5d32dfd0e204" Version="3.3.0" Language="en-US" Publisher="Sergey Rybalkin"/>
<DisplayName>StyleCopPlus</DisplayName>
Expand Down
21 changes: 12 additions & 9 deletions tools/Set-ReleaseTag.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,24 @@ if (!$TagAnnotation) {
$TagAnnotation = "Version ${majorVersion}.${minorVersion}"
}

# Create annotated git tag with an updated version
if ($pscmdlet.ShouldProcess("repository $(Get-Location)", "git tag ${majorVersion}.${minorVersion}")) {
& git tag -a "${majorVersion}.${minorVersion}" -m "${TagAnnotation}"
}

# Update version number in source and configuration files
if ($pscmdlet.ShouldProcess('StyleCopPlus.csproj', "Update nuget package version")) {
(Get-Content ..\src\StyleCopPlus\StyleCopPlus.csproj) -replace 'Version>\d+\.\d+', "Version>${majorVersion}.${minorVersion}" |
Set-Content ..\src\StyleCopPlus\StyleCopPlus.csproj
}

if ($pscmdlet.ShouldProcess('VSIX package', "Update VSIX package version")) {
(Get-Content ..\src\StyleCopPlus.Vsix\source.extension.vsixmanifest) -replace 'Version="\d+\.\d+', "Version=""${majorVersion}.${minorVersion}" |
Set-Content ..\src\StyleCopPlus.Vsix\source.extension.vsixmanifest
$manifest = "..\src\StyleCopPlus.Vsix\source.extension.vsixmanifest"
$( Get-Content $manifest -First 2;
Get-Content $manifest | Select-Object -Skip 2 | % { $_ -creplace 'Version="\d+\.\d+', "Version=""${majorVersion}.${minorVersion}" } ) |
Set-Content $manifest

(Get-Content ..\src\StyleCopPlus.Vsix\source.extension.cs) -replace '5d32dfd0e204" Version = "\d+\.\d+', "5d32dfd0e204"" Version = ""${majorVersion}.${minorVersion}" |
(Get-Content ..\src\StyleCopPlus.Vsix\source.extension.cs) -replace 'Version = "\d+\.\d+', "Version = ""${majorVersion}.${minorVersion}" |
Set-Content ..\src\StyleCopPlus.Vsix\source.extension.cs
}
}

# Create annotated git tag with an updated version
if ($pscmdlet.ShouldProcess("repository $(Get-Location)", "git commit + git tag")) {
& git commit -a -m "${TagAnnotation}"
& git tag -a "${majorVersion}.${minorVersion}" -m "${TagAnnotation}"
}

0 comments on commit f9115f7

Please sign in to comment.