-
Notifications
You must be signed in to change notification settings - Fork 5
/
xcopyFile.bat
43 lines (35 loc) · 1.55 KB
/
xcopyFile.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
echo off
cls
:: 设置变量不能有空格 等号左边不允许有空格,等号右边的所有包括空格会全部赋值给变量。
set version=1.2.1.7
echo User Dir %USERPROFILE% FileVersion : %version%
set curDir="%USERPROFILE%\.nuget\packages\jc.base\%version%\lib\netstandard2.0\"
echo Target Dir : %curDir%
Del "%curDir%\*" /q
xcopy /Y "Jc.Base\bin\Debug\netstandard2.0" %curDir%
set curDir="%USERPROFILE%\.nuget\packages\jc.core\%version%\lib\netstandard2.0\"
echo Target Dir : %curDir%
Del "%curDir%\*" /q
xcopy /Y "Jc.Core\bin\Debug\netstandard2.0" %curDir%
set curDir="%USERPROFILE%\.nuget\packages\jc.core.database\%version%\lib\netstandard2.0\"
echo Target Dir : %curDir%
Del "%curDir%\*" /q
xcopy /Y "Jc.Core.Database\bin\Debug\netstandard2.0" %curDir%
set curDir="%USERPROFILE%\.nuget\packages\jc.core.mssql\%version%\lib\netstandard2.0\"
echo Target Dir : %curDir%
Del "%curDir%\*" /q
xcopy /Y "Jc.Core.MsSql\bin\Debug\netstandard2.0" %curDir%
set curDir="%USERPROFILE%\.nuget\packages\jc.core.mysql\%version%\lib\netstandard2.0\"
echo Target Dir : %curDir%
Del "%curDir%\*" /q
xcopy /Y "Jc.Core.MySql\bin\Debug\netstandard2.0" %curDir%
set curDir="%USERPROFILE%\.nuget\packages\jc.core.postgresql\%version%\lib\netstandard2.0\"
echo Target Dir : %curDir%
Del "%curDir%\*" /q
xcopy /Y "Jc.Core.PostgreSql\bin\Debug\netstandard2.0" %curDir%
set curDir="%USERPROFILE%\.nuget\packages\jc.core.sqlite\%version%\lib\netstandard2.0\"
echo Target Dir : %curDir%
Del "%curDir%\*" /q
xcopy /Y "Jc.Core.Sqlite\bin\Debug\netstandard2.0" %curDir%
echo Copy Finished.
pause