Visual Studio 2013 post-studio event always shows explorer

I would like to add some materials for the assembly to my project (VisualC ++), which includes copying some files to the output directory. These are mainly resource files such as icons and xml / css. The problem is that it opens after each build of the researcher, no matter what. I tried to verify that if the copied material is in the target folder, and if so, then do not copy the files, but it seems to be ignoring me. Here is my post:

IF NOT EXIST $(OutDir)fonts\uni05_53.ttf
(
xcopy "$(ProjectDir)uni05_53.ttf" "$(OutDir)fonts\" /Y /I
)

IF NOT EXIST $(OutDir)data\favicon.ico
(
xcopy "$(ProjectDir)data\favicon.ico" "$(OutDir)images\" /Y /I
)

IF NOT EXIST $(OutDir)layout\warlockgui.css
(
xcopy "$(ProjectDir)layout\warlockgui.css" "$(OutDir)layout\" /Y /I
)

IF NOT EXIST $(OutDir)layout\warlockgui.xml
(
xcopy "$(ProjectDir)layout\warlockgui.xml" "$(OutDir)layout\" /Y /I
)

Even when I set the date using the / D switch, each time it opens the explorer in the root of the project.

+4
source share
1 answer

. , . if , , .

IF NOT EXIST "$(OutDir)fonts\uni05_53.ttf" (
xcopy "$(ProjectDir)uni05_53.ttf" "$(OutDir)fonts\" /Y /I
)

IF NOT EXIST "$(OutDir)data\favicon.ico" (
xcopy "$(ProjectDir)data\favicon.ico" "$(OutDir)images\" /Y /I
)

IF NOT EXIST "$(OutDir)layout\warlockgui.css" (
xcopy "$(ProjectDir)layout\warlockgui.css" "$(OutDir)layout\" /Y /I
)

IF NOT EXIST "$(OutDir)layout\warlockgui.xml" (
xcopy "$(ProjectDir)layout\warlockgui.xml" "$(OutDir)layout\" /Y /I
)
+1

All Articles