I tried the example in this link: (Target .NET 5) https://docs.microsoft.com/en-us/dotnet/api/system.codedom.compiler.compilerparameters?view=net-5.0
but it throws