Visual Studio - Tips
Build Events
To copy the application .config
folder to the Debug
or Release
folder create a Post-build Event:
Right click on the project, Properties, Build Events, Post-build Event Command Line and enter the following command:
xcopy "$(ProjectDir)$(TargetFileName).config" "$(TargetDir)" /YR
Note:
A batch file,
PostBuildEvent.bat
, will be created in theDebug
orRelease
folder. This batch file can be run and inspected to help diagnose any issues.I tried creating this as a Pre-build Event, but it didn’t appear to work.
Colour Schemes
Documentation
Version Control
Which Visual C++ Files to Add to Source-Code Control
Do not check in files ending in:
_i.c
_i.h
_I*Events_CP.h
_p.c
aps
.csproj.user
. This does seem to be the general advice… but it has caused problems for me in the past.dlldata.c
ncb
suo