Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting lots of warnings when building with targets in Visual Studio 2010

I'm trying to build some code but getting lots of warnings in target files, stuff like this:

Warning 12  The element 'ItemGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' 
has invalid child element 'TCS_Compile' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. 
List of possible elements expected: 
'Item, Reference, COMReference, COMFileReference, Xdcmake, Bscmake, ClCompile,
 ClInclude, Midl, ResourceCompile, PreLinkEvent, CustomBuildStep, Manifest, 
ProjectConfiguration, NativeReference, ProjectReference, Compile, EmbeddedResource, 
Content, Page, Resource, ApplicationDefinition, None, BaseApplicationManifest, 
Folder, Import, Service, WebReferences, WebReferenceUrl, FileAssociation, 
BootstrapperFile, PublishFile, CodeAnalysisDependentAssemblyPaths, 
CodeAnalysisDictionary, CodeAnalysisImport, Link, ResourceCompile, PreBuildEvent, 
PostBuildEvent' 
in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'.

Any ideas how I could fix these?

like image 853
meds Avatar asked Oct 26 '11 05:10

meds


1 Answers

I had this problem too. After some googling, found a suggestion to close all the editor windows in VS, and then rebuild.

Worked for me.

like image 112
Tom Bushell Avatar answered Oct 16 '22 07:10

Tom Bushell