-
Notifications
You must be signed in to change notification settings - Fork 487
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
Update NU1100.md #2829
Update NU1100.md #2829
Conversation
NU1100 may also be caused by the lack of a NuGet configura
Docs Build status updates of commit b111b96: ✅ Validation status: passed
For more details, please refer to the build report. Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report. For any questions, please:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you kindly for the contribution!
A dependency could not be resolved. This is a generic issue for types that are not packages or projects. | ||
A dependency could not be resolved. This is a generic issue for types that are not packages or projects. | ||
|
||
This issue may also be caused by the lack of a NuGet configuration file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NuGet would normally be creating the user-wide configuration file if it doesn't already exist.
Can you elaborate how you hit this?
The issue can be reproduced by:
1. Installing .NET Core
2. Installing VS Code
3. dotnet new mvc
4. dotnet build.
On systems without NuGet (or tools that install it, i.e. Visual Studio). .NET app building will trigger this issue.
Thanks.
… On 2/08/2022, at 2:04 PM, Nikolche Kolev ***@***.***> wrote:
@nkolev92 commented on this pull request.
In docs/reference/errors-and-warnings/NU1100.md:
> @@ -17,11 +17,16 @@ f1_keywords:
<pre>Unable to resolve 'Dependency (>= 1.0.0)' for 'TargetFramework'</pre>
### Issue
-A dependency could not be resolved. This is a generic issue for types that are not packages or projects.
+A dependency could not be resolved. This is a generic issue for types that are not packages or projects.
+
+This issue may also be caused by the lack of a NuGet configuration file.
NuGet would normally be creating the user-wide configuration file if it doesn't already exist.
Can you elaborate how you hit this?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
|
@JonDouglas I think we merged prematurely here. I think we need to confirm this repro first, as it doesn't really make sense to me immediately. |
@nkolev92 A simple reproduction is to remove the contents of a nuget.config file as if it were "empty". i.e. leave only the xml & configuration tags. I repro'd it and the contribution here is helpful as the first scenario asks to check if dependencies exist on package sources, but the reality is the config may be generated by other tooling causing issues and one may want to check the config for accuracy. This is similar to the problem of other nuget-powered tooling generating an empty config and the user has no idea how to resolve it. |
That's not what the update says. It talks about a missing nuget.config, which is different. |
@nkolev92 The assumption here is that there exists no config in the project/solution and the error is thrown because the user-level is problematic (i.e. empty from other tooling or similar). using the dotnet new nugetconfig generates a proper configuration at the project level that will override the user-level and thus works. Perhaps the language we want to instill here is fixing these items at the user-level or inspecting the various configs to ensure the sources exist in the first place? I still think the contribution is fine as is, but we can improve more later. That is my understanding and reproduction of the issue however! |
I don't think we can say The context with which it gets created is irrelevant imo.
I'll take a crack at updating this and create a PR. I think it'll be easier to make progress that way :D |
@waldyd As one last question, can you let us know the contents of your |
Hoping the following version improves clarity. |
I did not have a nuget.config file at a user level neither at global level. When the issue arose I had to create it at project level by issuing dotnet new nugetconfig.
… On 3/08/2022, at 1:11 PM, Jon Douglas ***@***.***> wrote:
@waldyd As one last question, can you let us know the contents of your user config?
https://docs.microsoft.com/nuget/consume-packages/configuring-nuget-behavior#config-file-locations-and-uses
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
NuGet creates a settings file if there's none. cc @v-luzh Can you please try to repro this? Start off with a new windows machine and follow the steps here: |
* document The parameter is incorrect behavior (#2800) * document The parameter is incorrect behavior * Add a note/tip instead of bold. Co-authored-by: Jon Douglas <jonathan.douglas@microsoft.com> * Add a dedicated page for props and targets (#2807) * Document NU1802 and NU1803 (#2816) * Add list in Normalized version numbers (#2818) Fix #2817 * Clarify headline of section about projects without any package dependencies (#2812) * Add issue management bots (#2825) * Fix formatting typo in CPM (#2832) * Add Gitea to NuGet hosting solutions (#2828) * Add Gitea to NuGet hosting solutions * Use Gitea project URL * Update NU1100.md (#2829) NU1100 may also be caused by the lack of a NuGet configura * Updates to ms.date values based on file history (#2831) * Updates to ms.date values based on file history * edit * fixed year * Alphabetize nuget list (#2837) * Improve NU1100 (#2838) * Add CODEOWNERS to docs PRs (#2836) * Release notes for 6.3 (#2834) * release notes for 6.3 Co-authored-by: Simon Cropp <simon.cropp@gmail.com> Co-authored-by: Nikolche Kolev <nikolce1kolev@gmail.com> Co-authored-by: andrei <andreiepure@users.noreply.github.com> Co-authored-by: riQQ <riQQ@users.noreply.github.com> Co-authored-by: Drew Noakes <git@drewnoakes.com> Co-authored-by: John Olheiser <john+github@jolheiser.com> Co-authored-by: Nestor Waldyd <nwaldyd@yahoo.co.uk> Co-authored-by: Mike Jones <mikejo@microsoft.com> Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: Kartheek Penagamuri <52756182+kartheekp-ms@users.noreply.github.com> Co-authored-by: Martin Ruiz <martin.ruiz.mares@gmail.com>
* Change link for pre-release guidance * Update release notes images * End of May 2022 Live Update (#2763) * June 2022 docs merge (#2783) * Add 5.9 release notes (#2780) * Add 6.0.2 release notes (#2774) * Add 5.11 release notes (#2775) * Add 5.7 release notes (#2776) * Add 4.9 release notes (#2777) * Add 5.2 release notes (#2778) * Merge main to live (#2808) * document The parameter is incorrect behavior (#2800) * document The parameter is incorrect behavior * Add a note/tip instead of bold. Co-authored-by: Jon Douglas <jonathan.douglas@microsoft.com> * Add a dedicated page for props and targets (#2807) Co-authored-by: Simon Cropp <simon.cropp@gmail.com> Co-authored-by: Jon Douglas <jonathan.douglas@microsoft.com> * Updates to ms.date values based on file history * edit * fixed year * August Docs Live Merge (#2840) * document The parameter is incorrect behavior (#2800) * document The parameter is incorrect behavior * Add a note/tip instead of bold. Co-authored-by: Jon Douglas <jonathan.douglas@microsoft.com> * Add a dedicated page for props and targets (#2807) * Document NU1802 and NU1803 (#2816) * Add list in Normalized version numbers (#2818) Fix #2817 * Clarify headline of section about projects without any package dependencies (#2812) * Add issue management bots (#2825) * Fix formatting typo in CPM (#2832) * Add Gitea to NuGet hosting solutions (#2828) * Add Gitea to NuGet hosting solutions * Use Gitea project URL * Update NU1100.md (#2829) NU1100 may also be caused by the lack of a NuGet configura * Updates to ms.date values based on file history (#2831) * Updates to ms.date values based on file history * edit * fixed year * Alphabetize nuget list (#2837) * Improve NU1100 (#2838) * Add CODEOWNERS to docs PRs (#2836) * Release notes for 6.3 (#2834) * release notes for 6.3 Co-authored-by: Simon Cropp <simon.cropp@gmail.com> Co-authored-by: Nikolche Kolev <nikolce1kolev@gmail.com> Co-authored-by: andrei <andreiepure@users.noreply.github.com> Co-authored-by: riQQ <riQQ@users.noreply.github.com> Co-authored-by: Drew Noakes <git@drewnoakes.com> Co-authored-by: John Olheiser <john+github@jolheiser.com> Co-authored-by: Nestor Waldyd <nwaldyd@yahoo.co.uk> Co-authored-by: Mike Jones <mikejo@microsoft.com> Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: Kartheek Penagamuri <52756182+kartheekp-ms@users.noreply.github.com> Co-authored-by: Martin Ruiz <martin.ruiz.mares@gmail.com> * November / NuGet 6.4 Merge (#2934) * In all content, remove (#2920) ms.prod = nuget Replace with ms.service = nuget Co-authored-by: Docs Allowlist Management <docs-allowlist-mgmt@microsoft.com> * Update VS extensibility docs (#2929) * Document various log codes (#2933) Documenting: NU1008, NU1009, NU1010, NU1011, NU1109, NU1402, NU1403, NU5042, NU5049 * Release notes for 6.4 (#2926) * Suggest a more generally appropriate import tag (#2932) * Suggest a more generally appropriate import tag Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: Docs Allowlist Management <docs-allowlist-mgmt@microsoft.com> Co-authored-by: Andy Zivkovic <zivkan@users.noreply.github.com> Co-authored-by: Nikolche Kolev <nikolce1kolev@gmail.com> Co-authored-by: Jean-Pierre Briedé <jebriede@microsoft.com> Co-authored-by: Andrew Arnott <andrewarnott@gmail.com> * Ms.date update --------- Co-authored-by: Christopher R. Gill <christopher.gill@microsoft.com> Co-authored-by: Jon Douglas <jodou@microsoft.com> Co-authored-by: Christopher R. Gill <chrisraygill@gmail.com> Co-authored-by: Joel Verhagen <jver@microsoft.com> Co-authored-by: Nikolche Kolev <nikolce1kolev@gmail.com> Co-authored-by: Jon Douglas <jonathan.douglas@microsoft.com> Co-authored-by: Kartheek Penagamuri <52756182+kartheekp-ms@users.noreply.github.com> Co-authored-by: Simon Cropp <simon.cropp@gmail.com> Co-authored-by: andrei <andreiepure@users.noreply.github.com> Co-authored-by: riQQ <riQQ@users.noreply.github.com> Co-authored-by: Drew Noakes <git@drewnoakes.com> Co-authored-by: John Olheiser <john+github@jolheiser.com> Co-authored-by: Nestor Waldyd <nwaldyd@yahoo.co.uk> Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: Martin Ruiz <martin.ruiz.mares@gmail.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: Docs Allowlist Management <docs-allowlist-mgmt@microsoft.com> Co-authored-by: Andy Zivkovic <zivkan@users.noreply.github.com> Co-authored-by: Jean-Pierre Briedé <jebriede@microsoft.com> Co-authored-by: Andrew Arnott <andrewarnott@gmail.com> Co-authored-by: Your Name <you@example.com>
* Change link for pre-release guidance * Update release notes images * End of May 2022 Live Update (#2763) * June 2022 docs merge (#2783) * Add 5.9 release notes (#2780) * Add 6.0.2 release notes (#2774) * Add 5.11 release notes (#2775) * Add 5.7 release notes (#2776) * Add 4.9 release notes (#2777) * Add 5.2 release notes (#2778) * Merge main to live (#2808) * document The parameter is incorrect behavior (#2800) * document The parameter is incorrect behavior * Add a note/tip instead of bold. Co-authored-by: Jon Douglas <jonathan.douglas@microsoft.com> * Add a dedicated page for props and targets (#2807) Co-authored-by: Simon Cropp <simon.cropp@gmail.com> Co-authored-by: Jon Douglas <jonathan.douglas@microsoft.com> * Updates to ms.date values based on file history * edit * fixed year * August Docs Live Merge (#2840) * document The parameter is incorrect behavior (#2800) * document The parameter is incorrect behavior * Add a note/tip instead of bold. Co-authored-by: Jon Douglas <jonathan.douglas@microsoft.com> * Add a dedicated page for props and targets (#2807) * Document NU1802 and NU1803 (#2816) * Add list in Normalized version numbers (#2818) Fix #2817 * Clarify headline of section about projects without any package dependencies (#2812) * Add issue management bots (#2825) * Fix formatting typo in CPM (#2832) * Add Gitea to NuGet hosting solutions (#2828) * Add Gitea to NuGet hosting solutions * Use Gitea project URL * Update NU1100.md (#2829) NU1100 may also be caused by the lack of a NuGet configura * Updates to ms.date values based on file history (#2831) * Updates to ms.date values based on file history * edit * fixed year * Alphabetize nuget list (#2837) * Improve NU1100 (#2838) * Add CODEOWNERS to docs PRs (#2836) * Release notes for 6.3 (#2834) * release notes for 6.3 Co-authored-by: Simon Cropp <simon.cropp@gmail.com> Co-authored-by: Nikolche Kolev <nikolce1kolev@gmail.com> Co-authored-by: andrei <andreiepure@users.noreply.github.com> Co-authored-by: riQQ <riQQ@users.noreply.github.com> Co-authored-by: Drew Noakes <git@drewnoakes.com> Co-authored-by: John Olheiser <john+github@jolheiser.com> Co-authored-by: Nestor Waldyd <nwaldyd@yahoo.co.uk> Co-authored-by: Mike Jones <mikejo@microsoft.com> Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: Kartheek Penagamuri <52756182+kartheekp-ms@users.noreply.github.com> Co-authored-by: Martin Ruiz <martin.ruiz.mares@gmail.com> * November / NuGet 6.4 Merge (#2934) * In all content, remove (#2920) ms.prod = nuget Replace with ms.service = nuget Co-authored-by: Docs Allowlist Management <docs-allowlist-mgmt@microsoft.com> * Update VS extensibility docs (#2929) * Document various log codes (#2933) Documenting: NU1008, NU1009, NU1010, NU1011, NU1109, NU1402, NU1403, NU5042, NU5049 * Release notes for 6.4 (#2926) * Suggest a more generally appropriate import tag (#2932) * Suggest a more generally appropriate import tag Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: Docs Allowlist Management <docs-allowlist-mgmt@microsoft.com> Co-authored-by: Andy Zivkovic <zivkan@users.noreply.github.com> Co-authored-by: Nikolche Kolev <nikolce1kolev@gmail.com> Co-authored-by: Jean-Pierre Briedé <jebriede@microsoft.com> Co-authored-by: Andrew Arnott <andrewarnott@gmail.com> * Ms.date update * Updating ms.date --------- Co-authored-by: Christopher R. Gill <christopher.gill@microsoft.com> Co-authored-by: Jon Douglas <jodou@microsoft.com> Co-authored-by: Christopher R. Gill <chrisraygill@gmail.com> Co-authored-by: Joel Verhagen <jver@microsoft.com> Co-authored-by: Nikolche Kolev <nikolce1kolev@gmail.com> Co-authored-by: Jon Douglas <jonathan.douglas@microsoft.com> Co-authored-by: Kartheek Penagamuri <52756182+kartheekp-ms@users.noreply.github.com> Co-authored-by: Simon Cropp <simon.cropp@gmail.com> Co-authored-by: andrei <andreiepure@users.noreply.github.com> Co-authored-by: riQQ <riQQ@users.noreply.github.com> Co-authored-by: Drew Noakes <git@drewnoakes.com> Co-authored-by: John Olheiser <john+github@jolheiser.com> Co-authored-by: Nestor Waldyd <nwaldyd@yahoo.co.uk> Co-authored-by: John Olheiser <john.olheiser@gmail.com> Co-authored-by: Martin Ruiz <martin.ruiz.mares@gmail.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: Docs Allowlist Management <docs-allowlist-mgmt@microsoft.com> Co-authored-by: Andy Zivkovic <zivkan@users.noreply.github.com> Co-authored-by: Jean-Pierre Briedé <jebriede@microsoft.com> Co-authored-by: Andrew Arnott <andrewarnott@gmail.com> Co-authored-by: Your Name <you@example.com>
NU1100 may also be caused by the lack of a NuGet configuration file