none
Missing "Models" folder for new ASP.Net Web Application

    Question

  • When creating a new ASP.Net Web Application, selection ASP.NET 5 Templates Web Application if you change the Authentication to "Windows Authentication" you do not get a Models subfolder in the resulting project.  Nor can you add a new Controller by right clicking on the Controllers subfolder and going to add.  I don't understand why these items are missing when you change the Authentication type.  Works fine if you leave it with the default Authentication type.  I have the following installed:

    Microsoft Visual Studio Professional 2015
    Version 14.0.24720.00 Update 1
    Microsoft .NET Framework
    Version 4.6.01055

    Installed Version: Professional

    Visual Basic 2015  
    Microsoft Visual Basic 2015

    Visual C# 2015  
    Microsoft Visual C# 2015

    Visual C++ 2015  
    Microsoft Visual C++ 2015

    Application Insights Tools for Visual Studio Package   1.0
    Application Insights Tools for Visual Studio

    ASP.NET and Web Tools 2015 (RC1 Update 1)   14.1.11120.0
    ASP.NET and Web Tools 2015 (RC1 Update 1)

    ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0

    ASP.NET Web Frameworks and Tools 2013   5.2.30624.0

    Azure App Service Tools v2.7.1   14.0.11112.0
    Azure App Service Tools v2.7.1

    Common Azure Tools   1.5

    Microsoft Azure Mobile Services Tools   1.4
    Microsoft Azure Mobile Services Tools

    NuGet Package Manager   3.3.0

    PreEmptive Analytics Visualizer   1.2

    SQL Server Data Tools   14.0.50616.0

    TypeScript   1.7.6.0

    Friday, March 04, 2016 10:55 PM

Answers

  • Hi P at franco,

    Thank you for posting in MSDN forum.

    I created a ASP.NET 5 Templates Web Application reproduce this issue, and found the same result as yours: there is no Models subfolder in the resulting project.

    As we know, Asp.Net 5 Template is RC version currently, If possible, you could submit this “Models subfolder”feature request: http://visualstudio.uservoice.com/forums/121579-visual-studio . The Visual Studio product team is listening to user voice there. You can send your idea there so the others can vote it. If you submit this suggestion, you might post that link here which will benefit others who has the similar issue, I will vote it. Thanks for your understanding.

    When I right clicked Controllers> Add New item, there are many type of controllers you could choose, it is designed by so:

    Best Regards,
    Weiwei

    Tuesday, March 08, 2016 7:16 AM
    Moderator