Pregunta

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

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

¿Fue útil?

Solución

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.

Otros consejos

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top