vsix

VSIX package doesn't include localized resources of referenced assembly

我怕爱的太早我们不能终老 提交于 2019-12-01 20:22:12
I'm creating a VS2010 extension (let's call it MyExtension ). The UI for this extension is in a different assembly ( MyExtension.UI ), the extension project only contains boilerplate code to call the UI from the menu command. MyExtension.UI contains localized resources (e.g. fr\MyExtensions.UI.resources.dll ), but the VSIX package doesn't include these resources (although they are present in the bin\Debug directory). How should I tell VS to include these resources in the VSIX package? I looked in the .vsixmanifest designer, but I can't find the appropriate option... This is actually a bug that

TFS - VS Extension: Add work item to pending changes via API

房东的猫 提交于 2019-12-01 14:19:00
I am currently working on a VS extension / add-in and I need to associate work items with the pending changes (without triggering a check-in). After searching for some hours I couldn't find a way to accomplish this via the API. The only way I found to associate a work item to the pending changes is Workspace.CheckIn() which also would trigger the check-in.. Do I miss something? Or is this really not possible? I have provided the sample code below, Note that, I have not tried this code, but it seems it is only possible through some reflection as there is no public method to achieve this in the

VSIX Project Context Menu

眉间皱痕 提交于 2019-12-01 09:02:25
I'm trying to create a Visual Studio 2017 extension, just for fun and to learn how VS extensibility works. My extension must be usable from the Solution Explorer tab as a context menu button, but I would like to include it at a menu level that isn't root. My goal is to put it in the "Add" sub-menu, but at the moment I'm only able to put it at root level (when you right-click the Project item, the menu entry is shown as the last of the context menu control). How can I move it under the "Add" node? Can it be done from the CommandPlacement tags I have configured in my .vsct file? Use as parent of

How do I programmatically refresh/reload a VS project after modifying the underlying file?

浪子不回头ぞ 提交于 2019-11-30 21:43:28
I am developing a Visual Studio package and I have written some code that will make a file in Solution Explorer dependant upon another file. What this means is that it gives them the same relationship as code-behind files or designer files, where they appear nested under the parent file with a plus/minus icon. + MainForm.cs - MainForm.cs MainForm.Designer.cs MainForm.resx The code that I have written successfully and correctly modifies the underlying project file, however the change is not reflected in Solution Explorer until the project is closed and re-opened. I'm looking for some code that

How to include assemblies from NuGet packages in a VSIX Installer?

∥☆過路亽.° 提交于 2019-11-30 17:25:37
I'm working on creating a Visual Studio 2017 custom Check-In Policy extension. My current solution is structured as follows: Note: I am taking advantage of the new NuGet PackageReference approach, which is why there is no packages.config file. I believe I have setup my VSIX manifest appropriately since everything works perfectly when I don't reference Microsoft.Net.Http (originally I was hard-coding in values instead of retrieving the values). I'm not sure why the Microsoft.TeamFoundationServer.ExtendedClient NuGet package being included doesn't cause any issues, whereas the Microsoft.Net.Http

VSIX Package doesn't include referenced project's dependencies

徘徊边缘 提交于 2019-11-30 14:47:23
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. However when the package is deployed, only Project A's assemblies are present and Project B's are missing.

Visual studio does not install .vsix files

依然范特西╮ 提交于 2019-11-30 14:29:38
问题 I have the problem that I have VS 2012 and VS 2013 installed and when I download an VSIX-File and open it with the Visual Studio version selector the file gets opened by VS but instead of installing it VS opens the file as if it was an unknown binary format. The attached image shows how VSIX-files are opened (happens with every file ... this is just an example): 回答1: I faced the same issue. Just use the VSIXInstaller to install the extension. You can open "Developer Command Prompt for VS2012"

Detect the Visual Studio version inside a VSPackage

笑着哭i 提交于 2019-11-30 13:53:21
问题 How can I check/detect which Visual Studio version is running under my VSPackage? I cannot get from the registry because the computer could have several versions installed, so I guess there is an API that is able to get it. Anybody knows how to get it from a managed Visual Studio package using C#? 回答1: You could try to get version via automation DTE object . In MPF you could get it in this way: EnvDTE.DTE dte = (EnvDTE.DTE)Package.GetGlobalService(typeof(EnvDTE.DTE)); There are some other

Detect the Visual Studio version inside a VSPackage

感情迁移 提交于 2019-11-30 08:52:51
How can I check/detect which Visual Studio version is running under my VSPackage? I cannot get from the registry because the computer could have several versions installed, so I guess there is an API that is able to get it. Anybody knows how to get it from a managed Visual Studio package using C#? You could try to get version via automation DTE object . In MPF you could get it in this way: EnvDTE.DTE dte = (EnvDTE.DTE)Package.GetGlobalService(typeof(EnvDTE.DTE)); There are some other related things to retrieve DTE object - via Project.DTE , also read this thread if you're getting null for DTE.

Visual Studio 2015 Update 2 breaks EF reverse code engineer vsix

懵懂的女人 提交于 2019-11-30 07:12:03
问题 After installing the latest Visual Studio 2015 Update 2, the EF power tools reverse code engineer option fails with the following error message. One or more errors occurred while processing template 'Entity.tt'. error : An exception was thrown while trying to compile the transformation code. The following Exception was thrown: System.ArgumentException: Empty path name is not legal. at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights,