vsix

Adding Iso8601TimeSpanConverter to JsonConverter list throws ArrayTypeMismatch exception

本小妞迷上赌 提交于 2020-01-02 08:38:09
问题 I'm using AutoRest to auto generate a c# class for a REST API from a Swagger definition file. The problem is that when the client class initialize methos is executed, it throws an ArrayTypeMismatch exception in the following code: SerializationSettings = new JsonSerializerSettings { Formatting = Formatting.Indented, DateFormatHandling = DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = DateTimeZoneHandling.Utc, NullValueHandling = NullValueHandling.Ignore, ReferenceLoopHandling =

VSIX extension WPF styles

耗尽温柔 提交于 2020-01-02 05:21:14
问题 I'm building a VS2010 extension (vsix) with WPF. Is there any way to reuse WPF style templates from the visual studio itself to make my control look native to Visual Studio? A the moment I can use expressions for brushes like this: xmlns:vsfx="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.10.0" Background="{DynamicResource {x:Static vsfx:VsBrushes.ToolWindowBackgroundKey}}" That's not enough, however. Can I apply a style to the whole TabControl or Label? 回答1

How to include VSIX output in it's package?

余生颓废 提交于 2019-12-31 04:12:10
问题 I have created a VSIX package and I want to include it's output dll in the VSIX, I have tried adding MEF component refrencing to itself in vsixmanifest file in Assets section, but it doesn't resolved. any idea? 回答1: Open your project file with notepad and set this items to true <IncludeAssemblyInVSIXContainer>true</IncludeAssemblyInVSIXContainer> <IncludeDebugSymbolsInVSIXContainer>true</IncludeDebugSymbolsInVSIXContainer> <IncludeDebugSymbolsInLocalVSIXDeployment>true<

VSIX Package doesn't include referenced project's dependencies

久未见 提交于 2019-12-30 04:56:07
问题 We have a visual studio package (VS Package) that references a class library project (Project A). Project A in turn references another class library project (Project B). So the dependency structure looks like this: VS Package > Project A > Project B All projects exist inside the same solution and the dependencies have been set up as proper project references. If I build the package in visual studio and look in the bin/Debug folder all necessary assemblies are there including Project B's.

Visual studio multi project template restore all nuget packages

不羁岁月 提交于 2019-12-25 12:09:36
问题 I´m strugling around for some days with visual studio multi project templates installed by an vsix plugin. What I tried: Stackoverflow 1 AND TONS OF MSDN ARTICLES The problem/what I want to do: Setup a private nuget feed for visual studio in general. Install packages from this feed to the subprojects I thought about using the nuget package restore command, because all the subprojects have their packages.config files but I have no plan how to run that command after the project was created. Is

Visual studio editor window stealing focus

旧街凉风 提交于 2019-12-25 08:53:50
问题 I'm working on a visual studio extension. It has a command that opens up a WPF window that has a single item which is a textbox. If you type in the textbox you can see the text show up, but if you hit a key combination such as ctrl+a the visual studio editor which is behind my window captures the key press and selects the content from the editor instead of my window. If I click on something like the solution explorer and go back to my window though ctrl+a will work fine. It seems that I only

VSIX extension adding assembly reference to project

五迷三道 提交于 2019-12-24 13:50:04
问题 Im building an extension that should be able to add an assembly to a projects references This assembly is included with the VSIX Is including the assembly with the VSIX a good idea ? How do I get the path to the assembly that was distributed with the VSIX ? 回答1: To get the deployment directory of your VSIX extension, you can use the following code: System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) Then just add your assembly name to this path. 来源:

Visual Studio Package (vsix) - Team City without Visual Studio installed

家住魔仙堡 提交于 2019-12-24 11:09:07
问题 I'm creating a Visual Studio Package (vsix) (shameless plug: pMixins ) and I want to build the vsix package using the TeamCity continuous integration server. TeamCity uses MSBuild in the background. I am comfortable installing the Visual Studio SDK on my build agent, but I do not want to install a full version of Visual Studio. When I run the Visual Studio SDK installer, it complains that Visual Studio isn't present. How can I use MSBuild (via TeamCity) to build my vsix without having to

VS2010 to VS2012 ToolWindow XAML Reference VsBrushes

一个人想着一个人 提交于 2019-12-24 05:01:24
问题 So I thought I'd run this out there, and see if I was missing something idiotic. I developed a small my-use-only VSIX extension, and in one of my toolwindows, I'm using the code to set the foreground/background color: Foreground="{DynamicResource {x:Static vsfx:VsBrushes.ToolWindowTextKey}}" Background="{DynamicResource {x:Static vsfx:VsBrushes.ToolboxBackgroundKey}}" The vsfx: namespace is referenced as: xmlns:vsfx="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio

VS2010 to VS2012 ToolWindow XAML Reference VsBrushes

一个人想着一个人 提交于 2019-12-24 05:01:08
问题 So I thought I'd run this out there, and see if I was missing something idiotic. I developed a small my-use-only VSIX extension, and in one of my toolwindows, I'm using the code to set the foreground/background color: Foreground="{DynamicResource {x:Static vsfx:VsBrushes.ToolWindowTextKey}}" Background="{DynamicResource {x:Static vsfx:VsBrushes.ToolboxBackgroundKey}}" The vsfx: namespace is referenced as: xmlns:vsfx="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio