weixin_39985842
weixin_39985842
2021-01-11 11:37

Porting bug in System.CodeDom.CodeDomProvider for non existent languages and extensions

Opening, as I will submit a fix after dotnet/corefx#12867 is merged.

NetFx

CodeDomProvider.IsDefinedLanguage("no-such-language") returns false

NetCore

CodeDomProvider.IsDefinedLanguage("no-such-language") throws KeyNotFoundException

This is because we can't use System.Configuration

/cc

该提问来源于开源项目:dotnet/runtime

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

4条回答

为你推荐

换一换