Quantcast
Channel: Kev @ MVC » t4 template
Viewing all articles
Browse latest Browse all 8

Create a MVC 3 web solution template – Part 3, Create a new solution using template

$
0
0

Create a new project from Visual Studio. Find your template from Visual C# templates.

image

It will ask you to configure to use IIS express

image

Because template contains no “packages” folders and the pre-installed nuget packages have no references. Project won’t compile.

Now right click solution and select “Enable Nuget Package Restore”

image

When you build your solution, packages will be downloaded and your nuget package references will be ok to resolve.

image

From time being, pre-installed nuget packages will have updates.

Right click Solution, select “Manage Nuget Packages for Solution…”

Select Updates Tab, to update packages

image

 

It is almost flawless, but….

You need to add project reference “Business”,”Data” to your “Web” project. And “Data” to your “Business” project.

———————————————————————

Download the sample vstemplate from http://mvc3projecttemplate.codeplex.com/



Viewing all articles
Browse latest Browse all 8

Trending Articles