echo ProjectDll = $(OutDir)\$(AssemblyName).dll
echo BuildingInsideVisualStudio = $(BuildingInsideVisualStudio)
echo Configuration = $(ConfigurationName)
IF '$(BuildingInsideVisualStudio)'=='true' (
if '$(ConfigurationName)' == 'Release' "$(SolutionDir).nuget\NuGet.exe" pack "$(ProjectDir)\$(MSBuildProjectFile)" -Prop Configuration=Release ) ELSE (
 if '$(ConfigurationName)' == 'Release' "$(SolutionDir).nuget\NuGet.exe" pack "$(ProjectDir)\$(MSBuildProjectFile)" -Prop Configuration=Release -Prop TargetPath="$(OutDir)\$(AssemblyName).dll" -OutputDirectory "$(OutDir)." 
xcopy "$(OutDir)$(AssemblyName).*.nupkg" "\\arup-dev\developer\NuGet Repository" )

Last edited May 29, 2012 at 5:37 PM by Vaccano, version 1

Comments

No comments yet.