Skip to content

Commit

Permalink
Updated to GitVersion so that we can build support branches
Browse files Browse the repository at this point in the history
  • Loading branch information
John Simons committed Jul 21, 2014
1 parent 4435ed2 commit 176bbee
Show file tree
Hide file tree
Showing 30 changed files with 67 additions and 64 deletions.
47 changes: 0 additions & 47 deletions buildsupport/GitVersion/Build/GitVersionTask.targets

This file was deleted.

Binary file removed buildsupport/GitVersion/GitVersion.exe
Binary file not shown.
Binary file removed buildsupport/GitVersion/GitVersionTask.dll
Binary file not shown.
51 changes: 51 additions & 0 deletions buildsupport/GitVersionTask/Build/GitVersionTask.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)..\</SolutionDir>
</PropertyGroup>
<PropertyGroup>
<GitVersionAppendRevision Condition="$(GitVersionAppendRevision) == '' Or $(GitVersionAppendRevision) == '*Undefined*'">false</GitVersionAppendRevision>
</PropertyGroup>

<UsingTask
TaskName="GitVersionTask.UpdateAssemblyInfo"
AssemblyFile="$(MSBuildThisFileDirectory)..\GitVersionTask.dll" />
<UsingTask
TaskName="GitVersionTask.WriteVersionInfoToBuildLog"
AssemblyFile="$(MSBuildThisFileDirectory)..\GitVersionTask.dll" />

<Target Name="UpdateAssemblyInfo"
BeforeTargets="CoreCompile">
<WriteVersionInfoToBuildLog
SolutionDirectory="$(SolutionDir)"
/>
<UpdateAssemblyInfo
SolutionDirectory="$(SolutionDir)"
ProjectFile="$(ProjectPath)"
AppendRevision="$(GitVersionAppendRevision)"
AssemblyVersioningScheme="MajorMinor"
CompileFiles ="@(Compile)">
<Output
TaskParameter="AssemblyInfoTempFilePath"
PropertyName="AssemblyInfoTempFilePath" />
</UpdateAssemblyInfo>

<ItemGroup>
<Compile Include="$(AssemblyInfoTempFilePath)" />
</ItemGroup>
</Target>

<!--Support for ncrunch-->
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)..\GitVersionTask.dll" />
<None Include="$(MSBuildThisFileDirectory)..\GitVersionTask.pdb" />
<None Include="$(MSBuildThisFileDirectory)..\GitVersionCore.dll" />
<None Include="$(MSBuildThisFileDirectory)..\GitVersionCore.pdb" />
<None Include="$(MSBuildThisFileDirectory)..\LibGit2Sharp.dll" />
<None Include="$(MSBuildThisFileDirectory)..\NativeBinaries\**\*" />
</ItemGroup>


</Project>


Binary file added buildsupport/GitVersionTask/GitVersionCore.dll
Binary file not shown.
Binary file added buildsupport/GitVersionTask/GitVersionTask.dll
Binary file not shown.
Binary file added buildsupport/GitVersionTask/LibGit2Sharp.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed buildsupport/MSBuild.Community.Tasks.dll
Binary file not shown.
Binary file removed buildsupport/PepitaPackage.dll
Binary file not shown.
Binary file modified buildsupport/RippleRestoreTask.dll
Binary file not shown.
Binary file modified buildsupport/ripple.exe
Binary file not shown.
1 change: 0 additions & 1 deletion buildsupport/run-git.cmd

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\RippleRestoreTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersion\build\GitVersionTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersionTask\build\GitVersionTask.targets" />
</Project>
2 changes: 1 addition & 1 deletion src/NServiceBus.Core/NServiceBus.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -619,5 +619,5 @@
<Exec Command="&quot;$(SolutionDir)..\tools\IlMerge\ilmerge.exe&quot; /keyfile:&quot;$(SolutionDir)NServiceBus.snk&quot; /internalize /out:&quot;$(TargetPath)&quot; &quot;$(MergeTemp)&quot; &quot;$(TargetDir)log4net.dll&quot; &quot;$(TargetDir)Interop.MSMQ.dll&quot; &quot;$(TargetDir)AutoFac.dll&quot; &quot;$(TargetDir)Newtonsoft.Json.dll&quot; /target:library /targetplatform:&quot;v4,$(FrameworkPathOverride)&quot;" />
<Delete Files="$(MergeTemp)" />
</Target>
<Import Project="$(SolutionDir)..\BuildSupport\GitVersion\build\GitVersionTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersionTask\build\GitVersionTask.targets" />
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -178,5 +178,5 @@
Projects="$(ProjectPath)"
Properties="SolutionDir=$(SolutionDir);Configuration=$(ConfigurationName);Platform=x86"/>
</Target>
<Import Project="$(SolutionDir)..\BuildSupport\GitVersion\build\GitVersionTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersionTask\build\GitVersionTask.targets" />
</Project>
2 changes: 1 addition & 1 deletion src/NServiceBus.NHibernate/NServiceBus.NHibernate.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,5 @@
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="Fody.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\RippleRestoreTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersion\build\GitVersionTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersionTask\build\GitVersionTask.targets" />
</Project>
2 changes: 1 addition & 1 deletion src/NServiceBus.PowerShell/NServiceBus.PowerShell.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,5 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\RippleRestoreTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersion\build\GitVersionTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersionTask\build\GitVersionTask.targets" />
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\RippleRestoreTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersion\build\GitVersionTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersionTask\build\GitVersionTask.targets" />
</Project>
2 changes: 1 addition & 1 deletion src/NServiceBus.Testing/NServiceBus.Testing.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,5 @@
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="Fody.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\RippleRestoreTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersion\build\GitVersionTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersionTask\build\GitVersionTask.targets" />
</Project>
2 changes: 1 addition & 1 deletion src/NServiceBus/NServiceBus.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,5 @@
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="Fody.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\RippleRestoreTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersion\build\GitVersionTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersionTask\build\GitVersionTask.targets" />
</Project>
2 changes: 1 addition & 1 deletion src/ObjectBuilder.Autofac/ObjectBuilder.Autofac.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,5 @@
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="Fody.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\RippleRestoreTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersion\build\GitVersionTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersionTask\build\GitVersionTask.targets" />
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,5 @@
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="Fody.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\RippleRestoreTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersion\build\GitVersionTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersionTask\build\GitVersionTask.targets" />
</Project>
2 changes: 1 addition & 1 deletion src/ObjectBuilder.Ninject/ObjectBuilder.Ninject.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,5 @@
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="Fody.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\RippleRestoreTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersion\build\GitVersionTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersionTask\build\GitVersionTask.targets" />
</Project>
2 changes: 1 addition & 1 deletion src/ObjectBuilder.Spring/ObjectBuilder.Spring.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,5 @@
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="Fody.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\RippleRestoreTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersion\build\GitVersionTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersionTask\build\GitVersionTask.targets" />
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,5 @@
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="Fody.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\RippleRestoreTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersion\build\GitVersionTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersionTask\build\GitVersionTask.targets" />
</Project>
2 changes: 1 addition & 1 deletion src/ObjectBuilder.Unity/ObjectBuilder.Unity.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,5 @@
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="Fody.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\RippleRestoreTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersion\build\GitVersionTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersionTask\build\GitVersionTask.targets" />
</Project>
2 changes: 1 addition & 1 deletion src/ReturnToSourceQueue/ReturnToSourceQueue.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\RippleRestoreTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersion\build\GitVersionTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersionTask\build\GitVersionTask.targets" />
</Project>
2 changes: 1 addition & 1 deletion src/licenseinstaller/LicenseInstaller.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\RippleRestoreTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersion\build\GitVersionTask.targets" />
<Import Project="$(SolutionDir)..\BuildSupport\GitVersionTask\build\GitVersionTask.targets" />
</Project>

0 comments on commit 176bbee

Please sign in to comment.