You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The app.config approaches described in README.md don't work when testing with .NET Framework. While dotnet test --framework netcoreapp2.0 correctly uses settings from {TestAssemblyName}.runtimeconfig.json, the same is not true of dotnet test --framework net462 and settings from {TestAssemblyName}.dll.config.
I ended up changing $env:UserProfile\.dotnet\x64\sdk\2.1.0-preview1-007042\TestHost\testhost.x86.exe.config to add the setting and get it recognized in full-framework test runs. Feels like an ugly hack…
I suggest an update to README.md. Might also be worth checking around for other approaches.
The text was updated successfully, but these errors were encountered:
The
app.config
approaches described in README.md don't work when testing with .NET Framework. Whiledotnet test --framework netcoreapp2.0
correctly uses settings from{TestAssemblyName}.runtimeconfig.json
, the same is not true ofdotnet test --framework net462
and settings from{TestAssemblyName}.dll.config
.I ended up changing
$env:UserProfile\.dotnet\x64\sdk\2.1.0-preview1-007042\TestHost\testhost.x86.exe.config
to add the setting and get it recognized in full-framework test runs. Feels like an ugly hack…I suggest an update to README.md. Might also be worth checking around for other approaches.
The text was updated successfully, but these errors were encountered: