File tree Expand file tree Collapse file tree 5 files changed +17
-8
lines changed
Expand file tree Collapse file tree 5 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 1+ nuget.exe
Original file line number Diff line number Diff line change 4444
4545 <include buildfile =" common.xml" />
4646
47- <target name =" common.nuget-restore" depends =" common.init" >
48- <exec basedir =" ${tools.dir}" workingdir =" ${root.dir}/src" program =" NuGet.exe" >
49- <arg value =" restore" />
50- <arg value =" NHibernate.sln" />
51- </exec >
47+ <target name =" common.download-nuget" depends =" common.init" >
48+ <get
49+ src=" http://dist.nuget.org/win-x86-commandline/latest/nuget.exe"
50+ dest=" ${tools.dir}/nuget.exe"
51+ usetimestamp=" true"
52+ />
53+ </target >
54+
55+ <target name =" common.nuget-restore" depends =" common.init common.download-nuget" >
56+ <exec basedir =" ${tools.dir}" workingdir =" ${root.dir}/src" program =" NuGet.exe" >
57+ <arg value =" restore" />
58+ <arg value =" NHibernate.sln" />
59+ </exec >
5260 </target >
5361
5462 <target name =" common.compile-all" depends =" common.generate-assemblyinfo common.nuget-restore" >
Original file line number Diff line number Diff line change 271271 </move >
272272 </target >
273273
274- <target name =" nugetpushbat" depends =" init binaries nuget.set-properties nuspec nuget"
274+ <target name =" nugetpushbat" depends =" init binaries common.download-nuget nuget.set-properties nuspec nuget"
275275 description =" Creates files for the release on nuget gallery." >
276276
277277 <copy file =" ${tools.dir}/NuGet.exe" todir =" ${nuget.nupackages.dir}" />
289289 </foreach >
290290 </target >
291291
292- <target name =" nugetpush" depends =" init binaries nuget.set-properties nuspec nuget"
292+ <target name =" nugetpush" depends =" init binaries common.download-nuget nuget.set-properties nuspec nuget"
293293 description =" Push packages on nuget gallery." >
294294 <!-- In order to use this task you have to be sure you have executed 'nuget SetApiKey' -->
295295 <foreach item =" File" property =" filename" >
Original file line number Diff line number Diff line change 1616 <xmlpoke file =" ${nuspec.destination.file}" xpath =" /package/metadata/version" value =" ${project.version.nuget}" />
1717 </target >
1818
19- <target name =" nuget" depends =" common.init nuget.set-properties nuspec" >
19+ <target name =" nuget" depends =" common.init common.download-nuget nuget.set-properties nuspec" >
2020 <!-- Prepare working dir with file needed by NHibernate.nuspec -->
2121 <copy file =" ${bin.dir}/NHibernate.dll" todir =" ${nuget.workingdir}" />
2222 <copy file =" ${bin.dir}/NHibernate.pdb" todir =" ${nuget.workingdir}" />
You can’t perform that action at this time.
0 commit comments