Domanda

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

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

È stato utile?

Soluzione

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.

Altri suggerimenti

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top