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