Nuget 包图标未显示 [英] Nuget Package Icon Not getting Displayed

查看:62
本文介绍了Nuget 包图标未显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发 Nuget 包.我将 icon.png 放在我的包代码内的 Images 文件夹中.在我的 .csproj 文件中,我添加了与图标相关的必需标签.但仍然没有显示图标.Nuget 中显示的是默认的蓝色图标.

I'm developing an Nuget Package. I have icon.png placed inside Images folder inside my package code. In my .csproj file I have added required tags related to icon. But still icon is not getting displayed. Instead default blue icon is displayed in Nuget.

这是我的 .csproj 文件,

<PropertyGroup>
    <PackageIcon>icon.png</PackageIcon>
</PropertyGroup>

<ItemGroup>
    <None Include="Images\icon.png" Pack="true" PackagePath=""/>
</ItemGroup>

我错过了什么吗?请帮忙.

Am I missing anything? please assist.

推荐答案

目前,使用 来显示图标不支持 Visual Studio 中 NuGet 上显示的包上的 code> 属性.您可以在 https://nuget.org

Currently, displaying the icon by using the <PackageIcon/> or <icon/> property on packages showed on NuGet in Visual Studio is not supported. You can preview your package icon in the upload preview in https://nuget.org

在 NuGet for Visual Studio 中支持嵌入图标的跟踪问题是:https://github.com/NuGet/Home/issues/8189

The tracking issue for supporting embedded icons in NuGet for Visual Studio is: https://github.com/NuGet/Home/issues/8189

这篇关于Nuget 包图标未显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆