Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS2022: Device Explorer tool window icons missing after VS extension update #1009

Open

Comments

@networkfusion
Copy link
Member

networkfusion commented Apr 6, 2022

Tool

Visual Studio extension

Description

Currently the icons sometimes "disappear" when the VS2022 nanoFw extension is updated.
This is a potential solution is outlined in "https://stackoverflow.com/questions/58311920/visual-studio-vsix-extension-not-showing-in-tools-menu" (although there are possibily other fixes).
A solution like this "should" be tried before escalation to the VS team, as although there is a workaround (via: devenv /updateConfiguration) it is annoying.

How to reproduce

No response

Expected behaviour

No response

Screenshots

image

Aditional context

A test fix was applied via nanoframework/nf-Visual-Studio-extension#710 but it was unsuccessful.

⚠️ Issue reported to VS team. Please up-vote and add your comment here.

Original issue closed prematurely was here.

WORKAROUND

After closing Visual Studio, run devenv /updateConfiguration from VS developer command prompt.

@networkfusion networkfusion changed the title VS2022: Devi tool window icons missing after VS extension update VS2022: Device Explorer tool window icons missing after VS extension update Apr 6, 2022
@PNPTransistor
Copy link

Hi,

Not that this helps - but I'm seeing the same thing. All NF buttons in solution explorer are now blank.

@Ellerbach
Copy link
Member

Hi,

Not that this helps - but I'm seeing the same thing. All NF buttons in solution explorer are now blank.

This is how you can fix it, run: devenv /updateConfiguration from the developer command prompt. Close all the Visual Studio instances before.

@oloendithas
Copy link

Indeed, deployment feature also restored by running devenv /updateConfiguration

@DaveSchmid
Copy link
Contributor

image

@josesimoes
Copy link
Member

⚠️ Issue reported to VS team. Please up-vote here!

@josesimoes
Copy link
Member

There are reports of this happening, so the fix may not be that good...
cc @DaveSchmid

@josesimoes josesimoes reopened this Jan 16, 2023
@josesimoes
Copy link
Member

@josesimoes
Copy link
Member

Instructions on how to gather a log of issues loading images, taken from here

To toggle logging, follow the instructions below. That will create a log file called ImageLibrary.log in the %USERPROFILE% folder.

  1. Enable the logging with
vsregedit set local HKLM “ImageLibrary” TraceLevel string Verbose
vsregedit set local HKLM “ImageLibrary” TraceFilename string ImageLibrary.log
  1. With VS closed, open a VS developer prompt and run devenv /updateConfiguration to ensure any caching issues are captured
  2. Then launch VS and ensure your icons are missing to capture any runtime issues.
  3. Grab the log file ImageLibrary.log in the %USERPROFILE% folder.
  4. Turn off tracing with
vsregedit set local HKLM “ImageLibrary” TraceLevel string Off
  1. Upload your log in this issue and/or directly at the issue in VS Dev Community here

@DaveSchmid
Copy link
Contributor

I tried it. Now the icons are back. :- )
But no ImageLibrary.log on the whole computer.

@TerryFogg TerryFogg unpinned this issue Mar 8, 2023
@josesimoes josesimoes pinned this issue Mar 9, 2023
@josesimoes
Copy link
Member

@TerryFogg do not upin this issue. It's critical and it's meant to be highlighted at the top.

@softworkz
Copy link

@softworkz
Copy link

softworkz commented Nov 26, 2023

To fix it:

  • Re-enable strong-name signing
  • Add the ProvideCodeBase attribute to AssemblyInfo.cs:

image

Include this targets file in your project

PrepareImageManifest.zip

And add this to the end of your .csproj:

<Import Project="PrepareImageManifest.targets" />

Build and run.

@josesimoes
Copy link
Member

Hey @softworkz! Just read your detailed analysis at developer community issue. Nice.
Thanks for taking the time to investigate this and provide a fix.
We'll be on this ASAP! 👍🏻 🥇

@Ellerbach
Copy link
Member

With 2023.3.0.67 all works fine again! Thanks a lot @softworkz for the deep investigation!

@torbacz
Copy link
Sponsor Contributor

torbacz commented Nov 27, 2023

With VS 17.8.1 and NF 2023.3.0.67 extensions icons are back. Thanks @softworkz!

@softworkz
Copy link

softworkz commented Nov 28, 2023

The favor is mutual since I learn a lot from existing VS project system extensions.

Let's help other extension developers not needing to go through all the trouble by upvoting here: https://developercommunity.visualstudio.com/t/VSSDKCPSExtensibility:-Image-Loading-i/10525678

and here: microsoft/VSProjectSystem#373

@networkfusion
Copy link
Member Author

Re-opening as unfortunately it is still occuring.

@atboxshop
Copy link

To fix it temporary, go to extension, disable nanoframework and re-enable it. After that restart your visual studio, all icons will appear.

@networkfusion
Copy link
Member Author

To fix it temporary, go to extension, disable nanoframework and re-enable it. After that restart your visual studio, all icons will appear.

Nice workaround!

@kondr1
Copy link

kondr1 commented Feb 28, 2024

Both workaround doesn't work for me.

@alberk8
Copy link

alberk8 commented Feb 28, 2024

@kondr1, Can you try to repair your Visual Studio installation?

@madschristiansen
Copy link

This is a massive issue for newcomers to this project. I have now tried for days to get startet but the fact thatI cant use the vs extension, I cant change network setting (Or at least cant find any other way)
Is it better on older VS version like 2019?

I need it for a POC so I should have been done yesterday but have spend all my time installing/removing/diabling/enabling/running dev commands etc etc.

@josesimoes
Copy link
Member

@madschristiansen I'm totally sympathetic with you on how much this is a pain!
As you can see from the thread above, this is an issue caused by a 3rd party tool (Visual Studio) of which we don't have any control.
For some reason, the reports on this problem aren't getting enough love from the VS team. If you could go to the developer community website (URLs above) and add your comments there expressing the need to have this fixed, it would be helpful. Considering that issues there are prioritized according to the impact they are causing to developers.

@softworkz
Copy link

I would recommend to create a support incident with MS about this. Refer to the issue on VS community and ask for escalation.

Three ways to create incidents:

  • Either you have a VS subsccription with free incidents include
  • you or your company has a support contract
  • you can buy individual incidents (expensive, though)

If they don't resolve it, the incident won't be counted as used (but you don't get the money back for the incident package in the 3rd case, yet you can use them otherwise)

@josesimoes
Copy link
Member

For what is worth: after update VS to 17.10.1 and install the latest version of our extension I have the icons back. 🤞🏻 😅

@mikmog
Copy link
Contributor

mikmog commented Jun 14, 2024

Also in Version 17.11.0 Preview 2.0 😊
However, don't think they appeared immediately. Maybe after a restart or a few days, or cosmic bit flips

@josesimoes
Copy link
Member

Looks like this has been fixed by VS Team. Let's wait for the fix to become available.
See comment in the follow-up issue.

@zorgoz
Copy link

zorgoz commented Aug 25, 2024

Visual Studio Version 17.12.0 Preview 1.0 (Released August 13th): no icons - neither in the View > Other Windows menu. The fix referred by @josesimoes might not be included yet. Let's wait and see...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet