question

golf89-3129 avatar image
0 Votes"
golf89-3129 asked PengGe-MSFT commented

Modifying the icon on the project node in Visual Studio 2019

I am new to Visual Studio and I would like to know how to modify the icon on the project node in a csproj.
I would like to create a c# project but would like to modify the default c# icon it shows.

Appreciate the help

vs-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

PengGe-MSFT avatar image
0 Votes"
PengGe-MSFT answered PengGe-MSFT commented

Hi, @golf89-3129

Welcome to Microsoft Q&A!

If you are referring to the icon of the Solution Explorer, I am afraid that Visual Studio does not provide the option to modify it. I did not find the relevant instructions in the official documentation of Visual Stdio.
126595-image.png

I did not find any documents or settings for modifying this icon. If you need this feature, you can click the button in the upper right corner of the Visual Studio interface to suggest this feature.

126669-image.png


Update:
I have already suggested adding this new feature in the Developer Community.

Sincerely,
Peng


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread



image.png (12.9 KiB)
image.png (4.0 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

Thank you for your response, i am looking to change project node icon marked with yellow rectangle . it is similar to if i create a android project in visual studio, has a mobile icon on project node.

126564-image.png

Thank you.


0 Votes 0 ·
image.png (5.7 KiB)

Hi, @golf89-3129
I updated my answer, please check it

0 Votes 0 ·

Thank you for update. i was looking to change icon to some web app icon which i could do by changing sdk in csproj file.

Project Sdk="Microsoft.NET.Sdk.Web"

but when i set this i get some extra options in debug label dropdown.
127171-image.png

How these option can be removed?

Regards,


0 Votes 0 ·
image.png (5.4 KiB)

Hi, @golf89-3129
I am afraid there is no such option.

0 Votes 0 ·
BenjaminPinter-6992 avatar image
0 Votes"
BenjaminPinter-6992 answered golf89-3129 commented

Are you referring to the icon in solution explorer? That is not something that can be set, as it is just meant to show the type of 'file' that the particular node represents.

If you're referring to a windows form application, there is a property under the window designer that will allow you to set that.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

Thank you for your response, i am looking to change project node icon marked with yellow rectangle . it is similar to if i create a android project in visual studio, has a mobile icon on project node.

126615-image.png

Thank you.


0 Votes 0 ·
image.png (5.7 KiB)