|
58 | 58 | <Output TaskParameter="Assemblies" ItemName="AsmInfo" />
|
59 | 59 | </GetAssemblyIdentity>
|
60 | 60 | <GetAssemblyInformationalVersion AssemblyFile="$(PackageDir)\Griddly.Core\lib\net461\Griddly.Mvc.dll">
|
61 |
| - <Output TaskParameter="Value" ItemName="AssemblyInformationalVersion" /> |
| 61 | + <Output TaskParameter="Value" ItemName="AssemblyVersion" /> |
62 | 62 | </GetAssemblyInformationalVersion>
|
63 | 63 | <PropertyGroup>
|
64 |
| - <AssemblyInformationalVersion Condition="@(AssemblyInformationalVersion) != ''">@(AssemblyInformationalVersion)</AssemblyInformationalVersion> |
65 |
| - <AssemblyInformationalVersion Condition="$(AssemblyInformationalVersion) == ''">%(AsmInfo.InfoVersion)</AssemblyInformationalVersion> |
| 64 | + <AssemblyVersion Condition="@(AssemblyVersion) != ''">@(AssemblyVersion)</AssemblyVersion> |
| 65 | + <AssemblyVersion Condition="$(AssemblyVersion) == ''">%(AsmInfo.Version)</AssemblyVersion> |
66 | 66 | </PropertyGroup>
|
67 | 67 |
|
68 | 68 | <!-- insert the version number into the nuspec files -->
|
69 | 69 | <XmlUpdate
|
70 | 70 | Namespace="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
|
71 | 71 | XmlFileName="$(PackageDir)\Griddly\Griddly.nuspec"
|
72 | 72 | XPath="/package/metadata/version"
|
73 |
| - Value="$(AssemblyInformationalVersion)" /> |
| 73 | + Value="$(AssemblyVersion)" /> |
74 | 74 | <XmlUpdate
|
75 | 75 | Namespace="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
|
76 | 76 | XmlFileName="$(PackageDir)\Griddly.Core\Griddly.Core.nuspec"
|
77 | 77 | XPath="/package/metadata/version"
|
78 |
| - Value="$(AssemblyInformationalVersion)" /> |
| 78 | + Value="$(AssemblyVersion)" /> |
79 | 79 |
|
80 | 80 | <XmlUpdate
|
81 | 81 | Namespace="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
|
82 | 82 | XmlFileName="$(PackageDir)\Griddly\Griddly.nuspec"
|
83 | 83 | XPath="/package/metadata/dependencies/group/dependency[@id='Griddly.Core']/@version"
|
84 |
| - Value="$(AssemblyInformationalVersion)" /> |
| 84 | + Value="$(AssemblyVersion)" /> |
85 | 85 |
|
86 | 86 | <Exec WorkingDirectory="$(PackageDir)"
|
87 | 87 | Command="$(BaseDir)\.nuget\nuget.exe pack $(PackageDir)\Griddly\Griddly.nuspec" />
|
|
0 commit comments