Skip to content

Commit

Permalink
Propagate version to nuspec file
Browse files Browse the repository at this point in the history
  • Loading branch information
josefpihrt committed Nov 14, 2021
1 parent cf85712 commit 831ac5f
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Analyzers.CodeFixes/Analyzers.CodeFixes.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<AssemblyName>Roslynator.CSharp.Analyzers.CodeFixes</AssemblyName>
<RootNamespace>Roslynator.CSharp</RootNamespace>
<NuspecFile>Roslynator.Analyzers.nuspec</NuspecFile>
<NuspecProperties>configuration=$(Configuration)</NuspecProperties>
<NuspecProperties>configuration=$(Configuration);version=$(RoslynatorAnalyzersPackageVersion)</NuspecProperties>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Analyzers.CodeFixes/Roslynator.Analyzers.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata minClientVersion="2.8">
<id>Roslynator.Analyzers</id>
<version>$(RoslynatorAnalyzersPackageVersion)</version>
<version>$version$</version>
<authors>Josef Pihrt</authors>
<owners>Josef Pihrt</owners>
<license type="expression">Apache-2.0</license>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<AssemblyName>Roslynator.CodeAnalysis.Analyzers.CodeFixes</AssemblyName>
<RootNamespace>Roslynator.CodeAnalysis</RootNamespace>
<NuspecFile>Roslynator.CodeAnalysis.Analyzers.nuspec</NuspecFile>
<NuspecProperties>configuration=$(Configuration)</NuspecProperties>
<NuspecProperties>configuration=$(Configuration);version=$(RoslynatorCodeAnalysisAnalyzersPackageVersion)</NuspecProperties>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata minClientVersion="2.8">
<id>Roslynator.CodeAnalysis.Analyzers</id>
<version>$(RoslynatorCodeAnalysisAnalyzersPackageVersion)</version>
<version>$version$</version>
<authors>Josef Pihrt</authors>
<owners>Josef Pihrt</owners>
<license type="expression">Apache-2.0</license>
Expand Down
2 changes: 1 addition & 1 deletion src/CodeFixes/CodeFixes.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<AssemblyName>Roslynator.CSharp.CodeFixes</AssemblyName>
<RootNamespace>Roslynator.CSharp.CodeFixes</RootNamespace>
<NuspecFile>Roslynator.CodeFixes.nuspec</NuspecFile>
<NuspecProperties>configuration=$(Configuration)</NuspecProperties>
<NuspecProperties>configuration=$(Configuration);version=$(RoslynatorCodeFixesPackageVersion)</NuspecProperties>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/CodeFixes/Roslynator.CodeFixes.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata minClientVersion="2.8">
<id>Roslynator.CodeFixes</id>
<version>$(RoslynatorCodeFixesPackageVersion)</version>
<version>$version$</version>
<authors>Josef Pihrt</authors>
<owners>Josef Pihrt</owners>
<license type="expression">Apache-2.0</license>
Expand Down
2 changes: 1 addition & 1 deletion src/CommandLine/CommandLine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<NuspecFile>CommandLine.nuspec</NuspecFile>
<IntermediatePackDir>$(MSBuildProjectDirectory)/bin/$(Configuration)/publish/</IntermediatePackDir>
<PublishDir>$(IntermediatePackDir)$(TargetFramework)/</PublishDir>
<NuspecProperties>publishDir=$([MSBuild]::NormalizeDirectory($(IntermediatePackDir)))</NuspecProperties>
<NuspecProperties>publishDir=$([MSBuild]::NormalizeDirectory($(IntermediatePackDir)));version=$(RoslynatorCliPackageVersion)</NuspecProperties>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/CommandLine/CommandLine.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Roslynator.CommandLine</id>
<version>$(RoslynatorCliPackageVersion)</version>
<version>$version$</version>
<authors>Josef Pihrt</authors>
<owners>Josef Pihrt</owners>
<license type="expression">Apache-2.0</license>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<AssemblyName>Roslynator.Formatting.Analyzers.CodeFixes</AssemblyName>
<RootNamespace>Roslynator.Formatting</RootNamespace>
<NuspecFile>Roslynator.Formatting.Analyzers.nuspec</NuspecFile>
<NuspecProperties>configuration=$(Configuration)</NuspecProperties>
<NuspecProperties>configuration=$(Configuration);version=$(RoslynatorFormattingAnalyzersPackageVersion)</NuspecProperties>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata minClientVersion="2.8">
<id>Roslynator.Formatting.Analyzers</id>
<version>$(RoslynatorFormattingAnalyzersPackageVersion)</version>
<version>$version$</version>
<authors>Josef Pihrt</authors>
<owners>Josef Pihrt</owners>
<license type="expression">Apache-2.0</license>
Expand Down

0 comments on commit 831ac5f

Please sign in to comment.