diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-03-10 17:29:55 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-03-10 17:29:55 -0800 |
commit | f7ccdb36e7d91dc56c94a1eac1a535cd23585fc4 (patch) | |
tree | 29fdfdecc43e84a9835715268f5e592778e4edd8 /tools | |
parent | 02a1a7a3adcf70b80d6bc11854ae0ed21246ddd1 (diff) | |
download | DotNetOpenAuth-f7ccdb36e7d91dc56c94a1eac1a535cd23585fc4.zip DotNetOpenAuth-f7ccdb36e7d91dc56c94a1eac1a535cd23585fc4.tar.gz DotNetOpenAuth-f7ccdb36e7d91dc56c94a1eac1a535cd23585fc4.tar.bz2 |
AssemblyVersion is now a simple major.minor string, to make referencing easier.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/DotNetOpenAuth.Versioning.targets | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/DotNetOpenAuth.Versioning.targets b/tools/DotNetOpenAuth.Versioning.targets index 5ea67e5..0fd86ed 100644 --- a/tools/DotNetOpenAuth.Versioning.targets +++ b/tools/DotNetOpenAuth.Versioning.targets @@ -17,6 +17,7 @@ <Output TaskParameter="Version" PropertyName="BuildVersion" /> <Output TaskParameter="SimpleVersion" PropertyName="BuildVersionSimple" /> <Output TaskParameter="PrereleaseVersion" PropertyName="PrereleaseVersion" /> + <Output TaskParameter="MajorMinorVersion" PropertyName="MajorMinorVersion" /> <Output TaskParameter="OAuth2PackagesVersion" PropertyName="OAuth2PackagesVersion" /> <Output TaskParameter="GitCommitId" PropertyName="GitCommitId" /> <Output TaskParameter="BuildNumber" PropertyName="BuildNumber" /> @@ -45,8 +46,10 @@ </PropertyGroup> <MakeDir Directories="$(IntermediatePath)"/> <AssemblyInfo OutputFile="$(NewVersionCsFile)" CodeLanguage="C#" - AssemblyVersion="$(BuildVersion)" - AssemblyInformationalVersion="$(AssemblyInformationalVersion)" /> + AssemblyVersion="$(MajorMinorVersion)" + AssemblyFileVersion="$(BuildVersion)" + AssemblyInformationalVersion="$(AssemblyInformationalVersion)" + GenerateClass="true" /> <!-- Avoid applying the newly generated AssemblyInfo.cs file to the build unless it has changed in order to allow for incremental building. --> <CompareFiles OriginalItems="$(VersionCsFile)" NewItems="$(NewVersionCsFile)"> |