WinFormsComInterop icon indicating copy to clipboard operation
WinFormsComInterop copied to clipboard

Failed to load assembly 'Microsoft.Web.WebView2.WinForms.WebView2

Open zanek opened this issue 1 year ago • 0 comments

I followed the instructions in the README but the published Native AOT fails for WebView2. I installed it via Nuget, why cant it find it when Publishing ? Works without publishing fine


Failed to load assembly 'Microsoft.Web.WebView2.WinForms.WebView2' 1>Internal.TypeSystem.TypeSystemException+FileNotFoundException: Failed to load assembly 'Microsoft.Web.WebView2.WinForms.WebView2' 1> at Internal.TypeSystem.ThrowHelper.ThrowFileNotFoundException(ExceptionStringID, String) in //src/coreclr/tools/Common/TypeSystem/Common/ThrowHelper.cs:line 35 1> at ILCompiler.CompilerTypeSystemContext.GetModuleForSimpleName(String, Boolean ) in //src/coreclr/tools/Common/Compiler/CompilerTypeSystemContext.cs:line 121 1> at ILCompiler.RdXmlRootProvider.ProcessAssemblyDirective(IRootingServiceProvider, XElement) in //src/coreclr/tools/aot/ILCompiler/RdXmlRootProvider.cs:line 62 1> at ILCompiler.RdXmlRootProvider.AddCompilationRoots(IRootingServiceProvider) in //src/coreclr/tools/aot/ILCompiler/RdXmlRootProvider.cs:line 47 1> at ILCompiler.Compilation..ctor(DependencyAnalyzerBase1, NodeFactory, IEnumerable1, ILProvider, DebugInformationProvider, DevirtualizationManager, IInliningPolicy, Logger) in //src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/Compilation.cs:line 64 1> at ILCompiler.ILScannerBuilder.ToILScanner() in //src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/ILScannerBuilder.cs:line 83 1> at ILCompiler.Program.<Run>g__RunScanner|73_4(<>c__DisplayClass73_0&) in //src/coreclr/tools/aot/ILCompiler/Program.cs:line 884 1> at ILCompiler.Program.Run(String[]) in //src/coreclr/tools/aot/ILCompiler/Program.cs:line 866 1> at ILCompiler.Program.Main(String[]) in /_/src/coreclr/tools/aot/ILCompiler/Program.cs:line 1150

zanek avatar Dec 27 '23 22:12 zanek