"Duplicate 'EmbeddedResource' items were included" when using Uno Platform and Xamarin.Forms on WebAssembly

Viewed 675

When building I'm getting this error:

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'
XamNote.Wasm    C:\Program Files\dotnet\sdk\3.1.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.targets   306 

What should be done to fix this error ?

1 Answers

Same thing her , just fallow the instruction her https://platform.uno/xamarin-forms/

first thing , it generate the Wasm project but could not add it to the sln , so i added it manually then when i try to build Wasm , got this 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' TestingWebAssXamarin.Wasm C:\Program Files\dotnet\sdk\3.1.300\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.targets 306

visual studio Version 16.6.0 xamarin froms 4.6.0.800

Related