Jaa


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

  • While converting the sources and makefile.inc 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

<PropertyGroup>
<OutputPath>$(DestinationDirectory)</OutputPath>
<TargetType>COPY</TargetType>
</PropertyGroup>

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

<ItemGroup>
<DataFile Include="FileToCopy.txt" />
             
<DataFile Include="FileToCopyinSubFolder.txt">
<SubFolder>SubFolder\</SubFolder>
</DataFile>
</ItemGroup>