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

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

问题描述

最近我在 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?

提前致谢,

大卫

推荐答案

目前似乎没有实施.在 dotnet/cli GitHub 存储库中有一个关于此的问题,里程碑设置为待办事项.

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 Projects中设置应用图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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