Welcome to MSDN Blogs Sign in | Join | Help

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>

       

Published Thursday, July 07, 2005 1:21 PM by ManishAgarwal

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker