9
我在Visual Studio中的項目2010年 該項目具有以下生成後事件命令行:生成後事件命令發佈(Visual Studio 2010中)
SET TARGET_PROJECT=TestMain
IF NOT EXIST "$(TargetDir)IceBox" (
XCOPY /E /I /Y "$(SolutionDir)Externals\IceBox" "$(TargetDir)IceBox"
)
IF NOT EXIST "$(TargetDir)bzip2.dll" (
COPY "$(SolutionDir)Externals\IceBox\bzip2.dll" "$(TargetDir)"
)
XCOPY /E /I /Y "$(SolutionDir)Externals\Infragistics" "$(TargetDir)"
但只是使用這個命令當我創建一個調試或發佈。當我發佈我的項目時,這個命令將被忽略。 爲我發佈項目時使用此命令提供了可能性嗎?
感謝您的任何幫助。
也許https://stackoverflow.com/questions/3561689/afterpublish-target-not-working將使用 – Spikolynn 2017-08-22 12:23:41
的上述解決方案沒有工作好。但是,這樣做:https://stackoverflow.com/questions/19456112/afterpublish-script-doesnt-run-when-i-publish-a-web-app – Spikolynn 2017-08-22 12:43:33