Skip to content

Commit

Permalink
Use GitVersion vor versioning (#1129)
Browse files Browse the repository at this point in the history
* add GitVersion

* +semver: minor

* use GitVersion for NuGet version number

* increment on every commit

* use prerelease version of GitVersionTask

* disable appveyor assembly info patching

* fix app.config & plugincompability.config

* remove packages
  • Loading branch information
SabotageAndi authored Apr 24, 2018
1 parent 0fc6a0f commit d93d90c
Show file tree
Hide file tree
Showing 48 changed files with 152 additions and 46 deletions.
2 changes: 1 addition & 1 deletion Build/Versioning.targets
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</UsingTask>

<PropertyGroup>
<SpecFlowBaseVersion Condition="'$(SpecFlowBaseVersion)' == ''">2.2.0</SpecFlowBaseVersion>
<SpecFlowBaseVersion Condition="'$(SpecFlowBaseVersion)' == ''">2.4.0</SpecFlowBaseVersion>
</PropertyGroup>


Expand Down
1 change: 1 addition & 0 deletions ExternalRepositories/SpecFlow.TestProjectGenerator
Submodule SpecFlow.TestProjectGenerator added at 46c002
6 changes: 6 additions & 0 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
assembly-versioning-scheme: MajorMinorPatch
mode: ContinuousDeployment
tag-prefix: '[V]'
branches: {}
ignore:
sha: []
2 changes: 2 additions & 0 deletions Installer/ImportGherkinParser/ImportGherkinParser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
4 changes: 2 additions & 2 deletions Installer/ImportGherkinParser/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]


12 changes: 11 additions & 1 deletion Installer/NuGetPackages/.build/build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,21 @@

<Target Name="AfterBuild" AfterTargets="Build" />

<Target Name="UpdatePackageVersion" BeforeTargets="NugetBuild">
<Target Name="GetGitVersion" BeforeTargets="NugetBuild">
<CallTarget Targets="GetVersion" />
<CallTarget Targets="UpdatePackageVersion" />
</Target>

<Target Name="UpdatePackageVersion" >
<PropertyGroup>
<SpecFlowPackageVersion Condition="'$(SpecFlowPackageVersion)' == ''">$(GitVersion_NuGetVersion)</SpecFlowPackageVersion>
<NugetVersion>$(SpecFlowPackageVersion)</NugetVersion>
<TechTalk_Year>$([System.DateTime]::get_Now().get_Year())</TechTalk_Year>
<TechTalkCopyright>Copyright © 2009-$(TechTalk_Year) TechTalk</TechTalkCopyright>

</PropertyGroup>

<Message Importance="High" Text="GitVersion: $(GitVersion_NuGetVersion)" />
<Message Importance="High" Text="NugetVersion: $(NugetVersion)" />

<Copy SourceFiles="$(MSBuildThisFileDirectory)\..\..\..\TechTalk.SpecFlow.Tools\MsBuild\TechTalk.SpecFlow.targets" DestinationFiles="$(TargetDir)SpecFlow.Tools.MsBuild.Generation\build\SpecFlow.Tools.MsBuild.Generation.targets" OverwriteReadOnlyFiles="true" />
Expand Down
2 changes: 2 additions & 0 deletions Installer/NuGetPackages/NuGetPackages.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,7 @@
</PropertyGroup>
<Error Condition="!Exists('..\..\packages\MSBuild.MSBNuget.1.1.2-pre04\build\MSBuild.MSBNuget.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\MSBuild.MSBNuget.1.1.2-pre04\build\MSBuild.MSBNuget.targets'))" />
<Error Condition="!Exists('..\..\packages\MSBuild.MSBBuildConvention.2.0.0\build\MSBuild.MSBBuildConvention.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\MSBuild.MSBBuildConvention.2.0.0\build\MSBuild.MSBBuildConvention.targets'))" />
<Error Condition="!Exists('..\..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets'))" />
</Target>
<Import Project="..\..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets" Condition="Exists('..\..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets')" />
</Project>
4 changes: 2 additions & 2 deletions Installer/NuGetPackages/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]


2 changes: 2 additions & 0 deletions Installer/NuGetPackages/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="GitVersion.CommandLine" version="4.0.0-beta0012" targetFramework="net45" developmentDependency="true" />
<package id="GitVersionTask" version="4.0.0-beta0012" targetFramework="net45" developmentDependency="true" />
<package id="MSBuild.MSBBuildConvention" version="2.0.0" targetFramework="net45" />
<package id="MSBuild.MSBNuget" version="1.1.2-pre04" targetFramework="net45" />
<package id="NuGet.CommandLine" version="4.5.1" developmentDependency="true" />
Expand Down
4 changes: 2 additions & 2 deletions Installer/SpecFlowBinPackage/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]


2 changes: 0 additions & 2 deletions Installer/SpecFlowBinPackage/SpecFlowBinPackage.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,13 @@
<PackageDir>$(TargetDir)\package</PackageDir>
<PdbDir>$(TargetDir)\pdb</PdbDir>
</PropertyGroup>

<Import Project="..\..\packages\MSBuildTasks.1.5.0.235\build\MSBuildTasks.targets" Condition="Exists('..\..\packages\MSBuildTasks.1.5.0.235\build\MSBuildTasks.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\..\packages\MSBuildTasks.1.5.0.235\build\MSBuildTasks.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\MSBuildTasks.1.5.0.235\build\MSBuildTasks.targets'))" />
</Target>

<Target Name="AfterBuild">
<ItemGroup>
<SpecFlowTools Include="$(TargetDir)\*.dll" Exclude="$(TargetDir)\to_be_removed.dll" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<ItemGroup>
<PackageReference Include="FluentAssertions" Version="4.19.4" />
<PackageReference Include="FSharp.Core" Version="4.2.3" />
<PackageReference Include="GitVersionTask" Version="3.6.5" />
<PackageReference Include="GitVersionTask" Version="4.0.0-beta0012" />
<PackageReference Include="Microsoft.Build" Version="15.3.409" />
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="15.3.409" />
<PackageReference Include="NuGet.CommandLine" Version="4.1.0" />
Expand Down
4 changes: 2 additions & 2 deletions TechTalk.SpecFlow.Generator/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("743e1609-8937-4775-9896-6e8757c6d98d")]

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]



[assembly: InternalsVisibleTo("TechTalk.SpecFlow.GeneratorTests, PublicKey=00240000048000009400000006020000002400005253413100040000010001009BD35D42479A68A533445360CA3149C96BF112221527828DCCC15604830999FAD6391912EDBDF591531C4DE9C45E437A3F648A2A3722D04E5A02BECE96522C71060081A14E1E775DF4B6F84D6DB609E3A20D15956D3FEDBFD77B2A9B0D941ACABCBF7C26B87F5696FE4AADAACA69DCB84E7C733D5FF0E9ECEF46656D19BF52A2")]
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\specflow.snk</AssemblyOriginatorKeyFile>
<TargetFrameworkProfile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -154,6 +156,13 @@
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets" Condition="Exists('..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets'))" />
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Expand Down
1 change: 1 addition & 0 deletions TechTalk.SpecFlow.Generator/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Gherkin" version="5.0.0" targetFramework="net45" />
<package id="GitVersionTask" version="4.0.0-beta0012" targetFramework="net45" developmentDependency="true" />
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net45" />
</packages>
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("b4588e81-c589-434f-8f12-3d881433c3e4")]

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]


Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
<FileAlignment>512</FileAlignment>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\specflow.snk</AssemblyOriginatorKeyFile>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -79,6 +81,13 @@
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets" Condition="Exists('..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets'))" />
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Expand Down
1 change: 1 addition & 0 deletions TechTalk.SpecFlow.Parser.Compatibility/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Gherkin" version="5.0.0" targetFramework="net45" />
<package id="GitVersionTask" version="4.0.0-beta0012" targetFramework="net45" developmentDependency="true" />
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net45" />
</packages>
4 changes: 2 additions & 2 deletions TechTalk.SpecFlow.Parser/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("9d1b09a6-4601-44a2-9849-08f512ab832b")]

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]


9 changes: 9 additions & 0 deletions TechTalk.SpecFlow.Parser/TechTalk.SpecFlow.Parser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\specflow.snk</AssemblyOriginatorKeyFile>
<TargetFrameworkProfile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -73,6 +75,13 @@
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets" Condition="Exists('..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets'))" />
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Expand Down
1 change: 1 addition & 0 deletions TechTalk.SpecFlow.Parser/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Gherkin" version="5.0.0" targetFramework="net45" />
<package id="GitVersionTask" version="4.0.0-beta0012" targetFramework="net45" developmentDependency="true" />
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net45" />
</packages>
4 changes: 2 additions & 2 deletions TechTalk.SpecFlow.Reporting/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("08de25e1-aa29-4d61-9441-23ed05ab1dce")]

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]


Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
<StartupObject>
</StartupObject>
<TargetFrameworkProfile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -133,6 +135,13 @@
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets" Condition="Exists('..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets'))" />
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Expand Down
1 change: 1 addition & 0 deletions TechTalk.SpecFlow.Reporting/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Gherkin" version="5.0.0" targetFramework="net45" />
<package id="GitVersionTask" version="4.0.0-beta0012" targetFramework="net45" developmentDependency="true" />
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net45" />
</packages>
4 changes: 2 additions & 2 deletions TechTalk.SpecFlow.Tools/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("fff5bcba-c01a-4bd8-9945-f7771e4a7d6f")]

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]



10 changes: 10 additions & 0 deletions TechTalk.SpecFlow.Tools/TechTalk.SpecFlow.Tools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -106,12 +108,20 @@
<SubType>Designer</SubType>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="packages.config" />
<None Include="plugincompability.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project=".\Build\Build.targets" />
<Import Project="..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets" Condition="Exists('..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets'))" />
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Expand Down
7 changes: 6 additions & 1 deletion TechTalk.SpecFlow.Tools/build/Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@


<Target Name="GenerateConfigs">
<Message Text="Generating Configs for Version '$(SpecFlowBaseVersion)'" />
<PropertyGroup>
<SpecFlowBaseVersion Condition="'$(SpecFlowBaseVersion)' == ''">$(GitVersion_NuGetVersion)</SpecFlowBaseVersion>
</PropertyGroup>

<Message Text="Generating Configs for Version '$(SpecFlowBaseVersion)'" />
<ReplaceTokenInFile InputPath="$(ProjectDir)\\config.template" OutputPath="$(ProjectDir)\\app.config" Token="[CURRENT_VERSION]" Replacement="$(SpecFlowBaseVersion)"/>
<ReplaceTokenInFile InputPath="$(ProjectDir)\\config.template" OutputPath="$(ProjectDir)\\plugincompability.config" Token="[CURRENT_VERSION]" Replacement="$(SpecFlowBaseVersion)"/>
</Target>

<Target Name="BeforeBuild">
<CallTarget Targets="GetVersion" />
<CallTarget Targets="GenerateConfigs" />
</Target>

Expand Down
4 changes: 4 additions & 0 deletions TechTalk.SpecFlow.Tools/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="GitVersionTask" version="4.0.0-beta0012" targetFramework="net45" developmentDependency="true" />
</packages>
4 changes: 2 additions & 2 deletions TechTalk.SpecFlow.Utils/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("469a3cef-9c42-4dea-b65c-b4f3df734fc8")]

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]



12 changes: 12 additions & 0 deletions TechTalk.SpecFlow.Utils/TechTalk.SpecFlow.Utils.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\specflow.snk</AssemblyOriginatorKeyFile>
<TargetFrameworkProfile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -55,7 +57,17 @@
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="TempFile.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets" Condition="Exists('..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\GitVersionTask.4.0.0-beta0012\build\GitVersionTask.targets'))" />
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Expand Down
4 changes: 4 additions & 0 deletions TechTalk.SpecFlow.Utils/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="GitVersionTask" version="4.0.0-beta0012" targetFramework="net45" developmentDependency="true" />
</packages>
Loading

0 comments on commit d93d90c

Please sign in to comment.