Would it be possible to provide an overload of “RegisterAssembly” where the assembly bytes can be provided from stream?
The reason why I ask: in the .NET6 version of our app, we moved from “Microsoft.CodeDom.Providers.DotNetCompilerPlatform” to direct Roslyn usage to compile a DLL from our code. One kind of scripts in our app makes use of other scripts which are compiled on the fly to a utility DLL in the temp dir. And this DLL is added to the references of AlterNet. After taking the .NET6 version in production, the applocker in our cloud environment reports warnings whenever we access the utility dll (but it seems to work anyway).
This means that in our Roslyn wrapper, we would have to use “MetadataReference.CreateFromStream” instead of “CreateFromFile”.
Would the same be possible with “IRoslynRepository.RegisterAssembly”? I see that internally you also end with a MetadataReference, so I hope you can enhance it?