Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
Always copy to the output folder just in case.
Browse files Browse the repository at this point in the history
The older version of NuGet.exe was in the output folder and committed to git. This meant the file timestamps were not correct when building, and msbuild left the old file around. This will ensure we always get the results we expected.
  • Loading branch information
michaelnoonan committed Nov 24, 2016
1 parent a3812e1 commit 102e360
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/OctoPack.Tasks/OctoPack.Tasks.csproj
Expand Up @@ -75,14 +75,14 @@
<ItemGroup>
<None Include="..\tools\NuGet.exe">
<Link>NuGet.exe</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>dir
xcopy * ..\..\..\Samples\.octopack\ /Y
</PostBuildEvent>
copy nuget.exe ..\..\..\Samples\.nuget\</PostBuildEvent>
</PropertyGroup>
<Import Project="..\packages\GitVersionTask.3.6.2\build\portable-net+sl+win+wpa+wp\GitVersionTask.targets" Condition="Exists('..\packages\GitVersionTask.3.6.2\build\portable-net+sl+win+wpa+wp\GitVersionTask.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
Expand Down

0 comments on commit 102e360

Please sign in to comment.