-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RazorEngine.Core.NetCore in a Linux docker container: 'COM Interop is not supported on this platform.' #65
base: master
Are you sure you want to change the base?
Conversation
… both all .net frameworks inkl. DotNet Core
The 'COM Interop is not supported on this platform' is an error with the RazorEngine not supporting dotnetcore. This PR contains a potential fix to it fouadmess/RazorEngine#3. I've managed to get Extent working with dotnetcore in a container with your PR's source code and the source code of the RazorEngine PR added to my project as direct project references. My copy+pasted source code structure is: My project refers to your project, and I've updated your project to reference the RazorEngine patch instead of the nuget reference. |
@samuelkdavis, your OS inside docker was Linux? I did the same steps (FixedRazorEngine and added reference for it inside ExtentReportsCore), my application is running without any errors, but the file should be generated by ExtentReportsCore doesn't exist inside Results folder(Results folder was created). If I'm running it without docker, the file is generated without any problems. Thank you in advance! |
@RalucaGabrielaLupse yep - linux docker container. If you aren't getting the COM Interop error, the file is likely being generated, but not where you're expecting it. Try fiddling with the paths. I'm using the built-in temp path, which I believe in most linux distros is /tmp
|
Hi, @samuelkdavis Yes, you've been right.... the file has been saved to a different location than expected. Thank you for your response, @samuelkdavis! |
My platform on mac |
@namilkimfree awesome find! This nuget package didn't exist when I manually cloned the repo. I'm hoping these dependencies on PRs don't lock us into dotnetcore 2.2 forever. Having the nuget package at least seems to remove 1 layer of jankiness from our solution. |
Running my selenium code on Linux docker container is giving me this error while generating report:
'COM Interop is not supported on this platform.'