Set the application icon in .net core 1.0 WEB API

2019-03-31 21:20发布

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

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

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

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?

Thanks in advance,

David

1条回答
兄弟一词,经得起流年.
2楼-- · 2019-03-31 22:04

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.

查看更多
登录 后发表回答