[英]Why do libraries targeting .Net Standard need Microsoft.Csharp
I recently noticed that if I want to download a package from nuget for a library that targets .Net Standard, the dependencies for .Net Standard in most cases list Microsoft.Csharp package. 我最近注意到,如果要从nuget下载针对.Net Standard的库的软件包,则在大多数情况下.Net Standard的依赖项会列出Microsoft.Csharp软件包。 However, if the library targets .Net Framework Microsoft.Csharp does not need to be installed. 但是,如果该库以.Net Framework为目标,则不需要安装Microsoft.Csharp。 Why is this necessary for .Net Standard libraries and what is it used for. 为什么.Net标准库需要这样做,它的用途是什么。 I understand Microsoft.Csharp provides support for compilation and code generation, including dynamic, using the C# language but I couldn't find any hints on what it's specifically used for. 我了解Microsoft.Csharp使用C#语言提供了对编译和代码生成(包括动态)的支持,但我找不到有关其专门用途的任何提示。
是的,这是因为dynamic
关键字需要C#编译。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.