Skip to content
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

Do not treat warning NU1803 (You are running the 'restore' operation with an 'HTTP ' source) as build error #2031

Closed
ITaluone opened this issue Nov 8, 2022 · 2 comments · Fixed by #2032

Comments

@ITaluone
Copy link
Contributor

ITaluone commented Nov 8, 2022

Before you file a bug, have you:

  • Tried upgrading to newest version of Fluent Assertions, to see if your issue has already been resolved and released?
  • Checked existing open and closed issues, to see if the issue has already been reported?
  • Tried reproducing your problem in a new isolated project?
  • Read the documentation?
  • Considered if this is a general question and not a bug?. For general questions please use StackOverflow.

Description

Restoring and building the project does not work if you have e.g. internal non-https nuget sources.

This is a proposal to ignore this error.

@jnyrup
Copy link
Member

jnyrup commented Nov 8, 2022

I would rather fix why your building process looks at other sources when restoring packages.

It seems we can fix by adding <clear /> to https://github.com/fluentassertions/fluentassertions/blob/develop/nuget.config

https://learn.microsoft.com/en-us/nuget/consume-packages/configuring-nuget-behavior#settings-walkthrough

and according to https://learn.microsoft.com/en-us/nuget/reference/nuget-config-file activePackageSource is also deprecated with nuget 3.x

@ITaluone
Copy link
Contributor Author

ITaluone commented Nov 8, 2022

Cool :)

done that and re-checked all is working as expected 🎉

And.. PR is out too ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants