在.net core 1.0 WEB API项目中设置应用程序图标

编程入门 行业动态 更新时间:2024-10-20 18:50:51
本文介绍了在 core 1.0 WEB API项目中设置应用程序图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

最近,我在Visual Studio中开发了一个基于 core 1.0和 Framework 4.5.1的ASP.NET Web应用程序。

Recently I've developed in Visual Studio an ASP.NET Web Application based on core 1.0 and Framework 4.5.1

此应用程序生成一个。 exe文件,我的主要问题是我无法在任何地方找到更改项目中已编译的可执行文件的图标

This application produces a .exe file, my main issue is that I've not been able to find anywhere where to change the icon of the compiled executable in the Project

在正常的Windows应用程序中可以在Visual Studio中右键单击主项目,然后在属性中轻松设置图标,然后在其中可以指定图标以及清单

In a normal Windows application the icon can be easily set in Visual Studio right-clicking on the main project, then go in "Properties" where you can specify the icon and also the manifest

看到可以在 project.json文件中的 packOptions部分中指定 IconUrl,但这似乎仅在目标是NuGet包而不是像我这种情况的exe时才起作用

I've seen that in the "project.json" file is possible to specify "IconUrl" inside the "packOptions" section but this seems to work only when the target is a NuGet package and not an exe like my case

关于如何实现此目标的任何建议?

Any Suggestions on how to achieve this?

预先感谢

David

推荐答案

目前似乎尚未实现。在dotnet / cli GitHub存储库中,对此有一个问题,其中Milestone设置为积压。

It does not seem to be implemented at the moment. There is an issue regarding this at the dotnet/cli GitHub repository, with Milestone set as Backlog.

更多推荐

在.net core 1.0 WEB API项目中设置应用程序图标

本文发布于:2023-11-17 04:47:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1608884.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   图标   项目   core   net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!