Last active
December 29, 2015 11:48
-
-
Save michaellwest/7665723 to your computer and use it in GitHub Desktop.
Hedgehog Team Development for Sitecore - Package version based on Assembly Version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Import Project="$(MSBuildExtensionsPath)\HedgehogDevelopment\SitecoreProject\v9.0\HedgehogDevelopment.SitecoreProject.targets" /> | |
<ItemGroup> | |
<AssembliesPath Include="..\SomethingAwesome.Web\bin\SomethingAwesome.Web.dll" /> | |
</ItemGroup> | |
<Target Name="BeforeSitecoreBuild"> | |
<GetAssemblyIdentity AssemblyFiles="@(AssembliesPath)"> | |
<Output TaskParameter="Assemblies" ItemName="AssemblyVersion" /> | |
</GetAssemblyIdentity> | |
<CreateProperty Value="%(AssemblyVersion.Version)"> | |
<Output TaskParameter="Value" PropertyName="PackageVersion" /> | |
</CreateProperty> | |
</Target> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The TDS team recommended that I use BeforeSitecoreBuild rather than BeforeBuild.