Giter VIP home page Giter VIP logo

Comments (6)

rheone avatar rheone commented on August 21, 2024 1

Compatibility requires testing, I’ve. It yet had a chance to investigate to my satisfaction

from arcus.

rheone avatar rheone commented on August 21, 2024

This issue should be resolved in the next release of Visual Studio 16.5. see NuGet/Home#8772 (comment)

We are doing this work. Done now, but need some improvements. So likely shipping in VS 16.5. #8189 is tracking that work.

Until then, packages can choose to use the new technique, and leave the old url in the project and/or nuspec -- that will stop the warning, and still work in versions of VS that don't know how to show it yet.

Should we do anything for backwards compatibility?

from arcus.

ahsteele avatar ahsteele commented on August 21, 2024

If supporting backwards compatibility doesn’t break the new stuff I’d say we support both.

from arcus.

BenjaminCharlton avatar BenjaminCharlton commented on August 21, 2024

Hi! Is anybody here able to advise where there's a step-by-step guide for how to add an icon to a Nuget package with Visual Studio? I am not able to find it anywhere. My Google searches yield only links to StackOverflow and GitHub detailing the difficulties one might encounter with icons in Nuget packages.

I have tried to just select an icon (in the Package section of the Properties page of my .csproj file) but the icon just won't appear on the package when viewed in Nuget Package Manager.

Much appreciate any guidance! Thank you.

from arcus.

rheone avatar rheone commented on August 21, 2024

@BenjaminCharlton I don't have a step by step guide unfortunately, but I used the Microsoft .nuspec reference, random web posts, and investigating other projects on GitHub which lead me to add both a packageicon and packageiconurl tag in my csproj file.

<PropertyGroup>
///...
    <packageicon>icon.png</packageicon>
    <packageiconurl>https://raw.githubusercontent.com/sandialabs/Arcus/master/src/Arcus/icon.png</packageiconurl>
///...
</PropertyGroup>

Note that the packageicon path is retaliative to the csproj file. Also, there seems to be incompatibility with different versions of nuget and/or Visual Studio as to what lights up with which method, if any, of the provided icon. It would seem at the moment that while nuget.org happily displays our library icon, Visual Studio 16.8.6's version nuget does not.

from arcus.

BenjaminCharlton avatar BenjaminCharlton commented on August 21, 2024

Hi @rheone!

Thank you for reaching out to me. I appreciate it.
It's a shame there is no official documentation about how to do it yet. Maybe an expert will see this and fill that gap.

This looks very helpful; it's totally different to what Visual Studio generated for me.

I'm going to give it a try!

Much appreciated.
Benjamin

from arcus.

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.