-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcopy-template-logofx-wpf.cmd
63 lines (43 loc) · 1.07 KB
/
copy-template-logofx-wpf.cmd
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
REM copy-template-logofx-wpf.cmd
set source=LogoFX.Templates.WPF
set common1=Common.Bootstrapping\Common.Bootstrapping.csproj
set common2=Common.Data.Fake.Setup\Common.Data.Fake.Setup.csproj
set exclude=/exclude:..\devops\exclude-common.txt
call copy-folder %source% %exclude%
if %ERRORLEVEL% NEQ 0 (
goto EXIT
)
REM Copy 'Common' projects
cd ..\generated
xcopy /e /i /y ..\common .\%source% %exclude%
if %ERRORLEVEL% NEQ 0 (
goto EXIT
)
REM Remove 'Common' project references
cd %source%\%source%.Launcher
if %ERRORLEVEL% NEQ 0 (
goto EXIT
)
dotnet remove reference ..\..\..\common\%common1% ..\..\..\common\%common2%
if %ERRORLEVEL% NEQ 0 (
goto EXIT
)
cd ..
dotnet sln remove ..\..\common\%common1% ..\..\common\%common2%
if %ERRORLEVEL% NEQ 0 (
goto EXIT
)
REM Add 'Common' project references
dotnet sln add -s Common %common1% %common2%
if %ERRORLEVEL% NEQ 0 (
goto EXIT
)
cd %source%.Launcher
dotnet add reference ..\%common1% ..\%common2%
if %ERRORLEVEL% NEQ 0 (
goto EXIT
)
cd ..\..\..\devops
:EXIT
REM /copy-template-logofx-wpf.cmd
EXIT /B %ERRORLEVEL%