|
141 | 141 | </PropertyGroup>
|
142 | 142 | <!-- Copy target file so that our temporary file gets the correct permissions -->
|
143 | 143 | <Copy SourceFiles="$(TargetPath)" DestinationFolder="$(TargetDir)ILMergeTemp\" />
|
144 |
| - <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 " /> |
| 144 | + <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 " /> |
145 | 145 | <ItemGroup>
|
146 | 146 | <TempFiles Include="$(TargetDir)ILMergeTemp\*.*" />
|
147 | 147 | <NativeBinaries Include="$(TargetDir)lib\**\*.*" />
|
148 | 148 | <WindowsBinaries Include="$(TargetDir)lib\**\*.dll" />
|
| 149 | + <LibGit2SharpFiles Include="$(TargetDir)LibGit2Sharp.*" Exclude="$(TargetDir)LibGit2Sharp.xml" /> |
149 | 150 | </ItemGroup>
|
| 151 | + <!-- NugetCommandLineBuild --> |
| 152 | + <MakeDir Directories="$(BuildDir)NuGetCommandLineBuild" /> |
| 153 | + <Copy SourceFiles="@(NativeBinaries)" DestinationFiles="@(NativeBinaries->'$(BuildDir)NuGetCommandLineBuild\tools\lib\%(RecursiveDir)%(Filename)%(Extension)')" /> |
| 154 | + <Copy SourceFiles="@(LibGit2SharpFiles)" DestinationFolder="$(BuildDir)NuGetCommandLineBuild\tools" /> |
| 155 | + <Copy SourceFiles="$(OutputPath)GitVersion.pdb" DestinationFolder="$(BuildDir)NuGetCommandLineBuild\tools" Condition="Exists('$(OutputPath)GitVersion.pdb')" /> |
| 156 | + <Copy SourceFiles="$(OutputPath)GitVersion.exe.mdb" DestinationFolder="$(BuildDir)NuGetCommandLineBuild\tools" Condition="Exists('$(OutputPath)GitVersion.exe.mdb')" /> |
| 157 | + <Copy SourceFiles="$(OutputPath)ILMergeTemp\GitVersion.exe" DestinationFolder="$(BuildDir)NuGetCommandLineBuild\tools" /> |
| 158 | + <Copy SourceFiles="$(ProjectDir)NugetAssets\GitVersion.CommandLine.nuspec" DestinationFolder="$(BuildDir)NuGetCommandLineBuild" /> |
| 159 | + <PepitaPackage.CreatePackageTask NuGetBuildDirectory="$(BuildDir)NuGetCommandLineBuild" MetadataAssembly="$(OutputPath)ILMergeTemp\GitVersion.exe" Version="$(GitVersion_NuGetVersion)" /> |
| 160 | + <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 " /> |
150 | 161 | <!-- NugetExeBuild -->
|
151 | 162 | <MakeDir Directories="$(BuildDir)NuGetExeBuild" />
|
152 | 163 | <Copy SourceFiles="@(NativeBinaries)" DestinationFiles="@(NativeBinaries->'$(BuildDir)NuGetExeBuild\tools\lib\%(RecursiveDir)%(Filename)%(Extension)')" />
|
|
157 | 168 | <Copy SourceFiles="$(ProjectDir)NugetAssets\chocolateyUninstall.ps1" DestinationFolder="$(BuildDir)NuGetExeBuild\tools" />
|
158 | 169 | <Copy SourceFiles="$(ProjectDir)NugetAssets\GitVersion.Portable.nuspec" DestinationFolder="$(BuildDir)NuGetExeBuild" />
|
159 | 170 | <PepitaPackage.CreatePackageTask NuGetBuildDirectory="$(BuildDir)NuGetExeBuild" MetadataAssembly="$(OutputPath)ILMergeTemp\GitVersion.exe" Version="$(GitVersion_NuGetVersion)" />
|
160 |
| - <!-- NugetCommandLineBuild --> |
161 |
| - <MakeDir Directories="$(BuildDir)NuGetCommandLineBuild" /> |
162 |
| - <Copy SourceFiles="@(NativeBinaries)" DestinationFiles="@(NativeBinaries->'$(BuildDir)NuGetCommandLineBuild\tools\lib\%(RecursiveDir)%(Filename)%(Extension)')" /> |
163 |
| - <Copy SourceFiles="$(OutputPath)GitVersion.pdb" DestinationFolder="$(BuildDir)NuGetCommandLineBuild\tools" Condition="Exists('$(OutputPath)GitVersion.pdb')" /> |
164 |
| - <Copy SourceFiles="$(OutputPath)GitVersion.exe.mdb" DestinationFolder="$(BuildDir)NuGetCommandLineBuild\tools" Condition="Exists('$(OutputPath)GitVersion.exe.mdb')" /> |
165 |
| - <Copy SourceFiles="$(OutputPath)ILMergeTemp\GitVersion.exe" DestinationFolder="$(BuildDir)NuGetCommandLineBuild\tools" /> |
166 |
| - <Copy SourceFiles="$(ProjectDir)NugetAssets\GitVersion.CommandLine.nuspec" DestinationFolder="$(BuildDir)NuGetCommandLineBuild" /> |
167 |
| - <PepitaPackage.CreatePackageTask NuGetBuildDirectory="$(BuildDir)NuGetCommandLineBuild" MetadataAssembly="$(OutputPath)ILMergeTemp\GitVersion.exe" Version="$(GitVersion_NuGetVersion)" /> |
168 | 171 | <!-- TfsBuildTask -->
|
169 | 172 | <Copy SourceFiles="@(NativeBinaries)" DestinationFiles="@(NativeBinaries->'$(BuildDir)GitVersionTfsTaskBuild\GitVersionTask\lib\%(RecursiveDir)%(Filename)%(Extension)')" />
|
170 | 173 | <Copy SourceFiles="$(OutputPath)GitVersion.pdb" DestinationFolder="$(BuildDir)GitVersionTfsTaskBuild" Condition="Exists('$(OutputPath)GitVersion.pdb')" />
|
|
0 commit comments