sdk
sdk copied to clipboard
`Failed to bind to coreclr` dotnet run failure on Windows 7 and Windows 2008 R2
Steps to reproduce
dotnet run standalone app on Windows 7 or Windows 2008 R2
Expected behavior
Application runs
Actual behavior
Running:
program: dotnet
commandline: run -p ../../tools/Microsoft.AspNetCore.Server.Kestrel.GeneratedCode Http/FrameHeaders.Generated.cs Http/Frame.Generated.cs
workingdir: D:\b\work\35116a8defcd3a21\Universe\KestrelHttpServer\src/Microsoft.AspNetCore.Server.Kestrel
Compiling Microsoft.AspNetCore.Server.Kestrel.GeneratedCode for .NETStandardApp,Version=v1.5
Compilation succeeded.
0 Warning(s)
0 Error(s)
Time elapsed 00:00:06.6573303
Failed to load the dll from C:\Users\asplab\.nuget\packages\runtime.win7-x64.Microsoft.NETCore.Runtime.CoreCLR\1.0.2-rc2-23931\runtimes\win7-x64\native\coreclr.dll, HRESULT: 0x8007007E
Failed to bind to coreclr
Environment data
dotnet --info output:
1.0.0-beta-002202
@piotrpMSFT @Petermarcu @davidfowl @muratg @anurse @schellap
On min OSes coreclr needs api-* dlls to be sxs coreclr.dll or windows PATH for LoadLibraryExW is setup correctly to point to the directories containing these api forwarder DLLs. Since dotnet build runs against the nuget cache, these api-forwarders are part of another directory. Though a bit ugly, it seems the fix would be to expand the DLL search paths to include the nuget cache native directories to dll search path.