tips for converting build script of managed C++ project to for msbuild

  • While converting the sources and to .nativeproj file, if you get following error: - 

  Project file error : The TargetType NOTARGET in the project [myproject.nativeproj] is not known.

change value of TargetType property from "NoTarget" to "Publish".

  • If your project is not compiling any source files. The build process only copy files to output folder. Value of the TargetType property should be "Copy" instead of "NoTarget".  For example


<!-- Specify files to copy. For each file you want to copy define the corresponding item in itemgroup-->

<DataFile Include="FileToCopy.txt" />
<DataFile Include="FileToCopyinSubFolder.txt">