How to compile a VB.NET console application's source code using VB.NET

后端 未结 1 1678
我寻月下人不归
我寻月下人不归 2021-01-14 10:23

I need to create a VB.NET function that takes the source code of a VB.NET console application and compile it into a console application.

相关标签:
1条回答
  • 2021-01-14 10:39

    The "Obsolete" warning message tells you how to avoid receiving it - use the method defined on the CodeProvider class directly, e.g.

    provider = New Microsoft.VisualBasic.VBCodeProvider
    'compiler = provider.CreateCompiler
    results = provider.CompileAssemblyFromSource(params, VBSourceCode)
    
    0 讨论(0)
提交回复
热议问题