|
142 | 142 | </PropertyGroup>
|
143 | 143 | <!-- Copy target file so that our temporary file gets the correct permissions -->
|
144 | 144 | <Copy SourceFiles="$(TargetPath)" DestinationFolder="$(TargetDir)ILMergeTemp\" />
|
145 |
| - <Exec Command="$(Runtime) "$(SolutionDir)packages\ILRepack.2.0.10\tools\ILRepack.exe" /allowDup /keyfile:"$(SolutionDir)key.snk" /out:"$(TargetDir)ILMergeTemp\$(TargetFileName)" "$(TargetPath)" "$(TargetDir)GitVersionCore.dll" "$(TargetDir)GitTools.Core.dll" "$(TargetDir)LibGit2Sharp.dll" "$(TargetDir)YamlDotNet.dll" /target:exe /targetplatform:"v4,$(FrameworkPathOverride)" /ndebug /internalize " /> |
| 145 | + <Exec Command="$(Runtime) "$(SolutionDir)packages\ILRepack.2.0.10\tools\ILRepack.exe" /allowDup /keyfile:"$(SolutionDir)key.snk" /out:"$(TargetDir)ILMergeTemp\$(TargetFileName)" "$(TargetPath)" "$(TargetDir)GitVersionCore.dll" "$(TargetDir)GitTools.Core.dll" "$(TargetDir)YamlDotNet.dll" /target:exe /targetplatform:"v4,$(FrameworkPathOverride)" /ndebug /internalize " /> |
146 | 146 | <ItemGroup>
|
147 | 147 | <TempFiles Include="$(TargetDir)ILMergeTemp\*.*" />
|
148 | 148 | <NativeBinaries Include="$(TargetDir)lib\**\*.*" />
|
149 | 149 | <WindowsBinaries Include="$(TargetDir)lib\**\*.dll" />
|
| 150 | + <LibGit2SharpFiles Include="$(TargetDir)LibGit2Sharp.*" Exclude="$(TargetDir)LibGit2Sharp.xml" /> |
150 | 151 | </ItemGroup>
|
| 152 | + <!-- NugetCommandLineBuild --> |
| 153 | + <MakeDir Directories="$(BuildDir)NuGetCommandLineBuild" /> |
| 154 | + <Copy SourceFiles="@(NativeBinaries)" DestinationFiles="@(NativeBinaries->'$(BuildDir)NuGetCommandLineBuild\tools\lib\%(RecursiveDir)%(Filename)%(Extension)')" /> |
| 155 | + <Copy SourceFiles="@(LibGit2SharpFiles)" DestinationFolder="$(BuildDir)NuGetCommandLineBuild\tools" /> |
| 156 | + <Copy SourceFiles="$(OutputPath)GitVersion.pdb" DestinationFolder="$(BuildDir)NuGetCommandLineBuild\tools" Condition="Exists('$(OutputPath)GitVersion.pdb')" /> |
| 157 | + <Copy SourceFiles="$(OutputPath)GitVersion.exe.mdb" DestinationFolder="$(BuildDir)NuGetCommandLineBuild\tools" Condition="Exists('$(OutputPath)GitVersion.exe.mdb')" /> |
| 158 | + <Copy SourceFiles="$(OutputPath)ILMergeTemp\GitVersion.exe" DestinationFolder="$(BuildDir)NuGetCommandLineBuild\tools" /> |
| 159 | + <Copy SourceFiles="$(ProjectDir)NugetAssets\GitVersion.CommandLine.nuspec" DestinationFolder="$(BuildDir)NuGetCommandLineBuild" /> |
| 160 | + <PepitaPackage.CreatePackageTask NuGetBuildDirectory="$(BuildDir)NuGetCommandLineBuild" MetadataAssembly="$(OutputPath)ILMergeTemp\GitVersion.exe" Version="$(GitVersion_NuGetVersion)" /> |
| 161 | + <Exec Command="$(Runtime) "$(SolutionDir)packages\ILRepack.2.0.10\tools\ILRepack.exe" /allowDup /keyfile:"$(SolutionDir)key.snk" /out:"$(TargetDir)ILMergeTemp\$(TargetFileName)" "$(TargetPath)" "$(TargetDir)GitVersionCore.dll" "$(TargetDir)GitTools.Core.dll" "$(TargetDir)LibGit2Sharp.dll" "$(TargetDir)YamlDotNet.dll" /target:exe /targetplatform:"v4,$(FrameworkPathOverride)" /ndebug /internalize " /> |
151 | 162 | <!-- NugetExeBuild -->
|
152 | 163 | <MakeDir Directories="$(BuildDir)NuGetExeBuild" />
|
153 | 164 | <Copy SourceFiles="@(NativeBinaries)" DestinationFiles="@(NativeBinaries->'$(BuildDir)NuGetExeBuild\tools\lib\%(RecursiveDir)%(Filename)%(Extension)')" />
|
|
158 | 169 | <Copy SourceFiles="$(ProjectDir)NugetAssets\chocolateyUninstall.ps1" DestinationFolder="$(BuildDir)NuGetExeBuild\tools" />
|
159 | 170 | <Copy SourceFiles="$(ProjectDir)NugetAssets\GitVersion.Portable.nuspec" DestinationFolder="$(BuildDir)NuGetExeBuild" />
|
160 | 171 | <PepitaPackage.CreatePackageTask NuGetBuildDirectory="$(BuildDir)NuGetExeBuild" MetadataAssembly="$(OutputPath)ILMergeTemp\GitVersion.exe" Version="$(GitVersion_NuGetVersion)" />
|
161 |
| - <!-- NugetCommandLineBuild --> |
162 |
| - <MakeDir Directories="$(BuildDir)NuGetCommandLineBuild" /> |
163 |
| - <Copy SourceFiles="@(NativeBinaries)" DestinationFiles="@(NativeBinaries->'$(BuildDir)NuGetCommandLineBuild\tools\lib\%(RecursiveDir)%(Filename)%(Extension)')" /> |
164 |
| - <Copy SourceFiles="$(OutputPath)GitVersion.pdb" DestinationFolder="$(BuildDir)NuGetCommandLineBuild\tools" Condition="Exists('$(OutputPath)GitVersion.pdb')" /> |
165 |
| - <Copy SourceFiles="$(OutputPath)GitVersion.exe.mdb" DestinationFolder="$(BuildDir)NuGetCommandLineBuild\tools" Condition="Exists('$(OutputPath)GitVersion.exe.mdb')" /> |
166 |
| - <Copy SourceFiles="$(OutputPath)ILMergeTemp\GitVersion.exe" DestinationFolder="$(BuildDir)NuGetCommandLineBuild\tools" /> |
167 |
| - <Copy SourceFiles="$(ProjectDir)NugetAssets\GitVersion.CommandLine.nuspec" DestinationFolder="$(BuildDir)NuGetCommandLineBuild" /> |
168 |
| - <PepitaPackage.CreatePackageTask NuGetBuildDirectory="$(BuildDir)NuGetCommandLineBuild" MetadataAssembly="$(OutputPath)ILMergeTemp\GitVersion.exe" Version="$(GitVersion_NuGetVersion)" /> |
169 | 172 | <!-- TfsBuildTask -->
|
170 | 173 | <Copy SourceFiles="@(NativeBinaries)" DestinationFiles="@(NativeBinaries->'$(BuildDir)GitVersionTfsTaskBuild\GitVersionTask\lib\%(RecursiveDir)%(Filename)%(Extension)')" />
|
171 | 174 | <Copy SourceFiles="$(OutputPath)GitVersion.pdb" DestinationFolder="$(BuildDir)GitVersionTfsTaskBuild" Condition="Exists('$(OutputPath)GitVersion.pdb')" />
|
|
0 commit comments