File tree Expand file tree Collapse file tree 3 files changed +6
-17
lines changed Expand file tree Collapse file tree 3 files changed +6
-17
lines changed Original file line number Diff line number Diff line change 1
- nuget.exe
2
1
nunit. *
3
2
vswhere /
4
3
csharpasyncgenerator.commandline /
Original file line number Diff line number Diff line change 47
47
<property name =" tools.dir" value =" ${root.dir}/Tools" />
48
48
</target >
49
49
50
- <target name =" common.download-nuget" depends =" common.init" >
51
- <get
52
- src=" https://dist.nuget.org/win-x86-commandline/latest/nuget.exe"
53
- dest=" ${tools.dir}/nuget.exe"
54
- usetimestamp=" true"
55
- />
56
- </target >
57
-
58
50
<target name =" common.tools-restore" depends =" common.init" >
59
51
<exec workingdir =" ${root.dir}/Tools" program =" dotnet" verbose =" true" >
60
52
<arg line =" restore ./packages.csproj --packages ." />
Original file line number Diff line number Diff line change 21
21
</target >
22
22
23
23
<target name =" nuget.set-properties" >
24
- <property name =" nuget.nupackages.relative-dir" value =" nuget_gallery" />
25
- <property name =" nuget.nupackages.dir" value =" ${build.dir}/${nuget.nupackages.relative-dir}" />
24
+ <property name =" nuget.nupackages.dir" value =" ${build.dir}/nuget_gallery" />
26
25
<property name =" nuget.nupackages.pushbatfile" value =" ${nuget.nupackages.dir}/NuGetPush.bat" />
27
26
</target >
28
27
313
312
314
313
</target >
315
314
316
- <target name =" nugetpushbat" depends =" init binaries common.download-nuget nuget.set-properties"
315
+ <target name =" nugetpushbat" depends =" init binaries nuget.set-properties"
317
316
description=" Creates files for the release on nuget gallery." >
318
317
319
- <copy file =" ${tools.dir}/NuGet.exe" todir =" ${nuget.nupackages.dir}" />
320
-
321
318
<echo message =" rem In order to use this bat you have to be sure you have executed 'nuget SetApiKey' ${environment::newline()}" file =" ${nuget.nupackages.pushbatfile}" append =" false" />
322
319
<foreach item =" File" property =" filename" >
323
320
<in >
326
323
</items >
327
324
</in >
328
325
<do >
329
- <echo message =" nuget push -source https://api.nuget.org/v3/index.json ${path::get-file-name(filename)} ${environment::newline()}" file =" ${nuget.nupackages.pushbatfile}" append =" true" />
326
+ <echo message =" dotnet nuget push -s https://api.nuget.org/v3/index.json ${path::get-file-name(filename)} ${environment::newline()}" file =" ${nuget.nupackages.pushbatfile}" append =" true" />
330
327
</do >
331
328
</foreach >
332
329
</target >
333
330
334
- <target name =" nugetpush" depends =" init binaries common.download-nuget nuget.set-properties"
331
+ <target name =" nugetpush" depends =" init binaries nuget.set-properties"
335
332
description=" Push packages on nuget gallery." >
336
333
<!-- In order to use this task you have to be sure you have executed 'nuget SetApiKey' -->
337
334
<foreach item =" File" property =" filename" >
341
338
</items >
342
339
</in >
343
340
<do >
344
- <exec basedir =" ${tools.dir}" workingdir =" ${nuget.nupackages.dir}" program =" NuGet.exe" >
341
+ <exec basedir =" ${tools.dir}" workingdir =" ${nuget.nupackages.dir}" program =" dotnet" >
342
+ <arg value =" nuget" />
345
343
<arg value =" push" />
346
344
<arg value =" ${filename}" />
347
345
</exec >
You can’t perform that action at this time.
0 commit comments