Macro Description $ (configurationname) The name of the current project configuration (for example, "debug| Any CPU "). $ (OutDir) The path of the output file directory, relative to the project directory. This resolves to the value of the output directory property. It includes the trailing backslash "\". $ (DEVENVDIR) The installation directory for Visual Studio 2005 (defined as drive + path), including the trailing backslash "\". $ (PlatformName) The name of the current target platform. For example, "AnyCPU". The directory of the $ (ProjectDir) project (defined as drive + path), including the trailing backslash "\". The absolute path name of the $ (ProjectPath) project (defined as drive + path + base name + file extension). The base name of the $ (ProjectName) project. The file name of the $ (ProjectFileName) project (defined as base name + file extension). The file name extension of the $ (ProjectExt) project. It includes "." In front of the file name extension. The directory of the $ (SolutionDir) solution (defined as drive + path), including the trailing backslash "\". The absolute path name of the $ (Solutionpath) solution (defined as drive + path + base name + file extension). The base name of the $ (solutionname) solution. The file name of the $ (solutionfilename) solution (defined as base name + file extension). The file name extension of the $ (solutionext) solution. It includes "." In front of the file name extension. $ (TargetDir) The directory of the generated primary output file (defined as drive + path). It includes the trailing backslash "\". $ (TargetPath) The absolute path name of the generated primary output file (defined as drive + path + base name + file extension). The base name of the main output file generated by $ (TargetName). The file name (defined as base name + file extension) of the main output file generated by $ (targetfilename). $ (targetext) The file name extension of the primary output file that is generated. It includes "." In front of the file name extension. Use: Copy "$ (solutiondir) dal\bin\debug\*.*" "$ (TargetDir)"
xcopy/r/y "$ (ProjectDir) appservice\config.xml" "$ (TargetDir) configfile\" xcopy/r/y "$ (ProjectDir) app\findaround\ Searchquery.xml "" $ (TargetDir) configfile\ "xcopy/r/y" $ (ProjectDir) appsys\aboutinfo\update.xml "" $ (TargetDir) "
C # vs Pre-build event command line and post-build event command line