-
-
Notifications
You must be signed in to change notification settings - Fork 39
Description
Copying the full repo and trying to build the BlazorHybrid demo fails with 219 errors. Well happens.
Isolating only the BlazorHybrid demo, removing reference to the project, and adding Nuget WinFormsComInterop (0.4.3) it is finally possible to build. A little bit broken CSS but not a big deal. Commented out /fetchdata is on purpose, I guess, since uncommenting that will crash with the following error:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
InvalidOperationException: An invalid request URI was provided. Either the request URI must be an absolute URI or BaseAddress must be set.
But the biggest issue is that it is not possible to publish as a native AOT.
When trying to do either in Visual Studio or with the dotnet command, both fails with an error:
Failed to load type 'BlazorHybrid.Counter' from assembly 'BlazorHybrid, Version=0.4.3.0, Culture=neutral, PublicKeyToken=null'
2> Internal.TypeSystem.TypeSystemException+TypeLoadException: Failed to load type 'BlazorHybrid.Counter' from assembly 'BlazorHybrid, Version=0.4.3.0, Culture=neutral, PublicKeyToken=null'
2> at Internal.TypeSystem.ThrowHelper.ThrowTypeLoadException(ExceptionStringID, String, String) in /_/src/coreclr/tools/Common/TypeSystem/Common/ThrowHelper.cs:line 17
2> at Internal.TypeSystem.ResolutionFailure.Throw() in /_/src/coreclr/tools/Common/TypeSystem/Common/ResolutionFailure.cs:line 93
2> at Internal.TypeSystem.Ecma.EcmaModule.GetType(String, String, NotFoundBehavior) in /_/src/coreclr/tools/Common/TypeSystem/Ecma/EcmaModule.cs:line 344
2> at Internal.TypeSystem.ModuleDesc.GetType(String, String, Boolean ) in /_/src/coreclr/tools/Common/TypeSystem/Common/ModuleDesc.cs:line 35
2> at Internal.TypeSystem.CustomAttributeTypeNameParser.ResolveCustomAttributeTypeDefinitionName(String, ModuleDesc, Boolean) in /_/src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs:line 261
2> at Internal.TypeSystem.CustomAttributeTypeNameParser.GetTypeByCustomAttributeTypeName(ModuleDesc, String, Boolean , Func`4 ) in /_/src/coreclr/tools/Common/TypeSystem/Common/Utilities/CustomAttributeTypeNameParser.cs:line 76
2> at ILCompiler.RdXmlRootProvider.ProcessTypeDirective(IRootingServiceProvider, ModuleDesc, XElement) in /_/src/coreclr/tools/aot/ILCompiler/RdXmlRootProvider.cs:line 98
2> at ILCompiler.RdXmlRootProvider.ProcessAssemblyDirective(IRootingServiceProvider, XElement) in /_/src/coreclr/tools/aot/ILCompiler/RdXmlRootProvider.cs:line 83
2> at ILCompiler.RdXmlRootProvider.AddCompilationRoots(IRootingServiceProvider) in /_/src/coreclr/tools/aot/ILCompiler/RdXmlRootProvider.cs:line 47
2> at ILCompiler.Compilation..ctor(DependencyAnalyzerBase`1, NodeFactory, IEnumerable`1, ILProvider, DebugInformationProvider, DevirtualizationManager, IInliningPolicy, Logger) in /_/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/Compilation.cs:line 64
2> at ILCompiler.ILScannerBuilder.ToILScanner() in /_/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/ILScannerBuilder.cs:line 83
2> at ILCompiler.Program.<Run>g__RunScanner|73_4(<>c__DisplayClass73_0&) in /_/src/coreclr/tools/aot/ILCompiler/Program.cs:line 884
2> at ILCompiler.Program.Run(String[]) in /_/src/coreclr/tools/aot/ILCompiler/Program.cs:line 866
2> at ILCompiler.Program.Main(String[]) in /_/src/coreclr/tools/aot/ILCompiler/Program.cs:line 1150
Am I missing something? Is there some specific order of operations that has to be followed? Any help is appreciated.