Tim Wilson wrote:
> (1) Using the contents of the attached zip file, I build the output to an
> assembly named "MyCompany.Windows.Forms.dll".
>
> (2) Copy the "MyCompany.Windows.Forms.dll" assembly to the "<VS.Net 2003
> install dir>\CompactFrameworkSDK\v1.0.5000\Windows CE" directory.
>
> (3) Then I run the "Visual Studio .NET 2003 Command Prompt".
>
> (4) Locate and call a batch file that contains the following command line -
> csc /noconfig /define
ESIGN /target:library
> /out:MyCompany.Windows.Forms.Design.dll AssemblyInfo.cs TagButton.cs
> /r:.\System.CF.Design.dll /r:.\System.CF.Windows.Forms.dll
> /r:System.Windows.Forms.dll /r:System.dll /nowarn:1595
> *Ensure that the AssemblyInfo.cs, TagButton.cs, and CF design-time assembly
> files are referenced properly within the command line.
>
When I tried to build referencing the units in this order I get an
error, "you must add a reference to assembly 'System.Windows.Forms'". I
had to reference the CF units (system and system.windows.forms) first to
get the project to build. Even though this is a design time project, I
reference those two files from the "Windows CE" directory, correct?
That seems strange.
> (5) Copy the "MyCompany.Windows.Forms.Design.dll" assembly to the "<VS.Net
> 2003 install dir>\CompactFrameworkSDK\v1.0.5000\Windows CE\Designer"
> directory.
>
> Now create a test application and add the control to the ToolBox by located
> the design-time version (MyCompany.Windows.Forms.Design.dll).
>
After doing this, the control appears disabled in the tool palette. I
would think it is related to the Windows CE dlls I am referencing..??..