Skip to content

Use dotnet to push packages to nuget #2377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2020

Conversation

hazzik
Copy link
Member

@hazzik hazzik commented May 11, 2020

No description provided.

description="Creates files for the release on nuget gallery.">

<copy file="${tools.dir}/NuGet.exe" todir="${nuget.nupackages.dir}"/>

<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"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment 'nuget SetApiKey' should also be updated accordingly

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no dotnet nuget SetApiKey.

As a workaround you could use nuget.exe setApiKey (or set the values manually in your nuget.config and then use dotnet nuget push. dotnet.exe should read the nuget.config and use the api keys found there.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to change as you see fit.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems workaround doesn't work for everyone (linux specific issue?)

Well have nothing to add - if you see no possible issues. Then fine. May be just add link to nuget.exe (https://dist.nuget.org/win-x86-commandline/latest/nuget.exe) in this comment

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think we need to explain more. Anyway, only most active contributors do the push currently. I guess we will all find what to do in case of troubles.

@fredericDelaporte fredericDelaporte added this to the 5.3 milestone May 13, 2020
@hazzik hazzik merged commit 4bd76b2 into nhibernate:master May 13, 2020
@hazzik hazzik deleted the do-not-download-nuget branch May 13, 2020 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants