Visual Studio 2012/13 Missing MVC NuGets in the exported template

I exported a working draft template and tried to create a new project using it.

Here are the errors I get.

Type IAppBuilder is not defined. Type CookieAuthenticationOpetions is not defined Type OwinStartupAttribute is not defined Type IAppBuilder is not defined DefaultAuthenticationTypes is not declared 

There are also 53 warnings, including

 Could not resolve this reference... 

My question is: why are they not portable? I really do not want to do this for every project that I create from this template.

Update

The same thing happens with the template I created, other than mvc. I did not even make any changes to the encoding before exporting.

Here are some

 ScriptBundle is not defined FriendlyURLSettings is not defined BundleCollection is not defined 

Update 2

The same thing happens in Visual Studio 2012. (updated question title)

Update 3

It shows these links in packages.config. Still not sure why they are not referencing:

 <package id="EntityFramework" version="5.0.0" targetFramework="net45" /> <package id="jQuery" version="1.8.2" targetFramework="net45" /> <package id="jQuery.UI.Combined" version="1.8.24" targetFramework="net45" /> <package id="jQuery.Validation" version="1.10.0" targetFramework="net45" /> <package id="knockoutjs" version="2.2.0" targetFramework="net45" /> <package id="Microsoft.AspNet.Mvc" version="4.0.20710.0" targetFramework="net45" /> <package id="Microsoft.AspNet.Mvc.FixedDisplayModes" version="1.0.0" targetFramework="net45" /> <package id="Microsoft.AspNet.Providers.Core" version="1.2" targetFramework="net45" /> <package id="Microsoft.AspNet.Providers.LocalDB" version="1.1" targetFramework="net45" /> <package id="Microsoft.AspNet.Razor" version="2.0.20715.0" targetFramework="net45" /> <package id="Microsoft.AspNet.Web.Optimization" version="1.0.0" targetFramework="net45" /> <package id="Microsoft.AspNet.WebApi" version="4.0.20710.0" targetFramework="net45" /> <package id="Microsoft.AspNet.WebApi.Client" version="4.0.20710.0" targetFramework="net45" /> <package id="Microsoft.AspNet.WebApi.Core" version="4.0.20710.0" targetFramework="net45" /> <package id="Microsoft.AspNet.WebApi.WebHost" version="4.0.20710.0" targetFramework="net45" /> <package id="Microsoft.AspNet.WebPages" version="2.0.20710.0" targetFramework="net45" /> <package id="Microsoft.jQuery.Unobtrusive.Ajax" version="2.0.30116.0" targetFramework="net45" /> <package id="Microsoft.jQuery.Unobtrusive.Validation" version="2.0.30116.0" targetFramework="net45" /> <package id="Microsoft.Net.Http" version="2.0.20710.0" targetFramework="net45" /> <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" /> <package id="Modernizr" version="2.6.2" targetFramework="net45" /> <package id="Newtonsoft.Json" version="4.5.11" targetFramework="net45" /> <package id="WebGrease" version="1.3.0" targetFramework="net45" /> 

There are no NuGets items in the "Everything in NuGet Manager" section.

+5
source share
2 answers

This seems like a Nuget related issue. Do you have a VS2012 Update 3?

Try reinstalling the Nuget package manager as described in this question:

Why is NuGet not loading in Visual Studio 2012 after updating in VS Update 3?

0
source

Tools> NuGet Package Manager> Package Manager Settings> General

Check the boxes for "Allow NuGet to download missing packages" and "Automatically check for missing packages during build in Visual Studio."

Reconstitute to see if packages are loading.

Hope this helps.

0
source

All Articles