Description
I am not sure if this issue belongs in this repo but as dotnet/core-setup#5185 was tracked here i guessed this would be the correct repo. Please guide me to the correct repo if this is the wrong one.
Steps to reproduce
- Clone https://github.com/batzen/NativeToManagedTest
- Compile
NativeToManagedTest.sln
(either using VS 2019 ordotnet build NativeToManagedTest.sln
) - Run "WPFTestApp.exe" from "bin\Debug\x64\netcoreapp3.0"
- Click button labeled "Call managed native"
Expected behavior
App should not crash and not show two error message boxes, but show two message boxes from ManagedMethod
in class ManagedClass
from assembly ManagedWithDllExport
.
If working correctly the message boxes should contain the same info about the current runtime etc. as present in the main window.
If you run the net462 version of WPFTestApp everything works as expected.
Actual behavior
App crashes or shows two error message boxes.
Environment data
TargetFrameworkAttribute.FrameworkName: .NETCoreApp,Version=v3.0
TargetFrameworkAttribute.FrameworkDisplayName:
Environment.Version: 3.0.0
RuntimeInformation.FrameworkDescription: .NET Core 3.0.0-preview5-27617-04
CoreCLR Build: 3.0.0-preview5.27617.71
CoreCLR Hash: df2f4c4
CoreFX Build: 3.0.0-preview5.19216.14
CoreFX Hash: f9f88bd
OS Version
Environment.OSVersion: Microsoft Windows NT 6.2.9200.0
RuntimeInformation.OSDescription: Microsoft Windows 10.0.17763
Bitness
RuntimeInformation.OSArchitecture: X64
RuntimeInformation.ProcessArchitecture: X64
Environment.Is64BitOperatingSystem: True
Environment.Is64BitProcess: True