Automatic copy files to output during application building

后端 未结 8 1847
死守一世寂寞
死守一世寂寞 2020-12-07 22:48

There is Copy to Output Directory property for files in C# projects. But in VC++ projects it is absent. I know, that I can use Build events in VC++ and wri

8条回答
  •  暖寄归人
    2020-12-07 23:04

    You can specify copying in the project file as Jeff G answered in another question:

    In the *.vcxproj file, change:

    
    

    to:

    
        PreserveNewest
    
    

    Then in the *.vcxproj.filters file, change:

    
        Resource Files
    
    

    to:

    
        Resource Files
    
    

    where the tag is for specified text files (it'll be for image files etc.)

提交回复
热议问题