Great idea. I will try
Reference Rewriter found some errors while running with command --target=“Temp\StagingArea\CotcSdk.dll” --additionalreferences=“Temp\StagingArea”,“C:\Program Files (x86)\Windows Kits\10\UnionMetadata\Facade”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Calls.CallsVoipContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.Printers.PrintersContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Foundation.FoundationContract\2.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Foundation.UniversalApiContract\2.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Graphics.Printing3D.Printing3DContract\2.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Networking.Connectivity.WwanContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Activation.ActivatedEventsContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Activation.ActivationCameraSettingsContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Activation.ContactActivatedEventsContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Activation.WebUISearchActivatedEventsContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Background.BackgroundAlarmApplicationContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Calls.Background.CallsBackgroundContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Calls.LockScreenCallContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Resources.Management.ResourceIndexerContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Search.Core.SearchCoreContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Search.SearchContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Wallet.WalletContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.Custom.CustomDeviceContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.Portable.PortableDeviceContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.Printers.Extensions.ExtensionsContract\2.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.Scanners.ScannerDeviceContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.Sms.LegacySmsApiContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Gaming.Preview.GamesEnumerationContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Globalization.GlobalizationJapanesePhoneticAnalyzerContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Management.Deployment.Preview.DeploymentPreviewContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Management.Orchestration.OrchestrationContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Management.Workplace.WorkplaceSettingsContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Media.Capture.AppCaptureContract\2.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Media.Capture.CameraCaptureUIContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Media.Devices.CallControlContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Media.MediaControlContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Media.Playlists.PlaylistsContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Media.Protection.ProtectionRenewalContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Networking.NetworkOperators.LegacyNetworkOperatorsContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Networking.Sockets.ControlChannelTriggerContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Security.EnterpriseData.EnterpriseDataContract\2.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Security.ExchangeActiveSyncProvisioning.EasContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Services.Maps.GuidanceContract\2.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Services.Maps.LocalSearchContract\2.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.System.Profile.SystemManufacturers.SystemManufacturersContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.System.Profile.ProfileHardwareTokenContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.System.Profile.ProfileRetailInfoContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.System.UserProfile.UserProfileContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.System.UserProfile.UserProfileLockScreenContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.UI.ApplicationSettings.ApplicationsSettingsContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.UI.Core.AnimationMetrics.AnimationMetricsContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.UI.Core.CoreWindowDialogsContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.UI.Xaml.Hosting.HostingContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Web.Http.Diagnostics.HttpDiagnosticsContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.DevicesLowLevelContract\2.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.System.SystemManagementContract\2.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.Calls.CallsPhoneContract\2.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.SocialInfo.SocialInfoContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.SmartCards.SmartCardBackgroundTriggerContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Devices.SmartCards.SmartCardEmulatorContract\2.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Embedded.DeviceLockdown.DeviceLockdownContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Networking.NetworkOperators.NetworkOperatorsFdnContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Phone.PhoneContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.Phone.StartScreen.DualSimTileContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.UI.WebUI.Core.WebUICommandBarContract\1.0.0.0”,“C:\Program Files (x86)\Windows Kits\10\References\Windows.System.Profile.ProfileSharedModeContract\1.0.0.0” --platform=“C:\Program Files (x86)\Windows Kits\10\UnionMetadata\Facade\Windows.winmd” --support=“Temp\StagingArea\WinRTLegacy.dll” --supportpartialns=Unity.Partial --system=System --dbg=pdb --lock=UWP\project.lock.json --alt=System.Xml.Serialization;System.Collections,System.Collections.NonGeneric;System.Reflection,System.Reflection.TypeExtensions;System.IO,System.IO.FileSystem;System.Net,System.Net.Primitives;System.Net.Sockets,System.Net.Primitives;System.Xml,System.Xml.XmlDocument --ignore=System.IConvertible,mscorlib.
Error: type System.Collections.Specialized.IOrderedDictionary
doesn’t exist in target framework. It is referenced from CotcSdk.dll at LitJson.IJsonWrapper.
Error: type System.Collections.Specialized.IOrderedDictionary
doesn’t exist in target framework. It is referenced from CotcSdk.dll at LitJson.JsonData.
Error: type System.Collections.Specialized.IOrderedDictionary
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Object LitJson.JsonData::System.Collections.Specialized.IOrderedDictionary.get_Item(System.Int32).
Error: method System.Object System.Collections.Specialized.IOrderedDictionary::get_Item(System.Int32)
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Object LitJson.JsonData::System.Collections.Specialized.IOrderedDictionary.get_Item(System.Int32).
Error: type System.Collections.Specialized.IOrderedDictionary
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Void LitJson.JsonData::System.Collections.Specialized.IOrderedDictionary.set_Item(System.Int32,System.Object).
Error: method System.Void System.Collections.Specialized.IOrderedDictionary::set_Item(System.Int32,System.Object)
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Void LitJson.JsonData::System.Collections.Specialized.IOrderedDictionary.set_Item(System.Int32,System.Object).
Error: type System.Collections.Specialized.IOrderedDictionary
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Collections.IDictionaryEnumerator LitJson.JsonData::System.Collections.IDictionary.GetEnumerator().
Error: method System.Collections.IDictionaryEnumerator System.Collections.Specialized.IOrderedDictionary::GetEnumerator()
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Collections.IDictionaryEnumerator LitJson.JsonData::System.Collections.IDictionary.GetEnumerator().
Error: type System.Collections.Specialized.IOrderedDictionary
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Collections.IDictionaryEnumerator LitJson.JsonData::System.Collections.Specialized.IOrderedDictionary.GetEnumerator().
Error: method System.Collections.IDictionaryEnumerator System.Collections.Specialized.IOrderedDictionary::GetEnumerator()
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Collections.IDictionaryEnumerator LitJson.JsonData::System.Collections.Specialized.IOrderedDictionary.GetEnumerator().
Error: type System.Collections.Specialized.IOrderedDictionary
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Void LitJson.JsonData::System.Collections.Specialized.IOrderedDictionary.Insert(System.Int32,System.Object,System.Object).
Error: method System.Void System.Collections.Specialized.IOrderedDictionary::Insert(System.Int32,System.Object,System.Object)
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Void LitJson.JsonData::System.Collections.Specialized.IOrderedDictionary.Insert(System.Int32,System.Object,System.Object).
Error: type System.Collections.Specialized.IOrderedDictionary
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Void LitJson.JsonData::System.Collections.Specialized.IOrderedDictionary.RemoveAt(System.Int32).
Error: method System.Void System.Collections.Specialized.IOrderedDictionary::RemoveAt(System.Int32)
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Void LitJson.JsonData::System.Collections.Specialized.IOrderedDictionary.RemoveAt(System.Int32).
Error: method System.Type System.Type::GetInterface(System.String)
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Void LitJson.JsonMapper::AddArrayMetadata(System.Type).
Error: method System.Type System.Type::GetInterface(System.String)
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Void LitJson.JsonMapper::AddObjectMetadata(System.Type).
Error: type System.Threading.ThreadStart
doesn’t exist in target framework. It is referenced from CotcSdk.dll at CotcSdk.DomainEventLoop CotcSdk.DomainEventLoop::Start().
Error: method System.Void System.Threading.ThreadStart::.ctor(System.Object,System.IntPtr)
doesn’t exist in target framework. It is referenced from CotcSdk.dll at CotcSdk.DomainEventLoop CotcSdk.DomainEventLoop::Start().
Error: type System.Threading.ThreadStart
doesn’t exist in target framework. It is referenced from CotcSdk.dll at CotcSdk.DomainEventLoop CotcSdk.DomainEventLoop::Start().
Error: method System.Void System.Threading.Thread::.ctor(System.Threading.ThreadStart)
doesn’t exist in target framework. It is referenced from CotcSdk.dll at CotcSdk.DomainEventLoop CotcSdk.DomainEventLoop::Start().
Error: method System.Void System.Threading.Thread::Start()
doesn’t exist in target framework. It is referenced from CotcSdk.dll at CotcSdk.DomainEventLoop CotcSdk.DomainEventLoop::Start().
Error: method System.Void System.Threading.Thread::Sleep(System.Int32)
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Void CotcSdk.DomainEventLoop::Run().
Error: method System.Text.Encoding System.Text.Encoding::get_Default()
doesn’t exist in target framework. It is referenced from CotcSdk.dll at CotcSdk.HttpRequest CotcSdk.Gamer::MakeHttpRequest(System.String).
Error: method System.Void System.Threading.Thread::Sleep(System.Int32)
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Void CotcSdk.HttpClient::FinishWithRequest(CotcSdk.HttpClient/WebRequest,CotcSdk.HttpResponse).
Error: type System.Threading.WaitOrTimerCallback
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Void CotcSdk.HttpClient::processRequest(CotcSdk.HttpRequest,System.Object).
Error: method System.Void System.Threading.WaitOrTimerCallback::.ctor(System.Object,System.IntPtr)
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Void CotcSdk.HttpClient::processRequest(CotcSdk.HttpRequest,System.Object).
Error: type System.Threading.ThreadPool
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Void CotcSdk.HttpClient::processRequest(CotcSdk.HttpRequest,System.Object).
Error: type System.Threading.RegisteredWaitHandle
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Void CotcSdk.HttpClient::processRequest(CotcSdk.HttpRequest,System.Object).
Error: type System.Threading.WaitOrTimerCallback
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Void CotcSdk.HttpClient::processRequest(CotcSdk.HttpRequest,System.Object).
Error: method System.Threading.RegisteredWaitHandle System.Threading.ThreadPool::RegisterWaitForSingleObject(System.Threading.WaitHandle,System.Threading.WaitOrTimerCallback,System.Object,System.Int32,System.Boolean)
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Void CotcSdk.HttpClient::processRequest(CotcSdk.HttpRequest,System.Object).
Error: method System.Void UnityEngine.Experimental.Networking.UnityWebRequest::.ctor(System.String)
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Void CotcSdk.UnityHttpClientV2/UnityRequest::.ctor(CotcSdk.UnityHttpClientV2,System.String,CotcSdk.HttpRequest,System.Object,System.Int32).
Error: method System.Void UnityEngine.Experimental.Networking.UnityWebRequest::set_method(System.String)
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Void CotcSdk.UnityHttpClientV2/UnityRequest::.ctor(CotcSdk.UnityHttpClientV2,System.String,CotcSdk.HttpRequest,System.Object,System.Int32).
Error: method System.Void UnityEngine.Experimental.Networking.UnityWebRequest::SetRequestHeader(System.String,System.String)
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Void CotcSdk.UnityHttpClientV2/UnityRequest::.ctor(CotcSdk.UnityHttpClientV2,System.String,CotcSdk.HttpRequest,System.Object,System.Int32).
Error: method System.Void UnityEngine.Experimental.Networking.UploadHandlerRaw::.ctor(System.Byte[ ])
doesn’t exist in target framework. It is referenced from CotcSdk.dll at System.Void CotcSdk.UnityHttpClientV2/UnityRequest::.ctor(CotcSdk.UnityHttpClientV2,System.String,CotcSdk.HttpRequest,System.Object,System.Int32).
Error: method `System.Void UnityEngine.Experimental.Networking.UnityWebRequest::set_uploadHandler(UnityEngine.Experimental.Networking.Up