S
Shapper
Hello,
I am editing a project file of a C# Console Application and I have the
following:
<ItemGroup>
<Deploy Include="$(TargetDir)*.*" />
</ItemGroup>
<Target Name="AfterBuild">
<Copy SourceFiles="@(Deploy)" DestinationFolder="$(ProjectDir)..\..
\Deploy\Software" />
</Target>
Sometimes the following part just disappears:
<ItemGroup>
<Deploy Include="$(TargetDir)*.*" />
</ItemGroup>
I do get a warning on that code:
Warning 4 The element 'ItemGroup' in namespace 'http://
schemas.microsoft.com/developer/msbuild/2003' has invalid child
element 'Deploy' 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'.
How can I solve this?
Thank You,
Miguel
I am editing a project file of a C# Console Application and I have the
following:
<ItemGroup>
<Deploy Include="$(TargetDir)*.*" />
</ItemGroup>
<Target Name="AfterBuild">
<Copy SourceFiles="@(Deploy)" DestinationFolder="$(ProjectDir)..\..
\Deploy\Software" />
</Target>
Sometimes the following part just disappears:
<ItemGroup>
<Deploy Include="$(TargetDir)*.*" />
</ItemGroup>
I do get a warning on that code:
Warning 4 The element 'ItemGroup' in namespace 'http://
schemas.microsoft.com/developer/msbuild/2003' has invalid child
element 'Deploy' 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'.
How can I solve this?
Thank You,
Miguel