Skip to content

Commit ad3dfb5

Browse files
committed
updated to the msbuild props and targets
updated to the msbuild props and targets
1 parent 2058982 commit ad3dfb5

File tree

7 files changed

+271
-98
lines changed

7 files changed

+271
-98
lines changed
Lines changed: 44 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,45 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
3-
<metadata>
4-
<id>GitVersionTask</id>
5-
<version>1.0.0</version>
6-
<title>GitVersionTask</title>
7-
<authors>GitTools and Contributors</authors>
8-
<owners>GitTools and Contributors</owners>
9-
<requireLicenseAcceptance>false</requireLicenseAcceptance>
10-
<developmentDependency>true</developmentDependency>
11-
<license type="expression">MIT</license>
12-
<projectUrl>https://github.com/GitTools/GitVersion</projectUrl>
13-
<iconUrl>https://raw.githubusercontent.com/GitTools/GitVersion/master/docs/img/package_icon.png</iconUrl>
14-
<description>Stamps an assembly with git information based on SemVer.</description>
15-
<releaseNotes>https://github.com/GitTools/GitVersion/releases</releaseNotes>
16-
<copyright>Copyright GitTools 2019.</copyright>
17-
<tags>Git Versioning GitVersion GitFlowVersion GitFlow GitHubFlow SemVer</tags>
18-
<dependencies>
19-
<group>
20-
<dependency id="UtilPack.NuGet.MSBuild" version="$utilpackversion$" exclude="Build,Analyzers" />
21-
</group>
22-
<group targetFramework=".NETStandard2.0">
23-
<dependency id="UtilPack.NuGet.MSBuild" version="$utilpackversion$" exclude="Build,Analyzers" />
24-
<dependency id="LibGit2Sharp" version="$libgit2sharpversion$" exclude="Build,Analyzers" />
25-
<dependency id="YamlDotNet" version="$yamldotnetversion$" exclude="Build,Analyzers" />
26-
</group>
27-
<group targetFramework=".NETFramework4.6.1">
28-
<dependency id="UtilPack.NuGet.MSBuild" version="$utilpackversion$" exclude="Build,Analyzers" />
29-
</group>
30-
</dependencies>
31-
</metadata>
32-
<files>
33-
<file src="..\NugetAssets\build\**" target="build" />
34-
<file src="..\NugetAssets\build\GitVersionTask.targets" target="buildMultiTargeting" />
35-
<file src="..\bin\$configuration$\**" target="build" />
36-
<file src="..\UtilPack.Version.props" target="build" />
37-
</files>
1+
<?xml version="1.0"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
3+
<metadata>
4+
<id>GitVersionTask</id>
5+
<version>1.0.0</version>
6+
<title>GitVersionTask</title>
7+
<authors>GitTools and Contributors</authors>
8+
<owners>GitTools and Contributors</owners>
9+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
10+
<developmentDependency>true</developmentDependency>
11+
<license type="expression">MIT</license>
12+
<projectUrl>https://github.com/GitTools/GitVersion</projectUrl>
13+
<iconUrl>https://raw.githubusercontent.com/GitTools/GitVersion/master/docs/img/package_icon.png</iconUrl>
14+
<description>Stamps an assembly with git information based on SemVer.</description>
15+
<releaseNotes>https://github.com/GitTools/GitVersion/releases</releaseNotes>
16+
<copyright>Copyright GitTools 2019.</copyright>
17+
<tags>Git Versioning GitVersion GitFlowVersion GitFlow GitHubFlow SemVer</tags>
18+
</metadata>
19+
<files>
20+
<!--
21+
List platforms explicitly. If a new platform is supported by libgit2 update RuntimeIdMap method to handle it.
22+
-->
23+
<file src="netcoreapp2.1\publish\runtimes\**\*.so" target="tools\netstandard2.0\runtimes" />
24+
<file src="netcoreapp2.1\publish\runtimes\**\*.dylib" target="tools\netstandard2.0\runtimes" />
25+
<file src="netcoreapp2.1\publish\runtimes\win-x86\native\*.dll" target="tools\netstandard2.0\runtimes\win-x86\native" />
26+
<file src="netcoreapp2.1\publish\runtimes\win-x64\native\*.dll" target="tools\netstandard2.0\runtimes\win-x64\native" />
27+
28+
<file src="netcoreapp2.1\publish\LibGit2Sharp.dll" target="tools\netstandard2.0" />
29+
<file src="netcoreapp2.1\publish\Newtonsoft.Json.dll" target="tools\netstandard2.0" />
30+
<file src="netcoreapp2.1\publish\YamlDotNet.dll" target="tools\netstandard2.0" />
31+
<file src="netcoreapp2.1\publish\GitVersion*" target="tools\netstandard2.0" />
32+
33+
<file src="net461\GitVersion*" target="tools\net461" />
34+
<file src="net461\LibGit2Sharp.*" target="tools\net461" />
35+
<file src="net461\YamlDotNet.*" target="tools\net461" />
36+
37+
<file src="net461\lib\linux-x64\*.so" target="tools\net461\lib\linux-x64" />
38+
<file src="net461\lib\osx\*.dylib" target="tools\net461\lib\osx" />
39+
<file src="net461\lib\win32\**\*.dll" target="tools\net461\lib\win32" />
40+
41+
<file src="..\..\build\*.*" target="build" />
42+
<file src="..\..\buildMultiTargeting\*.*" target="buildMultiTargeting" />
43+
44+
</files>
3845
</package>

src/GitVersionTask/NugetAssets/build/GitVersionTask.targets

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/GitVersionTask/NugetAssets/build/functionality/GitVersionMultiTargetBuild.targets

Lines changed: 0 additions & 53 deletions
This file was deleted.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
<PropertyGroup>
4+
<GitVersionAssemblyFile Condition="'$(MSBuildRuntimeType)' != 'Core'">$(MSBuildThisFileDirectory)..\tools\net461\GitVersion.MsBuild.Task.dll</GitVersionAssemblyFile>
5+
<GitVersionAssemblyFile Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\tools\netstandard2.0\GitVersion.MsBuild.Task.dll</GitVersionAssemblyFile>
6+
7+
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
8+
<GitVersionPath Condition="'$(GitVersionPath)' == '' And '$(GitVersionUseSolutionDir)' == 'true'">$(SolutionDir)</GitVersionPath>
9+
<GitVersionPath Condition="'$(GitVersionPath)' == ''">$(MSBuildProjectDirectory)</GitVersionPath>
10+
11+
<GitVersion_NoFetchEnabled Condition="$(GitVersion_NoFetchEnabled) == ''">false</GitVersion_NoFetchEnabled>
12+
13+
<!-- Property that enables WriteVersionInfoToBuildLog -->
14+
<WriteVersionInfoToBuildLog Condition=" '$(WriteVersionInfoToBuildLog)' == '' ">true</WriteVersionInfoToBuildLog>
15+
16+
<!-- Property that enables UpdateAssemblyInfo. Default to off for SDK builds -->
17+
<UpdateAssemblyInfo Condition=" '$(UpdateAssemblyInfo)' == '' ">true</UpdateAssemblyInfo>
18+
19+
<!-- Property that enables GenerateGitVersionInformation -->
20+
<GenerateGitVersionInformation Condition=" '$(GenerateGitVersionInformation)' == '' ">true</GenerateGitVersionInformation>
21+
22+
<!-- Property that enables GetVersion -->
23+
<GetVersion Condition=" '$(GetVersion)' == '' ">true</GetVersion>
24+
25+
<GenerateGitVersionWixDefines Condition=" '$(GenerateGitVersionWixDefines)' == '' ">true</GenerateGitVersionWixDefines>
26+
<!--
27+
Ensure GetVersion runs prior to XAML's Markup Compiler in order to have the assembly version available.
28+
Otherwise the generated resource URI's are ambiguous when multiple versions are loaded simultaneously (i.e. in plugins)
29+
-->
30+
<MarkupCompilePass1DependsOn>$(MarkupCompilePass1DependsOn);GetVersion</MarkupCompilePass1DependsOn>
31+
<GetPackageVersionDependsOn>$(GetPackageVersionDependsOn);GetVersion</GetPackageVersionDependsOn>
32+
33+
<!-- Property that enables setting of Version -->
34+
<UpdateVersionProperties Condition=" '$(UpdateVersionProperties)' == '' ">true</UpdateVersionProperties>
35+
<UseFullSemVerForNuGet Condition=" '$(UseFullSemVerForNuGet)' == '' ">false</UseFullSemVerForNuGet>
36+
</PropertyGroup>
37+
</Project>

0 commit comments

Comments
 (0)