File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 5252 <!-- If package-lock.json has changed, perform an NPM install -->
5353 <Target Name =" PublishToNuget" AfterTargets =" Pack" DependsOnTargets =" Pack" >
5454 <Message Importance =" high" Text =" Publish nupkg %(NugetPublishInput.Identity) to server" />
55- <Exec Command =" dotnet nuget add source $(DoNugetFeedUrl) --username $(DoNugetFeedUserName) --password $(DoNugetFeedPassword) --store-password-in-clear-text" WorkingDirectory =" $(SolutionDir)_Build\Release\packages" />
55+ <!-- Create empty valid NuGet.Config file and add credentials there -->
56+ <WriteLinesToFile File =" $(SolutionDir)_Build\Release\packages\NuGet.Config" Lines =" < ?xml version=" 1.0" encoding=" utf-8" ?>< configuration>< /configuration> " Overwrite =" True" />
57+ <Exec Command =" dotnet nuget add source $(DoNugetFeedUrl) --username $(DoNugetFeedUserName) --password $(DoNugetFeedPassword) --store-password-in-clear-text --configfile NuGet.Config" WorkingDirectory =" $(SolutionDir)_Build\Release\packages" />
58+ <!-- Push packages using credentials from NuGet.Config file and then delete NuGet.Config -->
5659 <Exec Command =" dotnet nuget push %(NugetPublishInput.Identity) --force-english-output --timeout 60 --api-key az --source $(DoNugetFeedUrl)" WorkingDirectory =" $(SolutionDir)_Build\Release\packages" />
60+ <Delete Files =" $(SolutionDir)_Build\Release\packages\NuGet.Config" />
5761 </Target >
5862</Project >
You can’t perform that action at this time.
0 commit comments