Repository navigation
Description
Current behavior
Expected behavior
How to reproduce it (as minimally and precisely as possible)
- Create blank XF app including UWP, but with projects not in the same folder as solution
- Use
dotnet new wasmxfhead - See the WASM project is properly added to the solution although in nested folder:
- Try to build the project
- Observe error
Severity Code Description Project File Line Suppression State
Error NETSDK1022 Duplicate 'EmbeddedResource' items were included. The .NET SDK includes 'EmbeddedResource' items from your project directory by default. You can either remove these items from your project file, or set the 'EnableDefaultEmbeddedResourceItems' property to 'false' if you want to explicitly include them in your project file. For more information, see https://aka.ms/sdkimplicititems. The duplicate items were: 'WasmCSS\Fonts.css' App27.Wasm C:\Program Files\dotnet\sdk\3.1.401\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.targets 306
- Comment out embedded resources in
csproj - Build the project
- Observe error
Severity Code Description Project File Line Suppression State
Error CS0234 The type or namespace name 'BindableMetadataProvider' does not exist in the namespace 'App27.Wasm' (are you missing an assembly reference?) App27.Wasm C:\Users\marti\source\repos\App27\App27\App27.Wasm\obj\Debug\netstandard2.0\g\XamlCodeGenerator\App_85b143a515683d85392f17f7ce8b8b95.g.cs 74 Active
Environment
Nuget Package:
Package Version(s):
Affected platform(s):
- iOS
- Android
- WebAssembly
- WebAssembly renderers for Xamarin.Forms
- macOS
- Windows
- Build tasks
- Solution Templates
Visual Studio:
- 2017 (version: )
- 2019 (version: )
- for Mac (version: )
Relevant plugins:
- Resharper (version: )

Activity
said-akram commentedon Sep 11, 2020
Hi @jeromelaban
Is there a workaround for this issue?
Thanks
traxium commentedon Sep 20, 2020
I have the same errors. Adding
<EnableDefaultEmbeddedResourceItems>false</EnableDefaultEmbeddedResourceItems>doesn't help.AswinPG commentedon Sep 21, 2020
How to solve this ...?
craig-xarios commentedon Sep 21, 2020
I was having the same error in a test project
"The type or namespace name 'BindableMetadataProvider' does not exist in the namespace"
Adding the package Uno.UI.WebAssembly to my test project fixed it
jeromelaban commentedon Sep 21, 2020
This issue is related to the use of an incompatible version of Xamarin.Forms. The currently published version of Xamarin.Forms renderers for Uno only supports Xamarin.Forms 4.5.0.356. We're working to get to 4.8 which will solve this issue.
VictorKochetkov commentedon Sep 26, 2020
Unfortunately, I have this issue with Xamarin.Forms 4.5.0.356 installed(
palbordoy commentedon Sep 27, 2020
Me too :(
said-akram commentedon Sep 30, 2020
Hi I have the same issue.
Created a new Xamarin.Forms app then run
dotnet new wasmxfheadI have the following errors
I attached my solution
UnoTestXamarin.zip
Thanks
jeromelaban commentedon Oct 5, 2020
This issue is closed as this fixes the issue mentioned in this thread, but there are remaining issues pertaining to the Xamarin.Forms 4.8 release, particularly #4170.