在.net core 1.0 WEB API项目中设置应用程序图标 [英] Set the application icon in .net core 1.0 WEB API Projects

查看:317
本文介绍了在.net core 1.0 WEB API项目中设置应用程序图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Recently I've developed in Visual Studio an ASP.NET Web Application based on .net core 1.0 and .net 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项目中设置应用程序图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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