Skip to content

Commit

Permalink
Streamline assembly versions (winsw#153)
Browse files Browse the repository at this point in the history
* Align all component versions to 2.0.*
* Enable patching of assemblies in AppVeyor

* Fix the slash

* And escaping...
  • Loading branch information
oleg-nenashev authored Dec 6, 2016
1 parent 030536c commit f58b287
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 12 deletions.
9 changes: 8 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

version: 2.0.0.{build}
version: 2.0.{build}

# Do not build on tags (GitHub and BitBucket)
skip_tags: true
Expand All @@ -22,6 +22,13 @@ before_build:
# Generates a temporary SNK. Not for real signing
- cmd: "\"C:/Program Files/Microsoft SDKs/Windows/v7.1/Bin/sn.exe\" -k winsw_key.snk"

assembly_info:
patch: true
file: "**\\AssemblyInfo.*"
assembly_version: $(appveyor_build_version)
assembly_file_version: $(appveyor_build_version)
assembly_informational_version: '$(appveyor_build_version)-rc'

build:
parallel: true
project: src\winsw.sln
Expand Down
4 changes: 2 additions & 2 deletions src/Core/ServiceWrapper/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.19.1.0")]
[assembly: AssemblyFileVersion("1.19.1.0")]
[assembly: AssemblyVersion("2.0.*")]
[assembly: AssemblyFileVersion("2.0.*")]
2 changes: 1 addition & 1 deletion src/Core/ServiceWrapper/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<groupId>com.sun.winsw</groupId>
<artifactId>winsw</artifactId>
<packaging>pom</packaging>
<version>1.19.2-SNAPSHOT</version>
<version>2.0-SNAPSHOT</version>
<name>Windows service wrapper</name>

<distributionManagement>
Expand Down
4 changes: 2 additions & 2 deletions src/Core/WinSWCore/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("2.0.*")]
[assembly: AssemblyFileVersion("2.0.*")]
4 changes: 2 additions & 2 deletions src/Plugins/RunawayProcessKiller/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("2.0.*")]
[assembly: AssemblyFileVersion("2.0.*")]
4 changes: 2 additions & 2 deletions src/Plugins/SharedDirectoryMapper/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("2.0.*")]
[assembly: AssemblyFileVersion("2.0.*")]
4 changes: 2 additions & 2 deletions src/Test/winswTests/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("2.0.*")]
[assembly: AssemblyFileVersion("2.0.*")]

0 comments on commit f58b287

Please sign in to comment.