通读罗斯林API的默认命名空间 [英] Reading the default namespace through Roslyn API

查看:174
本文介绍了通读罗斯林API的默认命名空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法读取默认命名空间距离为IProject接口或任何其他罗斯林接口设置?我知道,我可以分析该项目的文件,但我认为这应该使用罗斯林API是可能的,但我无法找到如何做到这一点。感谢您事先的信息。

Is there a way to read the default namespace setting from the IProject interface or any other Roslyn interface? I know that I can parse the project's file but I think this should be possible using Roslyn API but I cannot find how to do that. Thanks in advance for information.

推荐答案

不幸的是,罗斯林不公开的方式来做到这一点的时刻,但我同意,这是我们可能需要最终。

Unfortunately, Roslyn does not expose a way to do that at the moment, but I agree that it is something we will probably need eventually.

这篇关于通读罗斯林API的默认命名空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆