T4 templates don't work for me in my Visual studio 2008 solution - subsonic

I download the latest version of Subsonic(3.0.0.3) but when I add the T4 templates in my solution in Visual studio 2008 SP1, the auto-generation don't work. If I right click on the template files also the "Run custom tools" is not present.
What I have to do to make visual studio able to generate code from T4 templates?

Check what type of project you are using.
T4 Templates don't run in "Web Site" projects (as opposed to "Web application" projects). If you're using a web site project, you must add a Code project as well, put your templates in there and reference that project in your website.

Related

Cant find File System, Registry icon in WIX setup project in Visual Studio

I installed WIX in my machine.
I followed the video of https://www.youtube.com/watch?v=CoFPyIbcqN8enter link description here
I can not find any way to add File Systems, no icon for it, no context menu entry on project.
I am using Visual Studio 2012.
That's the Add-In Express designer for WiX in the video. It's a paid for component.
Installing WiX on your system only adds project templates to Visual Studio. It's a free installer/packaging engine that uses XML (scripting) to build MSI's and etc and doesn't come with a designer.
WiX is quite a steep learning curve, if you want the editor then I suggest you check out the Package & Deployment add-in Microsoft re-introduced for VS2013, it's on VisualStudio Gallery. Brian Harry blogs about it here: http://blogs.msdn.com/b/bharry/archive/2014/04/18/creating-installers-with-visual-studio.aspx
Visual Studio 2013 has a free Community Edition that you can use. You add the Installer add-on:
https://visualstudiogallery.msdn.microsoft.com/9abe329c-9bba-44a1-be59-0fbf6151054d
Then what you have is the same Visual Studio installer setup projects as you had in VS 2010.

Create a setup file in Visual Studio 2012

I have a windows form project and I want to create an installation package for this project. How can I create a setup file in Visual Studio 2012 ? My project is without data base.
How to create a Setup package using Visual Studio 2012.NET?
Microsoft released the Visual Studio Installer Project extension in April of this year, the catch is it's for VS2013, not VS2012.
http://blogs.msdn.com/b/visualstudio/archive/2014/04/17/visual-studio-installer-projects-extension.aspx
The 'lite' InstallShield option remains in VS if you need something with more flexibility.
Advanced Installer also has a free version that includes an extension for VS. This is a commercial tool but the extension is included in the free edition as I said, for more advanced features you need to purchase a Professional or higher licenses and edit the project direct from Advanced Installer GUI, not from VS. (but you can still use the project in the VS solution, so you get the MSI built at the end of your build process)
Visual Studio setup projects (vdproj) are not supplied with VS 2012
There are several solutions for you:
You could use InstallShield instead.
If you don't want or
can't use InstallShield for any reason, you could try WiX. This
toolset builds Windows installation packages from XML source code.
If you only use Windows Presentation Foundation (.xbap), Windows Forms (.exe), console application (.exe), or Office solution (.dll) you could look at ClickOnce. To use this you should right click on the project file in the solution explorer and select "Publish" from the pop-up menu.
Alternatively you can use previous version of Visual Studio (2010).

WSPBuilder for vs 2012

I am new to SharePoint 2013. I am using trial version vs 2012. I want to use the WSPBuilder to develop the web parts. I have install the WSPBuilder and it is not showing in vs 2012.
I have used the below link but not solved the issue.
http://gblsharepoint.blogspot.in/2013/01/using-wspbuilder-with-visual-studio-2012.htm
I have done the copy and past the "Microsoft Visual Studio" and "Microsoft Visual Studio Macros" hot applications and given the version as "11.0". It is working.
Can any one help me
WSP Builder had it's use back in the SharePoint 2007 days, where Visual Studio had no support for SharePoint packages.
Ever since the release of Visual Studio 2010 and Visual Studio 2012 there is no real need for WSP Builder anymore.
In order to use Visual Studio 2012 with SharePoint 2013 you will have to install an additional package though. To install it, launch the Web Platform Installer (or download the installer if it's not on your server from http://www.microsoft.com/web/downloads/platform.aspx). In the installer, search for SharePoint. From the results, install Microsoft Office Developer Tools for Visual Studio 2012.
Launch Visual Studio and when you create a new project/solution you should see a Office/SharePoint category. Underneath there, pick the SharePoint Solutions category. If you just want to create a single webpart in a WSP file, then the easiest is to pick the "SharePoint 2013 - Visual Web Part" project item. That will set you with a project containing a feature, a visual webpart that you can extend with your own code, etc. Build the webpart and you will end up with a WSP file in your debug/release folders that you can deploy to your server (or by simply pressing F5 it will automatically deploy it to the farm / site you specified when creating the project).
If you use F5 to deploy, don't forget to add the webpart to a page after deployment as Visual Studio will not do that for you (Edit a page, switch to the insert tab in the ribbon, pick your webpart. Your webpart will be under the 'custom' category if you don't modify the elements.xml file of the webpart).

Web Project Templates not appearing in Visual Studio 2012

I'm evaluating single-page application frameworks, and I've just downloaded and installed the various templates from ScottGu's page.
However, when I attempt to create a "New ASP.NET MVC 4 Project", as detailed on the Durandal page, here, I see only the default, Visual Studio-installed templates.
I've checked in C:\Users\me\AppData\Local\Microsoft\VisualStudio\11.0\Extensions, and I can see a directory (called eislr0na.wgk) containing the Durandal bits. I've deleted the .cache files in the Extensions folder and restarted Visual Studio.
But, I can't see any of the single-page templates in the dialog box.
What's the problem?
In order to use the new templates you must have the Visual Studio 2012.2 update installed.

Empty Project in Visual Studio Express 2012

I want to create an empty project in Microsoft Visual Studio Express 2012, but somehow I don't see any template for that.
I go to File->New Project and the "New Project" dialog box pops up. On the left side I click on "Visual C++" but the only subitem is "Windows Store" and there is no template for an empty project. I can only see templates for creating apps.
Isn't it possible to create empty projects in the new version?
You are probably trying to use Microsoft Visual Studio Express 2012 for Windows 8. Try using Microsoft Visual Studio Express 2012 for Windows Desktop. If you want to create a plain C++ project in Windows 8, this is the way to go. Confusing, I know.
Empty Solution = Blank Solution?
File > New Project... > Templates > Other Project Types > Visual Studio Solutions > Blank Solution

Resources