NuGetPackageExplorer
NuGetPackageExplorer copied to clipboard
Unable to open .nuspec file via Visual Studio's 'Open With...' after installing W10 Store version
Type : Bug NPE version: 3.23.0.0 Installed from: Windows Store
Current result
After installing via the Windows Store, I am attempting to open a .nuspec
file directly from Visual Studio's Solution Explorer, via the Open With...
command in the right-click context menu.
The dialog lists NuGet Package Explorer
as a viable option, however attempting to open the file into NPE that way shows the error "The file cannot be opened with the selected editor. Please choose another editor."
Expected result
The .nuspec
file should open in NPE when using Visual Studio's Open With...
command.
Workarounds
Using an Open Containing Folder...
command to launch Explorer and then double-clicking the .nuspec
file from there to launch it with the default file handler adds a few steps, but works.
Also, adding a new feed in VS2017 crashes VS with the explorer installed. Uninstalling the app from Windows Store fixed the issue.
Also, adding a new feed in VS2017 crashes VS with the explorer installed. Uninstalling the app from Windows Store fixed the issue.
@hardcodet please post this a separate issue and add the steps to reproduce this. I never experienced that problem. thx!
Issue still reproduced for NPE 3.24.0.0
I can repro with the latest release. Looking into this.
This is a shell/visual studio bug. Visual Studio relies on AssocQueryString
to resolve Open With progids. But there's no "executable" associated with NuGet Package Explorer (or Appx apps in general), so it returns an error and Visual Studio gets confused.
@riverar sounds like a Visual Studio issue then?
@onovotny Yeah, it's a tough one. UWP apps are a bit shoehorned into OpenWithProgIds; consumers weren't exactly expecting that to need special consideration for UWP apps. I'd blame appmodel 🤣
Have you tried adding an app execution alias? That might change the way these are registered and may Just Work ™️
@riverar I tried that without luck. It's in #324, which is a good idea to have anyway.