question about project building

When I tried to rename the file name in the sample projects, I found that will generate a build error, So I want to know that if I want to rename a file name in a existing project, or add a new file into this project, for example:
In the sample of convolutionSeparable, which includes the files of convolutionSeparable.cu,
convolutionSeparable_gold.cpp,
convolutionSeparable_kernel.cu
and I want to rename the convolutionSeparable.cu to convolutionSeparable_R.cu,
or I want to add a new file named convolutionABC.cu(or .cpp) into this project, to asure the correct building, what should I do ? I know I must modify something, but what and how is what I confused.

Thanks for any reply.

Usually, I would suggest simply creating a new project.

A hack that accomplishes what you want:

  • edit the .sln and .vcproj files in your favorite text editor, replacing every occurence of the old filename with the new one.

Paulius