Re: create design time library using vs.net

From: Chris Tacke, eMVP (ctacke_at_spamfree-opennetcf.org)
Date: 11/01/04


Date: Mon, 1 Nov 2004 12:33:00 -0500

You need to modify your build so that only certain imports are used for the
design version and others are used for the run time version. Look at any of
the OpenNETCF SDF controls - they all have design-time support.

-- 
<ctacke/>
www.OpenNETCF.org
Your CF searches start and end here
"gerry" <germ@hotmail.com> wrote in message 
news:uTyYmbBwEHA.1524@TK2MSFTNGP09.phx.gbl...
> has anybody successfully created a design time version of a cf control
> library from within VS.NET ?
> i can create one from the command line fine but would much rather be able 
> to
> do everything from within vs.
>
> from cf webcasts i have seen this is possible but there must be some trick
> that is never being mentioned.
> basically I a doing is :
> - copy the runtime library project file to a new design time project file
> within the same project directory
> - add the new design time project to the solution within vs.net
> - add the appropriate conditional compilation constant
> - specify the new output file name
> - add the approprriate System.CF references to the design time project
> - edit the design time project.csdproj file & rearrange the references to
> place the System.CF references before all other references
>
> [ I found that if i create the design time project from scratch rather 
> than
> copy the runtime project that everything compiles ok and the controls can 
> be
> added to the toolbar and dropped on a cf form but the controls are never
> actually added to the form - there are no errors generated but nothing 
> seems
> to happen. ]
>
> here is a condensed version of the task list ouput after compiling
> ( i realize that the redefinition warnings can be ignored )
>
> C:\...\CFLib\CFControl.cs(22): 'System.Drawing.Bitmap' is defined in
> multiple places; using definition from
> 'c:\..\Designer\System.CF.Drawing.dll'
> C:\...\CFLib\CFControl.cs(19): 'System.Drawing.Graphics' is defined in
> multiple places; using definition from
> 'c:\..\Designer\System.CF.Drawing.dll'
> C:\...\CFLib\CFControl.cs(13): 'System.Windows.Forms.Control' is defined 
> in
> multiple places; using definition from
> 'c:\..\Designer\System.CF.Windows.Forms.dll'
> C:\...\CFLib\CFControl.cs(107): 'System.Windows.Forms.MouseEventArgs' is
> defined in multiple places; using definition from
> 'c:\..\Designer\System.CF.Windows.Forms.dll'
> C:\...\CFLib\CFControl.cs(142): 'System.Windows.Forms.PaintEventArgs' is
> defined in multiple places; using definition from
> 'c:\..\Designer\System.CF.Windows.Forms.dll'
>
> c:\...\Designer\System.CF.Windows.Forms.dll Referenced class
> 'System.Windows.Forms.Control' has base class or interface
> 'System.ComponentModel.ISynchronizeInvoke' defined in an assembly that is
> not referenced.  You must add a reference to assembly 'System'.
> c:\...\Designer\System.CF.Windows.Forms.dll Referenced class
> 'System.Windows.Forms.Control' has base class or interface
> 'System.Windows.Forms.IWin32Window' defined in an assembly that is not
> referenced.  You must add a reference to assembly 'System.Windows.Forms'.
>
> The dependency 'Accessibility' could not be found.
> The dependency 'ConMan' could not be found.
> The dependency 'ConManDataStore' could not be found.
> The dependency 'EnvDTE' could not be found.
> The dependency 'Microsoft.VisualStudio' could not be found.
> The dependency 'Microsoft.VisualStudio.Designer.Interfaces' could not be
> found.
> The dependency 'System.Design' could not be found.
> The dependency 'System.Drawing.Design' could not be found.
> The dependency 'System.Runtime.Serialization.Formatters.Soap' could not be
> found.
>
> C:\...\CFLib\CFControl.cs(262): The type or namespace name 'Browsable' 
> does
> not exist in the class or namespace 'System.ComponentModel' (are you 
> missing
> an assembly reference?)
> C:\...\CFLib\CFControl.cs(66): The type or namespace name 'Category' does
> not exist in the class or namespace 'System.ComponentModel' (are you 
> missing
> an assembly reference?)
> C:\...\CFLib\CFControl.cs(68): The type or namespace name 'Description' 
> does
> not exist in the class or namespace 'System.ComponentModel' (are you 
> missing
> an assembly reference?)
>
> gerry
>
> 


Relevant Pages

  • create design time library using vs.net
    ... - copy the runtime library project file to a new design time project file ... You must add a reference to assembly 'System.Windows.Forms'. ... The dependency 'Accessibility' could not be found. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: UITypeEditor must be in the same assembly?
    ... I don't quite understand the suggestion for a reference. ... defined in ClientLib and the control is in WebControlLib, ... In order to debug the design time functionality of your editor, ...
    (microsoft.public.dotnet.framework.windowsforms.designtime)
  • Sonar Design
    ... This is about the allocation of program resources, and distributed design ... This section is from chapter 2 of the reference book in Advanced ... PowerBuilder 4 Techniques, pp. 6 which describes high-level concepts used to ... when designing an architecture for a application. ...
    (comp.lang.misc)
  • Re: Class Hierarchy design problems...
    ... incorrect design, although I am not entirely sure it is as clean cut as ... exist on that type (which causes the problem of being able to reference the ... ItemEditor via the Items indexer. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Call by reference in Java?
    ... > call by reference. ... > public void checkParameter(String strPreisProLiter, ... indicator that there is a flaw in your design. ... abstraction to fit the problem at hand. ...
    (comp.lang.java.help)