extensibility

Visual Studio 2012-s custom project template not visible

偶尔善良 提交于 2021-02-07 05:53:08
问题 I completed the custom template project tutorial part I from msdn and got a basic project structure working and visible in the File - New - Project menu. Then i advanced to msdn part II and can't get past " Testing a Visual Studio Template " part. When i add the .vstemplate file in the custom project template folder, set the Build Action of all the files under my custom project template folder to ZipProject and change the 2nd and 6th parameter of the [ProvideProjectFactory] to null and ".\

Extending Entity Framework Model at application runtime

懵懂的女人 提交于 2021-01-29 00:40:55
问题 For a business application, I am providing a base entity model. Thereafter the end user should be able to extend the model for his specific needs. For the base model I want to use database-first approach. But I don't know how to accommodate for allowing user to extend it. One part is to provide a UI for entity model editing and the other is to reflect the changes in the model and database thereafter. Please offer suggestions. EDIT : - Once the entity model is edited and saved, all EF

Extending Entity Framework Model at application runtime

限于喜欢 提交于 2021-01-29 00:36:47
问题 For a business application, I am providing a base entity model. Thereafter the end user should be able to extend the model for his specific needs. For the base model I want to use database-first approach. But I don't know how to accommodate for allowing user to extend it. One part is to provide a UI for entity model editing and the other is to reflect the changes in the model and database thereafter. Please offer suggestions. EDIT : - Once the entity model is edited and saved, all EF

Visual Studio Extensibility, Programmatically Creating A Project

喜你入骨 提交于 2020-02-01 09:28:05
问题 I am attempting to programmatically add a test project to a solution. However when the code below executes I receive a File IO exception on the line "vhaSolution.GetProjectTemplate("TestProject.zip", "Csharp")". The error indicates that "he language specified is not supported by any of the installed packages". Does anyone have any idea what could be causing this? public enum TestProjectType { Unit, Acceptance, Integration } public static void CreateTestProject(string

Golang events: EventEmitter / dispatcher for plugin architecture

…衆ロ難τιáo~ 提交于 2020-01-20 19:07:36
问题 In Node.js I was able to make a WordPress clone rather easily using the EventEmitter to replicate and build a hooks-system into the CMS core, which plugins could then attach to. I now need this same level of extensibility and core isolation for my CMS written in and ported to Go. Basically I have the core finished now, but in order to make it truly flexible I have to be able to insert events (hooks) and to have plugins attach to these hooks with additional functionality. I don't care about

Using MEF with C#, how do I call methods on the host, from the plugin?

邮差的信 提交于 2019-12-30 06:52:08
问题 I am trying to add plugin extensibility to my C# application using the Managed Extensibility Framework (MEF) framework, and so far it is going ok; I have my main/host application loading plugins from a defined folder, and can call their methods etc. from the main application. Both the host application and the plugins reference a seperate dll assembly which contains the interfaces common to all projects. This is working fine and I can call/interact with the plugins from the main application.

Using MEF with C#, how do I call methods on the host, from the plugin?

牧云@^-^@ 提交于 2019-12-30 06:52:08
问题 I am trying to add plugin extensibility to my C# application using the Managed Extensibility Framework (MEF) framework, and so far it is going ok; I have my main/host application loading plugins from a defined folder, and can call their methods etc. from the main application. Both the host application and the plugins reference a seperate dll assembly which contains the interfaces common to all projects. This is working fine and I can call/interact with the plugins from the main application.

How do you create a simple Automation Extender for Visual Studio with UITypeEditor

时光怂恿深爱的人放手 提交于 2019-12-24 05:59:42
问题 In Visual Studio when you select project or project items in the solution explorer there are times when you might want to add custom properties to the properties window(the window that pops up when you press F4). Also, to fill in the values of those properties I need to add a button to pop up a form so I can collect information from the user at design time. What is the simplest implementation of this so I can get started? How would I create a user interface to collect the value some how by

How do you create a simple Automation Extender for Visual Studio with UITypeEditor

谁说我不能喝 提交于 2019-12-24 05:58:26
问题 In Visual Studio when you select project or project items in the solution explorer there are times when you might want to add custom properties to the properties window(the window that pops up when you press F4). Also, to fill in the values of those properties I need to add a button to pop up a form so I can collect information from the user at design time. What is the simplest implementation of this so I can get started? How would I create a user interface to collect the value some how by

Get Access property of a CodeElement

只谈情不闲聊 提交于 2019-12-23 12:37:02
问题 I'm writing an Add-in for VS 2010. Can't find answer for a question - How can i get the Access property of a CodeElement if it has that one. I was trying reflection, but no results. Ex. CodeElement is a class method public void GetAccess (CodeElement codeElement) { object code = codeElement; Type t = code.GetType(); t.GetProperty("Access") = vsCMAccess.vsCMAccessPublic; } But it doesnt work.. Help, please! 回答1: Access is only available on some types of CodeElements, so you'll need to check