Can anyone tell me how to create an Item Template that can be used by the EF designer for the Add Code Generation Item option? I have created the Item Template and it works like a dream! However, I can't figure out how to get it to show up in the Add Code Generation Item dialog. FWIW I'm using a VSIX Project to deploy the Item Template.
The .vstemplate file in your Item Template project must have the ADONETArtifactGenerator_ prefix.
Related
I am making a Visual Studio extension, which allows to embed web pages into your projects and solutions: https://visualstudiogallery.msdn.microsoft.com/52bd30dd-596f-40a9-94a9-ba3fb250c671
Alpha is out. However, I have a problem: item template for a web page link indeed appears in File -> 'New -> File ...' dialog, but not when I do right click on C# project, and select 'New Item ...' there. I understand, that I can add identical template to ItemTemplates folder, specific to C# projects, but I want my template be easily available in all project types via 'New Item ...'.
Is there a way to do it?
If you use the item templates to display all the projects you need to create the Custom item templates like Custom project system.
Good day, am still a beginner to Windows Phone and visual studio environment so apologies in advance. In Visual Studio, when creating a new layout we have the LayoutRoot by default. After having this LayoutRoot customized(with set rows and columns and a postioned TextBlock), is it possible to make the layout like a base template so that when one starts a new layout, it can have this customized Layout as its LayoutRoot. How can i do this or do i have to copy this values to every new layout that i intend to create. Many Thanks
Three options come to mind here.
You can make a visual studio item template for your customized page where you can easily add it to new projects. Check this tutorial on how to make item templates: Visual Studio - How To Create Item Templates
You can make a base page with the customized xaml and have your other pages inherit from it.
You can make user controls responsible for specific UI parts and then add these controls to pages whenever needed.
I have created a List in SharepointUI, then made some layout changes in InfoPath. I then created a WSP file and imported the List into a new Project in Visual Studio 2010.
For a mumber of fields I do not want to display in the New Entry form I have set the ContentType FieldRefs for the field to have the property ShowInNewForm="FALSE" in the Schema.xml.
However, when I Deploy the Project and Add a New Item to the List the said fields are displayed. I am expecting these fields not to be visibile in the NewForm? Any ideas why this is not working?
Thanks
I think you problem here is that you customized the forms with InfoPath which I think does not apply normal forms rules like ShowInNewForm = "FALSE".
You can control the visibility of the controls from InfoPath as you want.
I wish to create an additional item on the context sensitive right click "ADD" on the solution explorer in vs 2010.
Basically it currently looks like this
New Item
Existing Item
New Folder
Add ASP.NET FOLDER // ACTUALLY THIS IS A MENU with a SUB MENU
Class
What i am trying to do is create a new item similar to "Add asp.net folder" hence it will have subitems
Basically it will be something like this
Add JS items
Add new model
Add new plugin
Basically clicking on "add new model" or "add new plugin" will create a new file UTF-8 and include in the project. It will contain some default code.
I am having a real issue trying to find a good example of how to do this.
Any ideas where i should look?
Anybody seen anything similar?
THanks in advance
Here are some docs to point you in the right direction.
http://msdn.microsoft.com/en-us/library/bb165473.aspx
http://msdn.microsoft.com/en-us/library/bb164699.aspx
Basically commands and menus work the same throughout all of VS, one tricky part is just finding the right Guid of the parent menu that you want to hook in to.
I have create a DocumentLibrary list using the SharePoint UI and export it using the SharePoint Solution Generator 2008 (VSeWSS 1.3) to a Visual Studio .NET project.
Then I have made a webpart to show items from the document library using the ListViewByQuery with som input parameters. I have put the ListViewByQuery into a Ajax UpdatePanel. The list item menu rase an error 'ctx' is undefined. ctx is defined in the schema.xml file.
Any ideas?
Work-around;
Had the same problem with a document library - to work-around I dragged the standard control part onto the page and made it non-visible (the doclibrary plugin )
Make sure that in this hidden control's view the "Name (linked to document with edit menu)" field is in the view.
That field will cause the creation of a ctx to support the edit drop-down.