简体   繁体   English

无法在Visual Studio 2017解决方案资源管理器中编辑.csproj文件

[英]Can't edit .csproj file in visual studio 2017 solution explorer

Working on an ASP.NET MVC C# project in Visual Studio 2017. I cannot find .csproj file in my solution explorer. 在Visual Studio 2017中处理ASP.NET MVC C#项目。在解决方案资源管理器中找不到.csproj文件。

Tried to right click the project name, and still cannot find "Edit .csproj" item as some posts suggested. 尝试右键单击项目名称,但仍然找不到某些帖子建议的“ Edit .csproj”项。

Please help! 请帮忙!

The project file editing feature (without needing to unload the project) is part of the new CPS-based project system. 项目文件编辑功能(无需卸载项目)是新的基于CPS的项目系统的一部分。

In VS 2017, there are two project systems that can be used for .NET Projects - the "legacy" project system and the new CPS-based project system. 在VS 2017中,有两个可用于.NET项目的项目系统-“旧版”项目系统和新的基于CPS的项目系统。 Which one is used is determined by a selection logic that looks at the project file (at the moment it looks if there is a TargetFramework property defined in the project file itself) or by using a special GUID inside the .sln file. 使用哪种选择取决于查看项目文件的选择逻辑(此时,它看起来是否在项目文件本身中定义了TargetFramework属性)或通过.sln文件中的特殊GUID确定。

While it is possible to load classic .NET projects using the new project system, it lacks some capabilities that are available to .NET Framework projects in the legacy one. 尽管可以使用新的项目系统加载经典的.NET项目,但它缺少一些旧版本.NET Framework项目可用的功能。 The most notable ones are designer support for WinForms, WPF and Entity Framework. 最值得注意的是对WinForms,WPF和Entity Framework的设计器支持。

It is also not possibly to (productively) use classic ASP.NET projects on the new project system since it will lack all ASP.NET specific features. 由于它将缺少所有ASP.NET特定功能,因此也不可能在新项目系统上(有效地)使用经典ASP.NET项目。

So unless a new version of VS uses a new CPS-based project system for classic ASP.NET apps, you will have to unload your project file in order to edit it. 因此,除非新版本的VS为经典的ASP.NET应用程序使用基于CPS的新项目系统,否则您将必须卸载项目文件才能进行编辑。

To edit your .csproj file, you must to convert it to the 2017 version. 要编辑.csproj文件,必须将其转换为2017版本。

Try to use this tool to auto convert. 尝试使用此工具进行自动转换。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 解决方案资源管理器中的 Visual Studio 2017 锁定文件 - Visual Studio 2017 lock file in solution explorer Visual Studio 2017 按文件类型和字母顺序对解决方案资源管理器进行排序 - Visual Studio 2017 sort solution explorer by file type and alphabeticlly Visual Studio 2017 csproj核心文件排除 - Visual Studio 2017 csproj core file exclusion Visual Studio 2017解决方案资源管理器为空 - Visual Studio 2017 Solution Explorer is empty Visual Studio 2017无法正确编辑并继续调试 - Visual Studio 2017 can't edit and continue debug correctly 如何让Visual Studio 2017接受对csproj文件的修改 - How to have Visual Studio 2017 accept modifications to csproj file Visual Studio 2017 RC如何在csproj文件中指定发布选项 - Visual Studio 2017 RC How to specify Publishing Options in the csproj file Visual Studio 2017不记得“在解决方案资源管理器中跟踪活动项”选项 - Visual Studio 2017 don't remember option “Track Active Item in Solution Explorer” Visual Studio 2017解决方案资源管理器中文件旁边的蓝色光标图标-这是什么意思? - Blue cursor icon next to file in Visual Studio 2017 Solution Explorer - what does it mean? 如何禁用自动隐藏解决方案资源管理器(Visual Studio 2017) - How to disable auto hide the solution explorer (Visual Studio 2017)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM