Skip to content

Instantly share code, notes, and snippets.

@tmori3y2
Created March 26, 2016 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmori3y2/b5aee2dc9a46c7ecd534 to your computer and use it in GitHub Desktop.
Save tmori3y2/b5aee2dc9a46c7ecd534 to your computer and use it in GitHub Desktop.
MSBuild target file which is imported in the project manually.
<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Edit your project and insert MSBuildTasks.ImportTasksPack.targets below Microsoft.CSharp.props
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="build\MSBuildTasks.ImportTasksPack.targets" Condition="Exists('build\MSBuildTasks.ImportTasksPack.targets')" />
-->
<Target Name="Build"
Condition=" '$(Configuration)' == 'Release' ">
<Exec WorkingDirectory="$(ProjectDir)"
Command="&quot;$(NuGetExe)&quot; pack $(ProjectName).nuspec -Tool -Prop Configuration=Release -OutputDirectory &quot;$(NuGetDeploy)&quot;" />
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment