Skip to content

Commit 2b428ad

Browse files
committed
Adding a CSharp batch build
1 parent 74e38fc commit 2b428ad

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

csNoVS.bat

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
@echo off
2+
%~d0
3+
cd /d %~dp0
4+
5+
set ProjectName=AutoCAD CSharp plug-in
6+
set ProjectDir=..\..\%ProjectName%\
7+
8+
mkdir Output 2>nul
9+
mkdir "Output\%ProjectName%" 2>nul
10+
mkdir "Output\%ProjectName%\Properties" 2>nul
11+
cd "Output\%ProjectName%"
12+
13+
if exist "..\%ProjectName%.zip" del "..\%ProjectName%.zip"
14+
del *.* /s /q > nul
15+
copy /Y "%ProjectDir%%ProjectName% - 2014.csproj" ".\%ProjectName%.csproj" > nul
16+
copy /Y "%ProjectDir%myPlugin.cs" . > nul
17+
copy /Y "%ProjectDir%myCommands.cs" . > nul
18+
copy /Y "%ProjectDir%myCommands.resx" . > nul
19+
copy /Y "%ProjectDir%myCommands.Designer.cs" . > nul
20+
copy /Y "%ProjectDir%Properties\*.*" ".\Properties" > nul
21+
copy /Y "%ProjectDir%Template Data\__TemplateIcon.ico" . > nul
22+
copy /Y "%ProjectDir%Template Data\MyTemplate.vstemplate" . > nul
23+
"C:\Program Files\WinRAR\WinRAR.exe" a -r "..\%ProjectName%.zip" *.* > nul
24+
copy /Y "%ProjectDir%Template Data\MyTemplate - WDExpress.vstemplate" "MyTemplate.vstemplate" > nul
25+
"C:\Program Files\WinRAR\WinRAR.exe" a -r "..\%ProjectName%-WD.zip" *.* > nul
26+
27+
pause

0 commit comments

Comments
 (0)