I downloaded the .NET SDK for the Froala WYSIWIG HTML Editor. The download link is available here: https://www.froala.com/wysiwyg-editor/docs/sdks/dotnet
Simply download the zip, extract it and open it.
When compiling the solution inside Visual Studio 2019, I don't have any Errors/Warnings. No problem either at runtime.
When opening the exact same solution inside Visual Studio Code, I got some errors when compiling (dotnet build) even if compilation succeed. And no problem at runtime.
The errors are mainly Reference type 'HttpContext' claims defined 'System.Web', but not found
As stated here it may be a problem of targetting 2 different .NET framework versions.
The solution (.sln) is composed as below:
- src project
- demo-core project (referencing src project) <--- set as default project
- demo project (referencing src project) <---- not used because I use demo-core
I was not able to find a solution for this annoying error warning at compilation.
UPDATE 1
src project is targetting the net472;netstandard2.0
demo-core project is targetting the .NET Core 2.0
UPDATE 2
I finally succeed get rid of compilation errors. I simply removed net472 from targetted framework of the src projet and immediately compilation errors disappeared.
What did I have ton conclude ? How this modification impacts Visual Studio Code and why this is not necessary under Visual Studio 2019. Sorry but this is strange to me.