Created
March 26, 2016 05:29
-
-
Save tmori3y2/b5aee2dc9a46c7ecd534 to your computer and use it in GitHub Desktop.
MSBuild target file which is imported in the project manually.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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=""$(NuGetExe)" pack $(ProjectName).nuspec -Tool -Prop Configuration=Release -OutputDirectory "$(NuGetDeploy)"" /> | |
</Target> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/tmori3y2/BlogSamples/blob/Article_20160321/NuGetPackages/MSBuildTasks/MSBuildTasks.ImportTasks/build/MSBuildTasks.ImportTasksPack.targets