## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
##### Activity
• Jan 31 2019 19:44
• Jan 31 2019 02:04
• Jan 30 2019 21:28
grokys commented #133
• Jan 30 2019 20:52
• Jan 30 2019 18:58
grokys commented #133
• Jan 30 2019 17:15
• Jan 30 2019 12:59
grokys commented #133
• Jan 30 2019 11:24
vincedan closed #129
• Jan 30 2019 11:24
vincedan commented #129
• Jan 28 2019 04:18
• Jan 28 2019 03:32
• Jan 28 2019 02:17
• Jan 24 2019 08:04
• Jan 23 2019 22:29
• Jan 23 2019 21:59
• Jan 23 2019 10:58
• Jan 22 2019 21:04

tinaschrepfer on tinali

Remove use of "any" content typ… (compare)

• Jan 22 2019 18:29

tinaschrepfer on tinali

Merge pull request #169 from Mi… Add sample support for "any" co… (compare)

• Jan 22 2019 18:24

tinaschrepfer on master

Update VSSDK package and remove… Merge pull request #169 from Mi… (compare)

• Jan 22 2019 18:24
tinaschrepfer closed #169
tnblank77
@tnblank77
I invoke "Find in Files" searches from my Extension, but with the modernization in Visual Studio 2019 16.9.5 (https://devblogs.microsoft.com/visualstudio/modernizing-find-in-files), my Extension seems to still be using the old methods and not the new functionality. Does anyone know how I would go about updating my Extension to use it? I can't find any information anywhere but it appears that others have figured it out with some extensions like "Multiline Search and Replace". What I use now is what is exposed by EnvDTE80.DTE2.Find
vasantha-kumar25
@vasantha-kumar25

Hi All, I have recently deployed the Extension to the target machine, using a custom installer instead of vsix. The Custom installer will Copy the extension to Common7\Ide\Extensions\OurProduct subfolder inside VS and then run denenv with the /updateconfiguration command line option so it can detect our extension.

The Installation is successful and The extension is working as expected. However, post installation, when the developer tries to Build the source code of the Extension, which in turn, deploy the vsix content to the experimental instance, any one of the below build errors are thrown.

1) The 'UninstallExtension' task failed unexpectedly
2) Extension '<productID> is of the same or lower version than the installed extension. Please make sure that the extension version is higher than that of the installed extension

Getting these error is general behaviour of VSIX ? Or Am I Missing any item? Any insight on why this occurs and how we can handle them? @RobertvanderHulst

James Vango
@vangojames
Hey! I don't know if this is the right place to ask about this but I am having some real issues with a package I am developing. Everything was working beautifully, until I added a reference to Microsoft.VisualStudio.VCCodeModel to the project. Now none of my breakpoints hit. Does anyone know what could be going on and how I can fix it? I have been trying for a while to get it sorted!
String.Empty
@A9G-Data-Droid
There seems to be an issue with the latest Microsoft.VisualStudio.SDK I am getting "Could not install package 'Microsoft.ServiceHub.Analyzers 2.7.345'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.7.2','." which is odd because the SDK requires 4.7.2 and it won't install on any other framework. So it's impossible to install it at all.
If I install the older version 16.0.206 it works fine
Robert van der Hulst
@RobertvanderHulst
@vasantha-kumar25 During developent we always make sure that the version that we are debugging has a higher version number than the one that is installed. That way it will automatically replace the installed version when running in the experimental hive.
Christopher Christou
@awschristou
Does anyone have xunit tests that exercise code that calls ThreadHelper.ThrowIfNotOnUIThread()? I'm not having consistent success in this space, and would be interested in hearing what others have set up for this.
Dotnetsafer

Hi everyone, I don't usually use this platform, sorry if I do something wrong.

I'm trying to develop an extension that attacks visual studio build events.

My goal is, in the compilation event.

1. Let the application compile.
2. MODIFY x values ​​of the compiled application and replace it (in bin / release)
3. Let him continue his march, that is, do deploy, do a nuget pack, whatever he should do.

I am using the build events from the DTE, exactly OnBuildProjConfigDone.

If I execute my point 2 there. It works, the problem is:

If I do it asynchronous:

public void BuildEvents_OnBuildProjConfigDone (string projectName, string projectConfig, string platform, string solutionConfig, bool success) { JoinableTaskFactory.RunAsync (async delegate { .... the code

Process 2. is executed asynchronously, that is, the compilation process would go to:

1. Compile
2. Does what it has to do
3. Run my custom task (async).

If I don't do async, JoinableTaskFactory.Run, the Visual Studio interface hangs for several minutes until point 2 ends.

Is there a way to get the flow I need?

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).
Dotnetsafer
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.
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

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"

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
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
@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)
@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
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
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
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
:)
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>