none
folder structure of .net core web application between vs2017 and vs2015 RRS feed

  • 问题

  • When I create a .net core web application with vs2015, there is a 'src' folder under root folder and all the project folders are all in it.

    But when I did it with vs2017, the folder structure is traditionally,which means all the project folders are under the root folder directly.

    So is there any reason for this difference? Is it a bug of vs2017 or by design? I really like the behavior of vs2015 but I wanna using vs2017.

    By the way, both professional versiton.

    2017年3月22日 9:12

答案

  • 你好 Neil Qiu,

    >>So is there any reason for this difference? Is it a bug of vs2017 or by design?

    By design VS 2017就是这样设计的,因为VS 2015的项目类型是xproj,但是在VS 2017中支持的是csproj格式,默认模板就不一样了。

    请参考VS 2017 release note :

    • MSBuild support for .NET Core projects, with a simplified csproj project format that makes it easier to edit by hand, without the need to unload the project.
    • Editing .NET Core .csproj file is as simple as a right click on project in Solution Explorer and choosing “Edit”.
    • Support for file wildcards in project file, where you don’t have to enumerate all the source code file names, which keeps the csproj file compact in size.
    • NuGet package references are now part of the csproj file, consolidating all project references in one file.
    • Interop between .NET Core, .NET Standard and .NET Framework projects. For example, a .NET Core project can add a project-to-project reference to a .NET Standard project.
    • Cross-target multiple target frameworks in one project.
    • Existing project.json .NET Core projects will automatically migrate to csproj when opened in Visual Studio, or you can


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • 已标记为答案 Neil Qiu 2017年3月23日 8:11
    2017年3月23日 7:16
    版主

全部回复

  • 你好 Neil Qiu,

    >>So is there any reason for this difference? Is it a bug of vs2017 or by design?

    By design VS 2017就是这样设计的,因为VS 2015的项目类型是xproj,但是在VS 2017中支持的是csproj格式,默认模板就不一样了。

    请参考VS 2017 release note :

    • MSBuild support for .NET Core projects, with a simplified csproj project format that makes it easier to edit by hand, without the need to unload the project.
    • Editing .NET Core .csproj file is as simple as a right click on project in Solution Explorer and choosing “Edit”.
    • Support for file wildcards in project file, where you don’t have to enumerate all the source code file names, which keeps the csproj file compact in size.
    • NuGet package references are now part of the csproj file, consolidating all project references in one file.
    • Interop between .NET Core, .NET Standard and .NET Framework projects. For example, a .NET Core project can add a project-to-project reference to a .NET Standard project.
    • Cross-target multiple target frameworks in one project.
    • Existing project.json .NET Core projects will automatically migrate to csproj when opened in Visual Studio, or you can


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • 已标记为答案 Neil Qiu 2017年3月23日 8:11
    2017年3月23日 7:16
    版主
  • 感谢解答。

    By the way, 姑娘你头像真好看。

    2017年3月23日 8:17
  • 2333,  头像是本人 多谢夸奖 :)

    感觉整个人都好了


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2017年3月23日 8:19
    版主