[英]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的新项目系统,否则您将必须卸载项目文件才能进行编辑。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.