Skip to content

Commit da59cf5

Browse files
Fix NuGetPush.bat for being compatible with current NuGet
And cease specifying full package path, as the bat is likely to be executed from another folder than the CI build machine path.
1 parent 761ffe7 commit da59cf5

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

default.build

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,10 +319,21 @@
319319
<in>
320320
<items>
321321
<include name="${nuget.nupackages.dir}/*.nupkg"/>
322+
<exclude name="${nuget.nupackages.dir}/*.symbols.nupkg"/>
322323
</items>
323324
</in>
324325
<do>
325-
<echo message="nuget push ${filename} ${environment::newline()}" file="${nuget.nupackages.pushbatfile}" append="true"/>
326+
<echo message="nuget push -source https://nuget.org/ ${path::get-file-name(filename)} ${environment::newline()}" file="${nuget.nupackages.pushbatfile}" append="true"/>
327+
</do>
328+
</foreach>
329+
<foreach item="File" property="filename">
330+
<in>
331+
<items>
332+
<include name="${nuget.nupackages.dir}/*.symbols.nupkg"/>
333+
</items>
334+
</in>
335+
<do>
336+
<echo message="nuget push -source https://nuget.smbsrc.net/ ${path::get-file-name(filename)} ${environment::newline()}" file="${nuget.nupackages.pushbatfile}" append="true"/>
326337
</do>
327338
</foreach>
328339
</target>

0 commit comments

Comments
 (0)