简体   繁体   English

为什么两个 .NET Framework 4.7.2 项目的属性看起来不同?

[英]Why properties of two .NET Framework 4.7.2 projects look different?

I have a solution with mostly C# Class Library (.NET Framework) projects.我有一个主要包含 C# 类库 (.NET Framework) 项目的解决方案。 I have added a new project to the solution (called Training ) for same the Target Framework (ie .NET Framework 4.7.2).我已经为相同的目标框架(即 .NET Framework 4.7.2)向解决方案(称为Training )添加了一个新项目。 But as shown in the screenshot below, if I compare the properties of an old project (called Programming ) wrt the new project (called Training ) then, the different structure of the menu appears (maybe the information is same).但如下面的屏幕截图所示,如果我比较旧项目(称为Programming )与新项目(称为Training )的属性,则会出现不同的菜单结构(可能信息相同)。

Question: Why the Properties information look different for the same project type (class library) and same Target type in Visual Studio 2022?问题:为什么在 Visual Studio 2022 中相同项目类型(类库)和相同目标类型的 Properties 信息看起来不同?

在此处输入图像描述

The different dialogs are due to the project files being different kinds - there's the "old style" one (which is typically huge and lists every source file) and the "SDK-style" one (which is typically much smaller).不同的对话框是由于项目文件的种类不同——有“旧式”的(通常很大并列出每个源文件)和“SDK 式”的(通常小得多)。

To create a new SDK-style project, target .NET Core or .NET 5+ in the wizard - you can always change the TargetFramework property to net472 or similar later.要创建新的 SDK 样式的项目,请在向导中将 .NET Core 或 .NET 5+ 作为目标 - 您以后始终可以将TargetFramework属性更改为net472或类似的。

暂无
暂无

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

相关问题 EntityFramwork 与 .net 框架 4.7.2 项目和 .net 标准 2.0 项目的兼容性 - EntityFramwork compatibility with .net framework 4.7.2 projects and .net standard 2.0 project .NET Framework 4.7.2 和 MoreLINQ - .NET Framework 4.7.2 with MoreLINQ 如果这两个ListBoxes的属性相同,为什么它们看起来不同? - Why do this two ListBoxes look different if their properties are identical? 具有 4.7.2 目标框架版本的 C# 项目可以在 .net 4.6.1 上运行吗 - Can C# projects that have 4.7.2 target framework version run on .net 4.6.1 是否可以在 C# (.NET Framework 4.7.2) 中向 .settings 文件添加其他属性 - Is it possible to add additional properties to a .settings file in C# (.NET Framework 4.7.2) 为什么控制台应用程序循环在.NET Core 2.2.6上有效,但在.NET Framework 4.7.2上无效? - Why does Console App loop work on .NET Core 2.2.6 but not on .NET Framework 4.7.2 使用WIX安装程序安装.NET Framework 4.7.2(如果需要) - Install .NET Framework 4.7.2 (if needed) with WIX installer C# .NET 框架 4.7.2 中的 8 个功能 - C# 8 features in .NET Framework 4.7.2 EnableCors 使用 ApiController 但不使用 Controller .NET 框架 4.7.2 - EnableCors working with ApiController but not with Controller .NET Framework 4.7.2 为什么带有 InvariantCultureIgnoreCase 的 String.Equals 在 .net 4.7.2 和 .net 5 中表现不同? - Why does String.Equals with InvariantCultureIgnoreCase behave different in .net 4.7.2 and .net 5?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM