简体   繁体   English

为什么面向.Net Standard的库需要Microsoft.Csharp

[英]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.

相关问题 VB.NET Azure函数-Microsoft.CSharp程序集做什么? - VB.NET Azure Functions — what does the Microsoft.CSharp assembly do? 无法识别Microsoft.CSharp参考 - Microsoft.CSharp reference not recognized Microsoft.CSharp库中的BadImageFormat异常 - BadImageFormat Exception at Microsoft.CSharp library 无法找到参考组件Microsoft.CSharp - Reference Component Microsoft.CSharp could not be found 此项目使用的 Microsoft.NET.Sdk 版本不足以支持对面向 .NET Standard 1.5 或更高版本的库的引用 - The version of Microsoft.NET.Sdk used by this project is insufficient to support references to libraries targeting .NET Standard 1.5 or higher 发现无法解决的不同版本的“Microsoft.CSharp”之间的冲突 - Found conflicts between different versions of "Microsoft.CSharp" that could not be resolved C#Compiler-as-a-Service:Mono.CSharp与Microsoft.CSharp - C# Compiler-as-a-Service: Mono.CSharp vs Microsoft.CSharp 使用不是管理员组成员的用户登录时无法加载文件或程序集“Microsoft.CSharp” - Could not load file or assembly 'Microsoft.CSharp' when logged in with user which is not a member of administrator group Xamarin Android 错误“无法解析引用:`System.Dynamic`,由`Microsoft.CSharp` 引用” - Xamarin Android Error "Can not resolve reference: `System.Dynamic`, referenced by `Microsoft.CSharp`" 尝试导出 fastreport 报告时无法找到元数据文件“Microsoft.CSharp”错误 - Getting a Metadata file 'Microsoft.CSharp' could not be found error upon trying to export a fastreport report
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM