locked
Running new VS 2013 project templates with pre-release nuget packages and new API in VS 2012 RRS feed

  • Question

  • User-140033723 posted

    Is there a way to backport VS 2013 solution/projects to be opened in VS 2012. I would like to use all the latest -pre versions of nuget packages used in MVC 5 Internet/Web API templates as part of VS 2013 also in VS 2012. How can I go about that and not manually doing it?

    All the new examples in VS 2013 use latest APIs and sometimes new APIs like OWIN and Microsoft.AspNet.Identity.Core and other libraries.

    I would like to run them in VS 2012 unchaged. I don't think new APIs depend of .net framework 4.5.1.

    Thanks,

    Rad

    Wednesday, July 3, 2013 2:28 AM

All replies

  • User-166373564 posted

    Hi raca

    I would like to run them in VS 2012 unchaged. I don't think new APIs depend of .net framework 4.5.1.

    If you want to use the new features in Visual Studio 2013, you can develop your application with Visual Studio 2013,

    if you want to open VS 2013 solution/projects in VS 2012, I think it is necessary for you to learn the compatibility between Visual Studio 2013 Preview and Visual Studio 2012, some tips are necessary for you to do that,

    # Visual Studio 2013 Preview Compatibility

    http://msdn.microsoft.com/en-us/library/vstudio/hh266747(v=vs.120).aspx 

    Regards

    Tuesday, July 9, 2013 3:19 AM
  • User-140033723 posted

    Thanks Angie,

    So how would I go about testing it. 

    I would like to follow this tutorial http://www.asp.net/mvc/tutorials/mvc-5/introduction/getting-started
    that uses Visual Studio 2013 Preview, and complete it and try to open the solution using Visual Studio 2012.3.

    As far as I can see the latter can target .net framework 4.5.1. Is there anything in .sln and .csproj files or other files created
    by Visual Studio 2013 Preview that cannot be properly interpreted by Visual Studio 2012.3?

    - This is what I have in a VS 2013 preview created .sln file:

    Microsoft Visual Studio Solution File, Format Version 12.00
    # Visual Studio 2013
    VisualStudioVersion = 12.0.20617.1 PREVIEW
    MinimumVisualStudioVersion = 10.0.40219.1

    - .csproj file created by VS 2013 preview version:

    <?xml version="1.0" encoding="utf-8"?>
    <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

    ==============================================

    - and this is what I have in a VS 2012.3 created .sln file:

    Microsoft Visual Studio Solution File, Format Version 12.00
    # Visual Studio 2012

    - .csproj file created by VS 2012.3 version:

    <?xml version="1.0" encoding="utf-8"?>
    <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

    ---------------------------------------

    From what I can see .csproj files have ToolsVersion changed from 4.0 to 12.0. Obviously they had some differences in the build process.
    I suppose 2 VS versions will be built by 2 different versions of msbuild engine.

    And there is VisualStudioVersion and MinimumVisualStudioVersion added in .sln 2013 version, I suppose for round-tripping in that version.

    So what would be the best way to approach converting VS 2013 generated .sln/.csproj files (using Visual C#/Web/ASP.NET Web Application - Web API template) to VS 2012.3 generated .sln/.csproj files (by backporting generated .sln and .csproj files to VS 2012.3 version)?

    I know that in VS 2012.3 I can create project using Visual C#/Web/ASP.NET MVC 4 Web Application template - Web API template, but that one doesn't include bootstrap, latest razor 3.0 pages, EF 6 beta etc)

    Any articles that explain what changed between project files formats between 2 versions

    Thanks,

    Rad

    Wednesday, July 10, 2013 2:13 AM