Daily construction of C #

zhaozj2021-02-16  94

Recently, it has a great convenience of the process and maintenance of Everyday Building in a project, and the information on the Internet is relatively scattered, so the technology will be used herein:

First, the directory preparation original code directory: BDSRC Release Directory: Release

First delete the original directory and the file RD Release / S / QRD BDSRC / S / Q

Create a directory structure MD BDSRC

MD ReleaseCD ReleaseMD BINMD Templatesmd Templates / IMG / CD..

Second, VSS reads CD bdsrcset path =% path%; C: / Program files / vss / win32; d: / program files / vss / win32; set ssuser = dannyset sspwd = prjpwdset ssdir = // server / prj / src / ss workfold $ / ss get $ / -r -wcd..

Third, began to compile

Set the compiler path used by Build Path =% windir% / microsoft.net / framework / v1.1.4322 ;./ Tools;

Call each module compilation batch

PRJ.BAT content The following CD PRJ compiles the registration resource lc /target :prj.dll /complist:Licenses.licx generated resource file resgen form1.resx prj.form1.Resourcesresgen form2.resx prj.form2.resourcescsc @ Build.RspCD ..

Among them, build.rsp is compiled parameter file / target: library /out:../../release/bin/prj.dll /res:prj.form1.resources /res:prj.form2.Resources /Res :prj.dll .licenses /Recurse :*.cs /R :../../release/bin/prja.dll;../..RELEASE/bin/prjb.dll;

Description: Target: The class library is library, the main program is WINEXEOUT: to compile the target RES: for the resource file R: is dependent

In order to record the compilation result, build.bat can be written as the following path =% windir% / microsoft.net / framework / v1.1.4322 ;./ Tools; Echo start compiling% date %% Time% prja / build.batprjb / build.batecho end Compile% DATE %% TIME%

Fourth, the executor to set the planned task plan task on the compilation machine must have batch task debug permissions, set in local security settings

转载请注明原文地址:https://www.9cbs.com/read-11162.html

New Post(0)