Re: create design time library using vs.net
From: Chris Tacke, eMVP (ctacke_at_spamfree-opennetcf.org)
Date: 11/01/04
- Next message: Melisa: "link label"
- Previous message: Sean Patterson: "RAPI Example/General Problems"
- In reply to: gerry: "create design time library using vs.net"
- Next in thread: gerry: "Re: create design time library using vs.net"
- Reply: gerry: "Re: create design time library using vs.net"
- Messages sorted by: [ date ] [ thread ]
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 > >
- Next message: Melisa: "link label"
- Previous message: Sean Patterson: "RAPI Example/General Problems"
- In reply to: gerry: "create design time library using vs.net"
- Next in thread: gerry: "Re: create design time library using vs.net"
- Reply: gerry: "Re: create design time library using vs.net"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|