Frage

When I open a project in visual studio I'm getting following error:

The attribute "Include" in element <EmbeddedResource> is unrecognized.

War es hilfreich?

Lösung

I got the solution.

There was some problem in csproj file due to merging. Some files were added twice. That were causing the issue. After removing duplicates issue is resolved.

Andere Tipps

MSBuild and Visual Studio (2015, at least) also give this error if an EmbeddedResource element is missing its closing tag. Between the error message's spurious text about the Include attribute and its lack of a line number, this can take longer than it should to track down.

I got this problem when mistakenly opening a .jsproj project in VS2015 that was created with Visual Studio 2017.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top