The calling thread must be STA
Running my unit tests with R# 4.0.741.31 i do get a lot of System.InvalidOperationException: The calling thread must be STA, because many UI components require this.
A bug, or should I just configure the ApartmentState in a new way?
I don't get this problem with R# 3.1 and I have a UnitTests.config in my output folder containing:
Please sign in to leave a comment.
Hello Björn,
Looks like a bug, we didn't change this part of ReSharper a lot, yet.
Sincerely,
Ilya Ryzhenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
BC> Running my unit tests with R# 4.0.741.31 i do get a lot of
BC> System.InvalidOperationException: The calling thread must be STA,
BC> because many UI components require this.
BC>
BC> A bug, or should I just configure the ApartmentState in a new way?
BC>
BC> I don't get this problem with R# 3.1 and I have a UnitTests.config
BC> in my output folder containing:
BC> BC> BC> BC> BC>