Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Dotnetsafer
@dotnetsafer_twitter
The specific question is, how can I make an event that does not freeze VS (aysnc, but that build stops until my process finishes) and is executed as soon as the application is compiled (before doing pack, deploy, build an apk if it is xamarin etc).
The code is https://github.com/dotnetsafer/Shield.VSIX/blob/master/ShieldVSExtensionPackage.cs#L296, that works, but of course it doesn't follow the flow.
If for example you do pack,
  1. Compile, 2. Pack. 3 Own function
    But the packaging does not contain the custom function.
Sajal Verma
@sajalverma17
It seems that not all UICONTEXT visibility constraints are recognized by .vsct files. I was able to set UICONTEXT_SolutionExists as a constraint and my command is only visible when solution exists in Visual Studio, but UICONTEXT_SolutionExistsAndFullyLoaded gives me a compilation error: Undefined 'context' attribute 'UICONTEXT_SolutionExistsAndFullyLoaded' in a <VisibilityItem> element.
Sajal Verma
@sajalverma17
The same UICONTEXT works when set on my VSPackage as a ProvideAutoLoad attribute, but not on a command in my VSPackage. The command is a context menu button for Solution Explorer items . Is there no way but to define a custom rule and set it active/inactive using SVSMoniterSelection service to mimic the UICONTEXT_SolutionExistsAndFullyLoaded?
Ranuka
@ranuka2
Hi everyone,
I need to display a custom glyph next to the debug breakpoint as in below image. I couldn't find a clear documentation on this area. Very much appreciate if you can point me to any references on addressing this.
image.png
Matt Lacey
@mrlacey
Does anyone know if it's possible to detect dragging and dropping from the toolbox in an editor extension? I have an IDropHandlerProviderthat allows me to handle drops from the Solution Explorer (via "CF_VSSTGPROJECTITEMS") but I can't find a DropFormat for items from the Toolbox. I assume it's a custom format (& identifier) but I don't know how to find it.
Alexander Gayko
@AdmiralSnyder

i was just fixing a bug in my extension and it's not building in azure devops anymore:
they seem to have changed the default build machine... again... any hints?
here's the error:

C:\Users\VssAdministrator.nuget\packages\microsoft.vssdk.buildtools\16.10.10\tools\VSSDK\bin\VsixUtil.exe package -sourceManifest "obj\Release\extension.vsixmanifest" -outputPath "bin\Release\VSWinExplorerWindow.vsix" -files "obj\Release\files.json" -compressionLevel "Normal"
VSWinExplorerWindow -> D:\a\9\s\VsVarAdornment\VSWinExplorerWindow\bin\Release\VSWinExplorerWindow.vsix

[error]C:\Users\VssAdministrator.nuget\packages\microsoft.vssdk.buildtools\16.10.10\tools\VSSDK\Microsoft.VsSDK.targets(787,5): Error MSB4018: The "GetDeploymentPathFromVsixManifest" task failed unexpectedly.

System.TypeLoadException: Method 'get_JoinableTaskFactory' in type 'Microsoft.VisualStudio.Sdk.BuildTasks.ExtensionEngineHost' from assembly 'Microsoft.VisualStudio.Sdk.BuildTasks.16.0, Version=16.10.10.32691, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' does not have an implementation.
at Microsoft.VisualStudio.Sdk.BuildTasks.ExtensionManagerUtilities.GetExtensionEngine(ISettingsManager manager, Boolean deletePendingUninstalls)
at Microsoft.VisualStudio.Sdk.BuildTasks.GetDeploymentPathFromVsixManifest.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()

Indu Prakash
@iprak

Is it possible to adjust the title of the window created when a document is dragged out?

I attempted adjusting the frame caption in IVsRunningDocTableEvents3.OnBeforeDocumentWindowShow but it always fails.

pFrame.SetProperty((int)__VSFPROPID.VSFPROPID_Caption, "@ " + Path.GetFileName(path));
Alexander Gayko
@AdmiralSnyder
hey, has anyone else noticed that a lot of extensions aren't available in the marketplace lately?
Yann Duran
@yannduran
@AdmiralSnyder you should be able to specifiy the build machine's OS in your yaml file
Alexander Gayko
@AdmiralSnyder
@yannduran i have, i think. it wasn't changed. something in the machine must have changed somehow...
... or it wasn't automatically moved to the newest VS build? is that a possibility?
Yann Duran
@yannduran
@AdmiralSnyder sorry I'm no expert, so I'm not sure what else to suggest
Dai
@Jehoel
Is anyone familiar with the Razor/cshtml editor in VS? I'm wanting to know how VS knows whether it should open .cshtml files using the older Razor editor for ASP.NET MVC 4-5 with support for @helper syntax vs. the newer Razor editor for ASP.NET Core which does not support the @helper syntax.
(Backstory: I'm the maintainer of RazorGenerator, and I want to know how I can force VS open .cshtml files used by RazorGenerator using the older editor so it stops giving design-time build errors due to the use of @helper etc)
CyrusNajmabadi
@CyrusNajmabadi
@Jehoel best to ask that question over at dotnet/roslyn
Dai
@Jehoel
@CyrusNajmabadi the GitHub repo or on Gitter?
my question isn't concerned with Roslyn though... just how VS' editor extensibility works, so I'm curious why you're recommending the Roslyn community
CyrusNajmabadi
@CyrusNajmabadi
the github repo. thanks!
my question isn't concerned with Roslyn though... just how VS' editor extensibility works, so I'm curious why you're recommending the Roslyn community
that's a fair poin, and perhaps this is the right channel
the reason i recommend Roslyn though is that Roslyn includes the razor editor team
so i presumed we (i'm on that team) would know the best about how this works :)
Dai
@Jehoel
ah
CyrusNajmabadi
@CyrusNajmabadi
i could be wrong, but i work directly on the people that own and maintain both the previous and current razor editors... so i figured they were the best suited to answer here :)
if i'm wrong and they go "oh, it's something VS figures out", then apologies :)
Dai
@Jehoel
how's the VS team thesedays? I left DevDiv and MSFT at the end of 2015
CyrusNajmabadi
@CyrusNajmabadi
not sure how to answer that :D
Dai
@Jehoel
I was on the Blend team which got rolled-into VS team - most of the projects I worked on at msft got killed-off or were internal low-traffic projects... so the upside is I can travel back in time and not have any impact on history, I guess
;)
but yeah, thanks for the tip - I'll post there now while it's on my mind
CyrusNajmabadi
@CyrusNajmabadi
:)
i like it.
i like teh enormous emphasis on open source
lots of cool stuff coming down teh pipe
64bit being just the tip of it :)
Dai
@Jehoel
@CyrusNajmabadi I just posted this now: https://github.com/dotnet/roslyn/discussions/54068
Dai
@Jehoel
@CyrusNajmabadi I figured it out after spending too much time in Ghidra :)
looks like I need to specify both <ProjectCapability Include="SupportsSystemWeb" /> and <UseRazorV4Editor>false</UseRazorV4Editor>
CyrusNajmabadi
@CyrusNajmabadi
Ah :-)
Ranuka
@ranuka2
Hi everyone,
Tooltip or popup on a margin glyph doesn’t show up when two glyphs from two different plugins are overlapped each other. I have noticed that the MouseEnter event does not trigger in this scenario. I’m considering moving the margin glyph to a new margin if that’s possible. Is this a viable approach to address the tooltip issue? Thanks in advance.
vasantha-kumar25
@vasantha-kumar25
Hi All!
Is it possible to deploy two different versions of the same Custom Extension to an Instance of a Visual studio by playing with Product IDs?
Yann Duran
@yannduran
Only if they had a different id
oh, what do you mean by product id ?
vsix id?
vasantha-kumar25
@vasantha-kumar25
I referred to the Product ID in The VSIX Manifest
Yann Duran
@yannduran
yes, in that case, yes. as far as VS is concerned it is a different extension
hmm, i'm just wondering if there'll be a problem with commands. it should be ok, but if you start to have problems, that'd be the first place to look
vasantha-kumar25
@vasantha-kumar25
Thanks, @yannduran Consider my Extension is having Menu Items. Since the Menu Items will same Names despite the versions are different, will that cause any issues when I have two different Version installed?

hmm, i'm just wondering if there'll be a problem with commands. it should be ok, but if you start to have problems, that'd be the first place to look

Sure :)