unoplatform / Uno.Wasm.Bootstrap

A simple nuget package to run C# code in a WASM-compatible browser
Other
364 stars 57 forks source link

There was an error in the build when referencing the Oracle.ManagedDataAccess.Core package #822

Closed Daoting closed 7 months ago

Daoting commented 7 months ago

There was an error in the build when referencing the Oracle.ManagedDataAccess.Core package.

2>------ 已启动全部重新生成: 项目: UnoApp1.Wasm, 配置: Debug Any CPU ------
2>C:\Users\Daoting\.nuget\packages\uno.wasm.bootstrap\8.0.8\build\Uno.Wasm.Bootstrap.targets(209,3): error : [00:00:00.9296836] Unhandled exception. System.Exception: Could not resolve Kerberos.NET
2>C:\Users\Daoting\.nuget\packages\uno.wasm.bootstrap\8.0.8\build\Uno.Wasm.Bootstrap.targets(209,3): error : [00:00:00.9297845]    at Driver.Resolve(String asm_name, AssemblyKind& kind) in /_/src/Uno.Wasm.Packager/packager.cs:line 247
2>C:\Users\Daoting\.nuget\packages\uno.wasm.bootstrap\8.0.8\build\Uno.Wasm.Bootstrap.targets(209,3): error : [00:00:00.9297980]    at Driver.Import(String ra, AssemblyKind kind) in /_/src/Uno.Wasm.Packager/packager.cs:line 318
2>C:\Users\Daoting\.nuget\packages\uno.wasm.bootstrap\8.0.8\build\Uno.Wasm.Bootstrap.targets(209,3): error : [00:00:00.9298003]    at Driver.Import(String ra, AssemblyKind kind) in /_/src/Uno.Wasm.Packager/packager.cs:line 318
2>C:\Users\Daoting\.nuget\packages\uno.wasm.bootstrap\8.0.8\build\Uno.Wasm.Bootstrap.targets(209,3): error : [00:00:00.9298021]    at Driver.Import(String ra, AssemblyKind kind) in /_/src/Uno.Wasm.Packager/packager.cs:line 318
2>C:\Users\Daoting\.nuget\packages\uno.wasm.bootstrap\8.0.8\build\Uno.Wasm.Bootstrap.targets(209,3): error : [00:00:00.9298039]    at Driver.Run(String[] args) in /_/src/Uno.Wasm.Packager/packager.cs:line 785
2>C:\Users\Daoting\.nuget\packages\uno.wasm.bootstrap\8.0.8\build\Uno.Wasm.Bootstrap.targets(209,3): error : [00:00:00.9298391]    at Driver.Main(String[] args) in /_/src/Uno.Wasm.Packager/packager.cs:line 412
2>C:\Users\Daoting\.nuget\packages\uno.wasm.bootstrap\8.0.8\build\Uno.Wasm.Bootstrap.targets(209,3): error : System.Exception: Failed to generate wasm layout (More details are available in diagnostics mode or using the MSBuild /bl switch)
2>C:\Users\Daoting\.nuget\packages\uno.wasm.bootstrap\8.0.8\build\Uno.Wasm.Bootstrap.targets(209,3): error :    在 Uno.Wasm.Bootstrap.ShellTask_vd31bb82a6d9e906af505859315106b96c4a1a597.RunPackager() 位置 /_/src/Uno.Wasm.Bootstrap/ShellTask.cs:行号 768
2>C:\Users\Daoting\.nuget\packages\uno.wasm.bootstrap\8.0.8\build\Uno.Wasm.Bootstrap.targets(209,3): error :    在 Uno.Wasm.Bootstrap.ShellTask_vd31bb82a6d9e906af505859315106b96c4a1a597.Execute() 位置 /_/src/Uno.Wasm.Bootstrap/ShellTask.cs:行号 271

The Oracle.ManagedDataAccess.Core package is only available on GTK or WPF platforms. Both they and wasm are .NET platforms, so they are indistinguishable.

There is no way to implement a common base library now.

This is an empty project created with the latest template. This bug can be reproduced. Thanks. UnoWasm.zip