后期生成事件命令copy /y

本文介绍如何将7z.dll及7z64.dll复制到webapp的bin目录下,确保应用程序能够顺利调用这些库文件进行压缩或解压缩操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

copy /y $(TargetDir)7z.dll ..\..\..\..\webapp\bin
copy /y $(TargetDir)7z64.dll  ..\..\..\..\webapp\bin

 

转载于:https://www.cnblogs.com/kexb/p/9514998.html

我打开这个项目属性,看了这个生成事件 预先生成事件命令行:内容为copy "$(ProjectDir)eap.config" "$(TargetDir)eap.config" /Y xcopy "$(ProjectDir)Configs" "$(TargetDir)Configs\" /E /D /Y /V 后期生成事件命令行: md PluginsDLL md ConnectionDLL copy "$(SolutionDir)Glorysoft.Common.Alarm.Service\bin\Debug\Glorysoft.Common.Alarm.Service.dll" ".\PluginsDLL\Glorysoft.Common.Alarm.Service.dll" /y copy "$(SolutionDir)Glorysoft.Common.Alarm.Service\bin\Debug\Glorysoft.Common.Alarm.Service.pdb" ".\PluginsDLL\Glorysoft.Common.Alarm.Service.pdb" /y copy "$(SolutionDir)Glorysoft.Common.Deploy.Service\bin\Debug\Glorysoft.Common.Deploy.Service.dll" ".\PluginsDLL\Glorysoft.Common.Deploy.Service.dll" /y copy "$(SolutionDir)Glorysoft.Common.Deploy.Service\bin\Debug\Glorysoft.Common.Deploy.Service.pdb" ".\PluginsDLL\Glorysoft.Common.Deploy.Service.pdb" /y copy "$(SolutionDir)Glorysoft.Common.EQP.Service\bin\Debug\Glorysoft.Common.EQP.Service.dll" ".\PluginsDLL\Glorysoft.Common.EQP.Service.dll" /y copy "$(SolutionDir)Glorysoft.Common.EQP.Service\bin\Debug\Glorysoft.Common.EQP.Service.pdb" ".\PluginsDLL\Glorysoft.Common.EQP.Service.pdb" /y copy "$(SolutionDir)Glorysoft.Common.Event.Service\bin\Debug\Glorysoft.Common.Event.Service.dll" ".\PluginsDLL\Glorysoft.Common.Event.Service.dll" /y copy "$(SolutionDir)Glorysoft.Common.Event.Service\bin\Debug\Glorysoft.Common.Event.Service.pdb" ".\PluginsDLL\Glorysoft.Common.Event.Service.pdb" /y copy "$(SolutionDir)Glorysoft.Common.Monitor.Service\bin\Debug\Glorysoft.Common.Monitor.Service.dll" ".\PluginsDLL\Glorysoft.Common.Monitor.Service.dll" /y copy "$(SolutionDir)Glorysoft.Common.Monitor.Service\bin\Debug\Glorysoft.Common.Monitor.Service.pdb" ".\PluginsDLL\Glorysoft.Common.Monitor.Service.pdb" /y copy "$(SolutionDir)Glorysoft.Common.History.Service\bin\Debug\Glorysoft.Common.History.Service.dll" ".\PluginsDLL\Glorysoft.Common.History.Service.dll" /y copy "$(SolutionDir)Glorysoft.Common.History.Service\bin\Debug\Glorysoft.Common.History.Service.pdb" ".\PluginsDLL\Glorysoft.Common.History.Service.pdb" /y copy "$(SolutionDir)Glorysoft.Common.User.Service\bin\Debug\Glorysoft.Common.User.Service.dll" ".\PluginsDLL\Glorysoft.Common.User.Service.dll" /y copy "$(SolutionDir)Glorysoft.Common.User.Service\bin\Debug\Glorysoft.Common.User.Service.pdb" ".\PluginsDLL\Glorysoft.Common.User.Service.pdb" /y copy "$(SolutionDir)Glorysoft.Common.Maintenance.Service\bin\Debug\Glorysoft.Common.Maintenance.Service.dll" ".\PluginsDLL\Glorysoft.Common.Maintenance.Service.dll" /y copy "$(SolutionDir)Glorysoft.Common.Maintenance.Service\bin\Debug\Glorysoft.Common.Maintenance.Service.pdb" ".\PluginsDLL\Glorysoft.Common.Maintenance.Service.pdb" /y copy "$(SolutionDir)Glorysoft.Common.Service\bin\Debug\Glorysoft.Common.Service.dll" ".\PluginsDLL\Glorysoft.Common.Service.dll" /y copy "$(SolutionDir)Glorysoft.Common.Service\bin\Debug\Glorysoft.Common.Service.pdb" ".\PluginsDLL\Glorysoft.Common.Service.pdb" /y copy "$(SolutionDir)Glorysoft.Monitor.Common.JMS.EAP\bin\Debug\Glorysoft.Monitor.Common.JMS.EAP.dll" ".\PluginsDLL\Glorysoft.Monitor.Common.JMS.EAP.dll" /y copy "$(SolutionDir)Glorysoft.Monitor.Common.JMS.EAP\bin\Debug\Glorysoft.Monitor.Common.JMS.EAP.pdb" ".\PluginsDLL\Glorysoft.Monitor.Common.JMS.EAP.pdb" /y copy "$(SolutionDir)Glorysoft.Monitor.Common.JMS.RTM\bin\Debug\Glorysoft.Monitor.Common.JMS.RTM.dll" ".\PluginsDLL\Glorysoft.Monitor.Common.JMS.RTM.dll" /y copy "$(SolutionDir)Glorysoft.Monitor.Common.JMS.RTM\bin\Debug\Glorysoft.Monitor.Common.JMS.RTM.pdb" ".\PluginsDLL\Glorysoft.Monitor.Common.JMS.RTM.pdb" /y copy "$(SolutionDir)Glorysoft.Monitor.Common.ZMQ.MC\bin\Debug\Glorysoft.Monitor.Common.ZMQ.MC.dll" ".\PluginsDLL\Glorysoft.Monitor.Common.ZMQ.MC.dll" /y copy "$(SolutionDir)Glorysoft.Monitor.Common.ZMQ.MC\bin\Debug\Glorysoft.Monitor.Common.ZMQ.MC.pdb" ".\PluginsDLL\Glorysoft.Monitor.Common.ZMQ.MC.pdb" /y copy "$(SolutionDir)Glorysoft.SJSEMI.CPATE.Service\bin\Debug\Glorysoft.SJSEMI.CPATE.Service.dll" ".\PluginsDLL\Glorysoft.SJSEMI.CPATE.Service.dll" /y copy "$(SolutionDir)Glorysoft.SJSEMI.CPATE.Service\bin\Debug\Glorysoft.SJSEMI.CPATE.Service.pdb" ".\PluginsDLL\Glorysoft.SJSEMI.CPATE.Service.pdb" /y 然后VS2015报错 严重性 代码 说明 项目 文件 行 错误 The command "md PluginsDLL md ConnectionDLL copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Common.Alarm.Service\bin\Debug\Glorysoft.Common.Alarm.Service.dll" ".\PluginsDLL\Glorysoft.Common.Alarm.Service.dll" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Common.Alarm.Service\bin\Debug\Glorysoft.Common.Alarm.Service.pdb" ".\PluginsDLL\Glorysoft.Common.Alarm.Service.pdb" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Common.Deploy.Service\bin\Debug\Glorysoft.Common.Deploy.Service.dll" ".\PluginsDLL\Glorysoft.Common.Deploy.Service.dll" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Common.Deploy.Service\bin\Debug\Glorysoft.Common.Deploy.Service.pdb" ".\PluginsDLL\Glorysoft.Common.Deploy.Service.pdb" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Common.EQP.Service\bin\Debug\Glorysoft.Common.EQP.Service.dll" ".\PluginsDLL\Glorysoft.Common.EQP.Service.dll" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Common.EQP.Service\bin\Debug\Glorysoft.Common.EQP.Service.pdb" ".\PluginsDLL\Glorysoft.Common.EQP.Service.pdb" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Common.Event.Service\bin\Debug\Glorysoft.Common.Event.Service.dll" ".\PluginsDLL\Glorysoft.Common.Event.Service.dll" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Common.Event.Service\bin\Debug\Glorysoft.Common.Event.Service.pdb" ".\PluginsDLL\Glorysoft.Common.Event.Service.pdb" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Common.Monitor.Service\bin\Debug\Glorysoft.Common.Monitor.Service.dll" ".\PluginsDLL\Glorysoft.Common.Monitor.Service.dll" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Common.Monitor.Service\bin\Debug\Glorysoft.Common.Monitor.Service.pdb" ".\PluginsDLL\Glorysoft.Common.Monitor.Service.pdb" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Common.History.Service\bin\Debug\Glorysoft.Common.History.Service.dll" ".\PluginsDLL\Glorysoft.Common.History.Service.dll" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Common.History.Service\bin\Debug\Glorysoft.Common.History.Service.pdb" ".\PluginsDLL\Glorysoft.Common.History.Service.pdb" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Common.User.Service\bin\Debug\Glorysoft.Common.User.Service.dll" ".\PluginsDLL\Glorysoft.Common.User.Service.dll" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Common.User.Service\bin\Debug\Glorysoft.Common.User.Service.pdb" ".\PluginsDLL\Glorysoft.Common.User.Service.pdb" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Common.Maintenance.Service\bin\Debug\Glorysoft.Common.Maintenance.Service.dll" ".\PluginsDLL\Glorysoft.Common.Maintenance.Service.dll" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Common.Maintenance.Service\bin\Debug\Glorysoft.Common.Maintenance.Service.pdb" ".\PluginsDLL\Glorysoft.Common.Maintenance.Service.pdb" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Common.Service\bin\Debug\Glorysoft.Common.Service.dll" ".\PluginsDLL\Glorysoft.Common.Service.dll" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Common.Service\bin\Debug\Glorysoft.Common.Service.pdb" ".\PluginsDLL\Glorysoft.Common.Service.pdb" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Monitor.Common.JMS.EAP\bin\Debug\Glorysoft.Monitor.Common.JMS.EAP.dll" ".\PluginsDLL\Glorysoft.Monitor.Common.JMS.EAP.dll" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Monitor.Common.JMS.EAP\bin\Debug\Glorysoft.Monitor.Common.JMS.EAP.pdb" ".\PluginsDLL\Glorysoft.Monitor.Common.JMS.EAP.pdb" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Monitor.Common.JMS.RTM\bin\Debug\Glorysoft.Monitor.Common.JMS.RTM.dll" ".\PluginsDLL\Glorysoft.Monitor.Common.JMS.RTM.dll" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Monitor.Common.JMS.RTM\bin\Debug\Glorysoft.Monitor.Common.JMS.RTM.pdb" ".\PluginsDLL\Glorysoft.Monitor.Common.JMS.RTM.pdb" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Monitor.Common.ZMQ.MC\bin\Debug\Glorysoft.Monitor.Common.ZMQ.MC.dll" ".\PluginsDLL\Glorysoft.Monitor.Common.ZMQ.MC.dll" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.Monitor.Common.ZMQ.MC\bin\Debug\Glorysoft.Monitor.Common.ZMQ.MC.pdb" ".\PluginsDLL\Glorysoft.Monitor.Common.ZMQ.MC.pdb" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.SJSEMI.CPATE.Service\bin\Debug\Glorysoft.SJSEMI.CPATE.Service.dll" ".\PluginsDLL\Glorysoft.SJSEMI.CPATE.Service.dll" /y copy "D:\A_Donger\CP_EAP\EAP ADMIN FT\server\Monitor.Common.Server\Glorysoft.SJSEMI.CPATE.Service\bin\Debug\Glorysoft.SJSEMI.CPATE.Service.pdb" ".\PluginsDLL\Glorysoft.SJSEMI.CPATE.Service.pdb" /y " exited with code 1. Glorysoft.Monitor.Startup
最新发布
08-06
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值