Closed HeSitates closed 1 year ago
After long investiggation, problem solved:
CompileAssemblyFromDom
I had to move the references from the CodeCompileUnit to the CompilerParameters.netstandard.dll
and System.Data.Common.dll
. For this you need to add those files in the .csproj file and mark them as local.
We are finally updating an old project to .Net Framework 4.8 (...)
With .Net Framework 4.7 we used Microsoft.CSharp.CSharpCodeProvider, now we are using the Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider.
But now I'm stuck several errors, e.g.:
The generated code that does not compile:
I've added extra references to
Microsoft.CSharp.dll
andSystem.Core.dll
but it seems to have no impact, I'm getting the same error.Someone has a hint?