-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBUILDING.txt
50 lines (47 loc) · 2.87 KB
/
BUILDING.txt
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
On a Pocket PC
==============
1) Install Pocket C#.
2) Put all source files in \pc#\proj\vncviewer.
3) Tap on either vncviewer.debug.csant (debug build) or vncviewer.release.csant (release build).
4) The build process should complete in one to two minutes.
On a Windows desktop
====================
1) Install .NET Framework SDK 1.1.
2) Execute C:\Program Files\Microsoft.NET\SDK\v1.1\Bin\sdkvars.bat. Replace the path with whatever appropriate.
3) Put all source files in a directory.
4) Open a command prompt.
5) CD to where you put the source files.
6) Execute csc /target:winexe /win32icon:vncviewer.ico /out:vncviewer.exe *.cs
7) The build process should complete in seconds.
On a Windows desktop (exe runs on both desktop, PPC, and Smartphone)
====================================================================
If binary compatibility is desired when building on desktop, follow the following steps:
1) Install .NET Framework SDK 1.1.
2) Copy the .NET Compact Framework DLLs to a directory on the desktop. You can obtain the DLLs from various sources. For example, you can copy the DLLs from a Pocket C# distribution, installed .NET Compact Framework SDK or from MSDN Visual Studio NET 2003 Enterprise Architect (Disc 2)(Disc 2083)(May 2003)(X09 51499) https://archive.org/details/MSDN_Visual_Studio_NET_2003_Enterprise_Architect_Disc_2_Disc_2083_May_2003_X09-5
Path: VISUAL-STUDIO-DISK:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\WindowsCE\
These files are:
Microsoft.WindowsCE.Forms.dll
mscorlib.dll
System.Data.dll
System.dll
System.Drawing.dll
System.Net.IrDA.dll
System.Web.Services.dll
System.Windows.Forms.DataGrid.dll
System.Windows.Forms.dll
System.Xml.dll
3) Execute C:\Program Files\Microsoft.NET\SDK\v1.1\Bin\sdkvars.bat. Replace the path with whatever appropriate.
4) Put all source files in a directory.
5) Open a command prompt.
6) CD to where you put the source files.
7) Execute the following line, replacing the path of the various DLLs accordingly:
csc /target:winexe /win32icon:vncviewer.ico /out:vncviewer.exe /nostdlib /noconfig /reference:\pc#\netcf\System.dll;\pc#\netcf\mscorlib.dll;\pc#\netcf\System.Xml.dll;\pc#\netcf\System.Drawing.dll;\pc#\netcf\System.Windows.Forms.dll *.cs
8) The build process should complete in seconds.
Remarks: Please see builddbg.bat and buildrel.bat for reference.
To add hi-res support (VGA on PPC and QVGA on Smartphone)
=========================================================
1) Complete the build process as outlined above.
2) Install the Windows Mobile Developer Resources from Microsoft.
3) Open a command prompt and execute the following command, replacing the paths with whatever appropriate in your environment.
res2exe -c "C:\Program Files\Developer Resources for Windows Mobile 2003 Second Edition\tools\hidpi.res" C:\pc#\proj\vncviewer\vncviewer.exe
Remarks: Please see builddbg.bat and buildrel.bat for reference.