Skip to content

Instantly share code, notes, and snippets.

@lukencode
Created February 7, 2013 03:22
Show Gist options
  • Save lukencode/4728138 to your computer and use it in GitHub Desktop.
Save lukencode/4728138 to your computer and use it in GitHub Desktop.
Octopack build script
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>
<PropertyGroup>
<DeployFiles>$(MSBuildStartupDirectory)\DeployFiles.msbuild</DeployFiles>
<VersionMajor>1</VersionMajor>
<VersionMinor>0</VersionMinor>
<VersionPatch>0</VersionPatch>
<ChangesetNumber>0</ChangesetNumber>
<NugetFileShare>\\itsmanv01\Releases</NugetFileShare>
</PropertyGroup>
<Target Name="Build">
<TfsVersion
TfsLibraryLocation="C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssemblies\v2.0"
LocalPath="$(MSBuildProjectDirectory)">
<Output TaskParameter="Changeset" PropertyName="ChangesetNumber"/>
</TfsVersion>
<Message Importance="high" Text="Version = '$(VersionMajor).$(VersionMinor).$(VersionPatch).$(ChangesetNumber)'"></Message>
<MSBuild
Projects="RequisitioningSolution.sln"
Targets="Build"
Properties="Configuration=Release;RunOctoPack=true;OctoPackPublishPackageToFileShare=$(NugetFileShare);OctoPackPackageVersion=$(VersionMajor).$(VersionMinor).$(VersionPatch).$(ChangesetNumber)" />
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment