SystemInfo.EntryAssemblyLocation writable to adjust location for config-files in unit test projects#91
Conversation
…ig-files in unit test projects
fluffynuts
left a comment
There was a problem hiding this comment.
looks fine to me, tho I can see an existing issue in the default block - Assembly.GetEntryAssembly() can return null; I'll merge and fix in master
|
Thank you very much. |
|
I'm not sure when this will land in a release; I'd like to work around an issue introduced recently which fixes something for pqsql but potentially breaks something for mssql (tho proper config of the latter works around it). Perhaps with that - but I need to set up a proper test scenario first. |
|
No problem. In the meantime I can release a version to our internal Nuget repo. |
|
Just chiming in to say that this also manifests when hosting .NET in C/C++ (via nethost/fxhost) through my .NET loader (https://github.com/smx-smx/EzDotnet) This dirty hack works around it, but it's not portable and it can fail when debugging: https://gist.github.com/smx-smx/dc548226bcae16b57f9e6a44ca9d5f99 So i'm also looking forward to the next release 🙂 |
We would like to make SystemInfo.EntryAssemblyLocation writable so that we can adjust its value for unit test projects.
.net core sets "testhost.dll" as EntryAssembly.
@fluffynuts Could you please review?