Skip to content

Instantly share code, notes, and snippets.

#if ENABLE_NETCORE
MonoReflectionAssemblyHandle
ves_icall_System_Reflection_Assembly_Load (MonoAssemblyName *name, MonoStackCrawlMark *stack_mark, gpointer load_Context, MonoError *error)
{
error_init (error);
MonoDomain *domain = mono_domain_get ();
MonoAssembly *ass;
MonoAssemblyByNameRequest req;
MonoAssemblyContextKind asmctx;
MonoImageOpenStatus status = MONO_IMAGE_OK;
#if ENABLE_NETCORE
MonoReflectionAssemblyHandle
ves_icall_System_Reflection_Assembly_Load (MonoAssemblyName *name, MonoStackCrawlMark *stack_mark, gpointer load_Context, MonoError *error)
{
error_init (error);
MonoDomain *domain = mono_domain_get ();
MonoAssembly *ass;
MonoAssemblyByNameRequest req;
MonoAssemblyContextKind asmctx;
MonoImageOpenStatus status = MONO_IMAGE_OK;
#if ENABLE_NETCORE
MonoReflectionAssemblyHandle
ves_icall_System_Reflection_Assembly_Load (MonoAssemblyName *name, MonoStackCrawlMark *stack_mark, gpointer load_Context, MonoError *error)
{
error_init (error);
MonoReflectionAssemblyHandle result = MONO_HANDLE_CAST (MonoReflectionAssembly, NULL_HANDLE);
g_error ("not implemented");
return result;
Tracing enabled @ Fri Feb 15 14:30:32 2019 UTC
--- Invoked dotnet [version: 3.0.0-preview-27408-5, commit hash: 394f364b91cdc2c82641855896e8fc7250621389] main = {
./dotnet
--fx-version
3.0.0-preview-27408-5
HelloWorld/bin/Debug/netcoreapp3.0/HelloWorld.dll
}
Reading fx resolver directory=[/Users/marek/git/my/trees/build-fixes/netcore/sample/host/fxr]
Considering fxr version=[3.0.0-preview-27408-5]...
Considering fxr version=[3.0.0-preview-27122-01]...
/external/corert/src/System.Private.CoreLib/src/System/Reflection/CustomAttributeNamedArgument.cs: 125
/external/corert/src/System.Private.CoreLib/src/System/Reflection/CustomAttributeTypedArgument.cs: 105
/external/corert/src/System.Private.CoreLib/src/System/Reflection/MissingMetadataException.cs: 20
/mcs/build/common/SR.cs: 58
/mcs/class/corlib/corefx/RuntimeImports.cs: 62
/mcs/class/corlib/corert/RuntimeAugments.cs: 22
/mcs/class/corlib/Mono/RuntimeHandles.cs: 274
/mcs/class/corlib/Mono/RuntimeMarshal.cs: 78
/mcs/class/corlib/Mono/SafeGPtrArrayHandle.cs: 38
(lldb) bt all
* thread #1, name = 'tid_307', queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x00007fff7dc4c1b6 libsystem_kernel.dylib`semaphore_wait_trap + 10
frame #1: 0x00000001042e1318 mono`mono_os_sem_timedwait [inlined] mono_os_sem_wait at mono-os-semaphore.h:90 [opt]
frame #2: 0x00000001042e1303 mono`mono_os_sem_timedwait(sem=0x000000010445955c, timeout_ms=<unavailable>, flags=MONO_SEM_FLAGS_NONE) at mono-os-semaphore.h:109 [opt]
frame #3: 0x00000001042e0c65 mono`mono_threads_wait_pending_operations at mono-threads.c:311 [opt]
frame #4: 0x00000001042e2c39 mono`mono_thread_info_safe_suspend_and_run [inlined] suspend_sync(tid=0x0000700008bb9000, interrupt_kernel=1) at mono-threads.c:1222 [opt]
frame #5: 0x00000001042e2b63 mono`mono_thread_info_safe_suspend_and_run [inlined] suspend_sync_nolock(id=0x0000700008bb9000, interrupt_kernel=1) at mono-threads.c:1285 [opt]
frame #6: 0x00000001042e2b63 mono`mono_thread_info_safe_suspend_and_run(id=0x0000700008bb9
ApiCompat Warning: 0 : Found 'netstandard' with PublicKeyToken 'cc7b13ffcd2ddd51' instead of '31bf3856ad364e35'.
Compat issues with assembly netstandard:
MembersMustExist : Member 'System.GC.GetAllocatedBytesForCurrentThread()' does not exist in the implementation but it does exist in the contract.
CannotRemoveAttribute : Attribute 'System.Runtime.CompilerServices.IsByRefLikeAttribute' exists on 'System.RuntimeArgumentHandle' in the contract but not the implementation.
TypeCannotChangeClassification : Type 'System.RuntimeArgumentHandle' is a 'struct' in the implementation but is a 'ref struct' in the contract.
CannotRemoveAttribute : Attribute 'System.ComponentModel.EditorBrowsableAttribute' exists on 'System.StringNormalizationExtensions' in the contract but not the implementation.
CannotRemoveAttribute : Attribute 'System.Runtime.CompilerServices.IsByRefLikeAttribute' exists on 'System.TypedReference' in the contract but not the implementation.
TypeCannotChangeClassification : Type 'System.TypedReference' i
[mono] ~/git/my/trees/wasm-build/sdks/wasm$ make package V=1
source /Users/marek/git/my/trees/wasm-build/sdks/builds/toolchains/emsdk/emsdk_env.sh && emcc -g4 -Os -s WASM=1 -s ALLOW_MEMORY_GROWTH=1 -s BINARYEN=1 -s "BINARYEN_TRAP_MODE='clamp'" -s ALIASING_FUNCTION_POINTERS=0 -s ASSERTIONS=1 --js-library library_mono.js --js-library binding_support.js --js-library dotnet_support.js driver.o /Users/marek/git/my/trees/wasm-build/sdks/out/wasm-runtime-release/lib/libmono-ee-interp.a /Users/marek/git/my/trees/wasm-build/sdks/out/wasm-runtime-release/lib/libmonosgen-2.0.a /Users/marek/git/my/trees/wasm-build/sdks/out/wasm-runtime-release/lib/libmono-ilgen.a /Users/marek/git/my/trees/wasm-build/sdks/out/wasm-runtime-release/lib/libmono-icall-table.a -o debug/mono.js -s NO_EXIT_RUNTIME=1 -s "EXTRA_EXPORTED_RUNTIME_METHODS=['ccall', 'FS_createPath', 'FS_createDataFile', 'cwrap', 'setValue', 'getValue', 'UTF8ToString']"
Adding directories to PATH:
PATH += /Users/marek/git/my/trees/wasm-build/sdks/builds/toolchains/emsd
#This is a sample file of all options that can be used by a Make.config file.
#Disables building Android
DISABLE_ANDROID = 1
#Disables building iOS
DISABLE_IOS = 1
#Disables build WebAssembly
#DISABLE_WASM = 1
using System;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
namespace HttpRepros {
class MainClass {
public static void Main (string [] args)
{