Comments (6)
/cc @nkolev92 & @donnie-msft related to #13469
from home.
What would you have expected to happen @jeromelaban compared to what the error message tells you today. (we have ideas ourselves, but don't want to lead you towards those :D )
from home.
In itself, the message is does not feel easily actionable. Knowing the cause, I'd intuitively say that it should fail/warn earlier because the source mapping got overridden.
Also, maybe displaying all the known sources would have told that none of the available ones were considered?
from home.
Today it says:
Unable to resolve 'MSTest.Sdk (= 3.3.1)' for '.NETStandard,Version=v0.0'. PackageSourceMapping is enabled, the following source(s) were not considered: Microsoft Visual Studio Offline Packages, NuGet official package source.
A more powerful message would be to say "no sources" were considered potentially, because the package is not mapped.
Another idea is to warn the duplicate sources as well.
from home.
Both messages would help for sure.
Another problem I see here is that the user for unoplatform/uno#16758 (reply in thread) stumbled on this issue had a lot of mappings defined at the user level. It feels like an incorrect use of the source mapping feature, as it forces any new package use to be added to the the mapping list (with errors like #13469). This situation is what led to this particular issue.
from home.
had a lot of mappings defined at the user level
I wonder if my rough proposal in #13173 to have NuGet tooling able to create configs that <clear/>
(reset) the list of package sources would have prevented creating those at the user-level.
Not the complete solution here, but perhaps a piece of the puzzle.
from home.
Related Issues (20)
- 'dotnet nuget why' crashes when using --framework option
- Simplify package source mappings for Microsoft.* packages
- Option to ignore unsupported project types in command-line nuget and azure pipelines nuget HOT 6
- Add support for patching NuGet Packages / Sourced-base mode for NuGet HOT 1
- "Static graph-based restore failed with exit code 1 but did not log an error." failure in dotnet/runtime repo HOT 2
- dotnet nuget why without any args outputs the same error 4 times
- dotnet nuget why shouldn't require project when there is only one in the current directory
- Force PackageReference to target a specific TFM HOT 3
- Narator does not read the value of `allowInsecureConnections`
- PERF: GetPackageInfo allocates by unnecessarily calling GetNupkgMetadataPath HOT 1
- PERF: Unnecessary construction of LockFileItem.Properties dictionary HOT 1
- PERF: LockFileFormat is filled completely when common callers only need some of the data
- PERF: Version and VersionRange allocations are very prevalent in profiles of Roslyn solution load
- VS 17.10 - Error building projects with CPM explicitly enabled if ManagePackageVersionsCentrally is set to false in Directory.Build.props HOT 12
- Uninstalling a nuget package does not remove it from Directory.Packages.props file HOT 2
- Restore may write nulls to project.assets.json HOT 11
- nuget package deprecate API support HOT 5
- [Bug Bash] The package installation with ‘packages.config’ format is blocked after adding a non-existed feed to package source list for non-SDK project HOT 1
- [Epic] 'dotnet nuget why' bugs and improvements
- Support GetAllListedVersions API HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from home.