Coder Social home page Coder Social logo

Comments (6)

JonDouglas avatar JonDouglas commented on August 24, 2024

/cc @nkolev92 & @donnie-msft related to #13469

from home.

nkolev92 avatar nkolev92 commented on August 24, 2024

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.

jeromelaban avatar jeromelaban commented on August 24, 2024

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.

nkolev92 avatar nkolev92 commented on August 24, 2024

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.

jeromelaban avatar jeromelaban commented on August 24, 2024

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.

donnie-msft avatar donnie-msft commented on August 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.