简体   繁体   English

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

[英]Set the application icon in .net core 1.0 WEB API Projects

Recently I've developed in Visual Studio an ASP.NET Web Application based on .net core 1.0 and .net Framework 4.5.1 最近我在Visual Studio中开发了一个基于.net core 1.0和.net Framework 4.5.1的ASP.NET Web应用程序

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 这个应用程序生成一个.exe文件,我的主要问题是我无法在任何地方找到更改项目中已编译可执行文件图标的位置

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 在普通的Windows应用程序中,可以在Visual Studio中右键单击主项目轻松设置图标,然后进入“属性”,您可以在其中指定图标以及清单

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 我已经看到在“project.json”文件中可以在“packOptions”部分中指定“IconUrl”,但这似乎仅在目标是NuGet包而不是像我的情况下的exe时才有效

Any Suggestions on how to achieve this? 关于如何实现这一点的任何建议?

Thanks in advance, 提前致谢,

David 大卫

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 . 在dotnet / cli GitHub存储库中有一个问题 ,Milestone设置为Backlog

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 .Net Core 1.0中的Web API版本控制 - Versioning of Web API in .Net Core 1.0 ASP.NET 5(Core 1.0)本地化/多语言Web应用程序 - ASP.NET 5 (Core 1.0) localization / multilanguage web application asp.net core 1.0 web api使用camelcase - asp.net core 1.0 web api use camelcase ASP.NET Core 1.0 Web API 中的简单 JWT 身份验证 - Simple JWT authentication in ASP.NET Core 1.0 Web API ASP.NET 核心 Web API 禁用 TLS 1.0 和 TLS 1.1 支持 - ASP NET Core Web API disable TLS 1.0 and TLS 1.1 support 如何在asp.net core 1.0 Web API的启动服务中创建后台任务? - How to create a background task in startup service in asp.net core 1.0 Web API? 无法使用VS工具发布现有的ASP.NET Core 1.0 Web API - Unable to publish existing ASP.NET Core 1.0 Web API using VS Tools 将ASP.Net Core 2(.NET Framework)Web Api拆分为类库和托管项目是否可行/明智? - Is it possible/sensible to split ASP.Net Core 2 (.NET Framework) Web Api into Class Library and Hosting projects? 如何将ASP.NET MVC核心视图和ASP.NET WEB API控制器分离到单独的项目中? - How to seperate ASP.NET MVC core view and ASP.NET WEB API controllers into separate projects? .Net Core Web API - .Net Core Web API
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM