简体   繁体   中英

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. However, if the library targets .Net Framework Microsoft.Csharp does not need to be installed. Why is this necessary for .Net Standard libraries and what is it used for. 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.

是的,这是因为dynamic关键字需要C#编译。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM