Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zanek opened this issue Dec 27, 2023 · 0 comments
Open

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

zanek opened this issue Dec 27, 2023 · 0 comments

Comments

@zanek
Copy link

zanek commented Dec 27, 2023

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.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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant