From 01e38f96bca08a19e9353fb582e8ac02b990cd4a Mon Sep 17 00:00:00 2001 From: Mogens Heller Grabe Date: Thu, 8 Sep 2016 20:51:02 +0200 Subject: [PATCH] patch assemblyinfo --- .gitignore | 3 ++- Rebus/Properties/AssemblyInfo.cs | 7 ++++--- Rebus/Rebus.csproj | 6 +++++- scripts/build-package.cmd | 3 +++ scripts/patch_assemblyinfo.cmd | 12 ++++++++++++ tools/aversion/Aversion.exe | Bin 0 -> 30720 bytes 6 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 scripts/patch_assemblyinfo.cmd create mode 100644 tools/aversion/Aversion.exe diff --git a/.gitignore b/.gitignore index ad9de6244..f2ea0503d 100644 --- a/.gitignore +++ b/.gitignore @@ -27,4 +27,5 @@ _NCrunch_* # MS Guideline **/packages/* -!**/packages/build/ \ No newline at end of file +!**/packages/build/ +AssemblyInfo_Patch.cs \ No newline at end of file diff --git a/Rebus/Properties/AssemblyInfo.cs b/Rebus/Properties/AssemblyInfo.cs index a42112c1f..3ab9baa3c 100644 --- a/Rebus/Properties/AssemblyInfo.cs +++ b/Rebus/Properties/AssemblyInfo.cs @@ -34,6 +34,7 @@ // 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: InternalsVisibleTo("Rebus.Tests")] \ No newline at end of file +[assembly: InternalsVisibleTo("Rebus.Tests")] + +[assembly: AssemblyVersion("$version$")] +[assembly: AssemblyFileVersion("$version$")] diff --git a/Rebus/Rebus.csproj b/Rebus/Rebus.csproj index bad7ea113..b6d766965 100644 --- a/Rebus/Rebus.csproj +++ b/Rebus/Rebus.csproj @@ -49,6 +49,7 @@ + @@ -309,7 +310,7 @@ - + @@ -332,6 +333,9 @@ + + $(ProjectDir)\..\scripts\patch_assemblyinfo.cmd $(ProjectDir) +