If you are doing things on windows, I assume you are using Visual Studio. What I have done in the past is used pre-compile steps in the project properties to copy the file over from one location to the other. The copy of the file in the new location is explicitly ignored so it won't get committed.