Only 3 files started: CoreRun.exe, Coreclr.dll, mscorlib.dll, HelloWorld.exe
Run command: Corerun HelloWorld.exe
Error:
Assert failure (PID 9672 [0x000025c8], thread:16280 [0x3f98]): 0! + 0x0 (0x00000000 ' 00000000) file:e:\dev\github\dotnet\coreclr\src\utilcode\ccomprc.cpp, line:814 image:e:\dev\ github\dotnet\coreclrhelloworld\runtime_windows\corerun.exe**** MessageBox invoked, title ' Corerun.exe-assert Failure (PID 9672, Thread 16280/3f98) ' * * * * * 0! + 0x0 (0x00000000 ' 00000000) e:\dev\github\dotnet\coreclr\src\utilcode\ccomprc.cpp, line:814
Start Visual Studio for debugging, and find that the Mscorrc.debug.dll file is missing.
this0x000007fdccd146b0 {coreclr.dll! CCOMPRC Ccomprc::m_defaultresourcedll} {m_primary={m_langid=0x000007fdccd146b0 L "en-US" ...} CCOMPRC *m_primary{m_langid=0x000007fdccd146b0 L "en-US" m_hinst=0x0000000000000000 m_fmissing=1} cculturedhinstancem_phash0x0000000000000000 cculturedhinstance *m_nhashsize0intm_csmap0x000000a31a9cb933void *m_ presourcefile0x000007fdcc9cd200 L "mscorrc.debug.dll" Const wchar_t *M_ Fpgetthreaduicultureid0x000007fdcbde5ac8 {coreclr.dll! Getthreaduicultureid (wchar_t[85] *)}int (wchar_t[85] *) *m_fpgetthreaduiculturenames0x000007fdcbde5d68 {Coreclr.dll ! Getthreaduiculturenames (Stringarraylist *)}hresult (stringarraylist *) *
Copy the Mscorrc.debug.dll, continue running, the following error occurred:
Unhandled Exception:System.IO.FileNotFoundException:Could not load file or assembly ' System.Console, version= 999.999.999.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a ' or one of its dependencies. The system cannot find the file specified. At Program.main (string[] args)
You need to system.console the assembly and copy it from the Corefx compiled assembly.
Continue to run, and error, this time is required System.Runtime.dll, from the Corefx Packages folder (NuGet packages) copied over (note: lib\net45 subfolder)
The next step is to System.IO.dll and copy from the Corefx Packages folder.
The next step is to copy 3 assemblies from the Corefx Packages folder: System.Threading.dll, System.IO.FileSystem.Primitives.dll, System.Diagnostics.Debug.dll.
At this point, there are 11 files in the current folder:
Coreclr.dllCoreRun.exeHelloWorld.exemscorlib.dllmscorrc.debug.dllSystem.Console.dllSystem.Diagnostics.Debug.dllSystem.IO . DllSystem.IO.FileSystem.Primitives.dllSystem.Runtime.dllSystem.Threading.dll
To continue running, a new error has occurred:
Unhandled Exception:System.IO.FileNotFoundException:Could not load file or assembly ' System, version=4.0.0.0, culture=n Eutral, publickeytoken=b77a5c561934e089 ' or one of its dependencies. The system cannot find the file specified. At System.ConsolePal.WindowsConsoleStream. ctor (IntPtr handle, FileAccess access) at System.ConsolePal.GetStandardFile (IntPtr handle, FileAccess access) At System.ConsolePal.OpenStandardOutput () at System.Console.OpenStandardOutput () at System.Console. <>c__displayclass3.<get_out>b__4 () at System.console.ensureinitialized[t] (T& field, Func ' 1 initializer) at System.Console.get_Out () @ System.Console.WriteLine (String value) at Program.drawwindows () at Program.main (string[] args)
The system assembly is mscorlib.dll, obviously has this file, but said cannot find.
Later replaced by Corefx in the Packages\microsoft.dotnet.coreclr.1.0.3-prerelease\lib\aspnetcore50 in the Mscrolib.dll, it is good this mistake.
But run Corerun HelloWorld.exe without any output, replace with corerun-v HelloWorld.exe The following error occurred:
Hostlog:finding getclrruntimehost (...) Hostlog:calling getclrruntimehost (...) Hostlog:setting ICLRRuntimeHost2 startup flagshostlog:starting iclrruntimehost2hostlog:failed to start CoreCLR. Errorcode:0x80004005/e_failhostlog:execution failed
Step by step here, no solution has been found for the time being.
Windows Step by Step Corerun