【发布时间】:2019-06-19 00:10:34
【问题描述】:
我想在运行时在 c# 应用程序中编译 c++ 代码。要在 c# 应用程序中编译 c# 代码,我使用了 CSharpCodeProvider(CodeDom)。所以,现在我想编译 c++ 代码,我检查了一些资源、主题和所有他们说,要编译 c++ 代码,我需要使用CppCodeProvider,所以,它在 Microsoft.VisualC 命名空间中,我找到了 Microsoft.VisualC.dll,并导入到我的项目中。当我尝试使用 CppCodeProvider 时,它没有找到。 Microsoft.VisualC 中没有 CppCodeProvider。 请帮帮我。我需要在哪里找到 CppCodeProvider?
【问题讨论】:
-
从您链接到的文档中,它位于 cppcodeprovider.dll - 您是否添加了对 那个 程序集的引用?
-
不,我没有添加它
-
@JonSkeet 将您的答案作为答案发布。感谢您的帮助!
标签: c# compilation codedom csharpcodeprovider