我正在使用Microsoft.CodeDom.Providers.DotNetCompilerPlatformnuget packge 在运行时编译代码。这是可以实现的,但在我的场景中,我的动态类需要用于Postsharp面向方面的编程。
任何人都可以指向命令行支持,以Postsharp使用 为编译的程序集添加依赖注入csc.exe,就像 MSBuild 或 Visualstudio.
我正在使用Microsoft.CodeDom.Providers.DotNetCompilerPlatformnuget packge 在运行时编译代码。这是可以实现的,但在我的场景中,我的动态类需要用于Postsharp面向方面的编程。
任何人都可以指向命令行支持,以Postsharp使用 为编译的程序集添加依赖注入csc.exe,就像 MSBuild 或 Visualstudio.