-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
System.PlatformNotSupportedException running in linux-based container #510
Comments
I've looked into this a bit deeper and it seems this row in QueuedTaskScheduler fails
If I just comment this line out and rebuild it starts working. So looks like we should either have an ability to switch off this completely via configuration or just build netstandard 2.0 w/o THREAD_APARTMENTSTATE switch as quick work-around for now. |
Thanks for the report and detailed investigation. I've pushed a fix for this. We really don't need to have THREAD_APARTMENTSTATE defined for .NET Core as that for COM interop. |
@lahma Awesome this has been fixed for |
Would it be possible for you to release a new alpha to your nuget feeds with this included? There is a compounding issue here with MVC and locating local reference assemblies as is the case when compiling this from source and referencing this project dll. Your changes do fix this startup error. It is a known issue with Cannot resolve assembly paths for reference compilation libraries and it appears .NET Core 2.1 which probably will have this fix although it is not going to be release till Q1 2018. If we were able to use the feed dlls again would make everything fit back together again in a seamless way and allow us to do more testing with .NET Core 2.0 |
I'll try to get release out next weekend the latest. I'm really trying to find possible breaking changes to be put to next release so that I could call it beta in good conscience. I'm sorry for the delay but I haven't had too much spare time recently. |
Version: 3.0.0 - alpha3
I've just run console app in docker container and got the following PlatformNotSupportedException at the start . The same app works just fine under windows .NET Core 2.0.
Looks like it's one of Thread properties setter throws this (line number does not help for some reason).
Any ideas?
quartz.config
dockerfile
The text was updated successfully, but these errors were encountered: