Open wz172 opened 2 years ago
I had the same error message. I couldn't figure it out until I tried adding <WasmBuildNative>true</WasmBuildNative>
which gave me an error message that was more helpful - I had not installed the 'wasm-tools' workload.
I don't really know what "WasmBuildNative" does as I can't find any docs about it, but it seems to be needed for me.
I then ran dotnet workload install wasm-tools-net6
and dotnet workload install wasm-tools
and now it is working just like in Jeremy's YouTube video. See the Wasm Tools docs for more details.
I ended up with this csproj:
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<WasmBuildNative>true</WasmBuildNative>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.3" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.3" PrivateAssets="all" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite.Core" Version="7.0.0-preview.2.22153.1" />
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3" Version="2.1.0-pre20220318192836" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MvpSummit.Domain\MvpSummit.Domain.csproj" />
<ProjectReference Include="..\MvpSummitUi\MvpSummitUi.csproj" />
</ItemGroup>
</Project>
When I operate 【MvpSummitWasm】 Into the sqlite。
When I run the project, I get the following error.I know this is the webAssembly generation that is not included in SQLite.But I have followed the documentation to bring Nuget into the project
But I have a caveat when I build.
Do not see and video your operation [link in ECMM..
What should I do ...... Thank you very much