tinaschrepfer on tinali
Remove use of "any" content typ… (compare)
tinaschrepfer on tinali
Merge pull request #169 from Mi… Add sample support for "any" co… (compare)
tinaschrepfer on master
Update VSSDK package and remove… Merge pull request #169 from Mi… (compare)
if (thread != current thread)stuff. The call to
SwitchToMainThreadAsyncis very cheap, so just do it whenever you need to be on the main thread. Don't use any of the BeginInvoke stuff. For more info, see this: https://github.com/microsoft/vs-threading/blob/main/doc/cookbook_vs.md
@NikolayMishev my guess is that when they redesigned the "New Project" dialog they think about it being used that way. it's been a common pattern - they replace something that works with "something new", and that something new doesn't have all of the previous functionality.
i suggest you add an issue using the "Report a Problem" (or Feedback) button in the top right of VS. that's supposedly the quickest way to get something looked at. even the VS team members who sometime hang out here will ask you to do that, before they can try to help
Hi all, I'm trying to update one of our VS extensions and I'm getting
Install-Package : Could not install package 'Microsoft.ServiceHub.Analyzers 2.7.2466'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.7.2', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. At line:1 char:1 + Install-Package Microsoft.ServiceHub.Analyzers + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
However, the package doesn't say it requires any particular version of the .NET Framework. What am I missing?
We do have a disable flag or our extension, but one of the bugs is that it is not looking at flags for a multi project solution so it's broken.
I think this is where you should focus your efforts. Instead of disabling/enabling the VSIX extension in VS, it sounds better to use an internal flag to control whether your functionality is enabled or not.
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
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.
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:
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?
UICONTEXTvisibility constraints are recognized by
.vsctfiles. I was able to set
UICONTEXT_SolutionExistsas a constraint and my command is only visible when solution exists in Visual Studio, but
UICONTEXT_SolutionExistsAndFullyLoadedgives me a compilation error:
Undefined 'context' attribute 'UICONTEXT_SolutionExistsAndFullyLoaded' in a <VisibilityItem> element.
ProvideAutoLoadattribute, 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
SVSMoniterSelectionservice to mimic the
IDropHandlerProviderthat allows me to handle drops from the Solution Explorer (via "CF_VSSTGPROJECTITEMS") but I can't find a
DropFormatfor items from the Toolbox. I assume it's a custom format (& identifier) but I don't know how to find it.
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=126.96.36.199691, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' does not have an implementation.
at Microsoft.VisualStudio.Sdk.BuildTasks.ExtensionManagerUtilities.GetExtensionEngine(ISettingsManager manager, Boolean deletePendingUninstalls)
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));
.cshtmlfiles using the older Razor editor for ASP.NET MVC 4-5 with support for
@helpersyntax vs. the newer Razor editor for ASP.NET Core which does not support the
.cshtmlfiles used by RazorGenerator using the older editor so it stops giving design-time build errors due to the use of
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