Click here to Skip to main content
15,888,351 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralThreading help! Pin
kaptaintens31-Oct-04 11:31
kaptaintens31-Oct-04 11:31 
GeneralRe: Threading help! Pin
bl4ck1c331-Oct-04 13:37
bl4ck1c331-Oct-04 13:37 
GeneralRe: Threading help! Pin
kaptaintens31-Oct-04 13:46
kaptaintens31-Oct-04 13:46 
GeneralVb.Net & Yahoo Pin
Meysam.Khayatan31-Oct-04 8:56
Meysam.Khayatan31-Oct-04 8:56 
GeneralNested Loops Pin
compkitty729-Oct-04 5:43
compkitty729-Oct-04 5:43 
GeneralRe: Nested Loops Pin
Nicholas Cardi29-Oct-04 5:53
Nicholas Cardi29-Oct-04 5:53 
GeneralRe: Nested Loops Pin
CotactMayur14-Nov-04 2:46
CotactMayur14-Nov-04 2:46 
GeneralRun-time,design-time component Pin
Edward Diener28-Oct-04 14:17
Edward Diener28-Oct-04 14:17 
I am interested in dividing my components into run-time and design-time components. I want to do this so that code I only need for design time is not included in the run-time component, which is shipped to an end-user. The design time component would only be needed by the programmer when making use of the design-time capabilities of my component, such as using it in the Windows form designer.

It does not appear this is possible in .NET. I can still certainly divide my component into two different assemblies, one for run-time code and one for design-time code. But it seems there are two reasons that I can not make the sort of clean division in which both assemblies need to be available at design time while the run-time assembly only needs to be available at run-time.

The first reason is that the classes I use for my design time code, derived from System.ComponentModel, do not necessarily only pertain to design time functionality. According to the documentation on type converters, as an example, they might apply both to design time and run-time. There seems no way to specify that a type converter, which I would put in my design-time assembly should only pertain to design-time code.

Secondly to use the classes in my design time assembly at design time, I must provide attributes for the types and properties to which the design-time classes pertain in my run-time assembly and, since the attributes refer to classes in another assembly, the run-time assembly must reference that other design-time assembly. This effectively ties my run-time assembly to these classes which I only want to use at design time.

Has this issue been addressed or discussed anywhere ? It does seem to me wasteful that .NET classes which I create only for design-time functionality needs to be distributed to the end-user by a programmer who uses my component, even though the end-user will never need the functionality. Furthermore I see no way to tell .NET that the casses which I create for design-time functionality should only be used at design time and not run-time.

Because of these issues, I have a feeling that there must be a way to create a design time assembly for my component which does not have to be unnecessarily shipped to end-users as part of run-time execution. Does anybody know how to do this ?


Edward Diener
GeneralListViewItem Height Pin
sridhar_india28-Oct-04 9:13
sridhar_india28-Oct-04 9:13 
GeneralRe: Killing a process Pin
YXZ28-Oct-04 7:22
YXZ28-Oct-04 7:22 
GeneralRe: Killing a process Pin
Stanciu Vlad29-Oct-04 5:00
Stanciu Vlad29-Oct-04 5:00 
GeneralRe: Killing a process Pin
YXZ29-Oct-04 9:53
YXZ29-Oct-04 9:53 
GeneralHelp Prob: not recognised as MDIContainer Pin
dazzler227-Oct-04 20:28
dazzler227-Oct-04 20:28 
GeneralKilling a process Pin
YXZ27-Oct-04 11:07
YXZ27-Oct-04 11:07 
GeneralRe: Killing a process Pin
Stanciu Vlad27-Oct-04 20:02
Stanciu Vlad27-Oct-04 20:02 
GeneralWindows Media Player v10 Color shading Pin
Tony D. Abel27-Oct-04 7:53
Tony D. Abel27-Oct-04 7:53 
GeneralSqlCEDataAdapter problem. How can I update ? Dataset has the changes. Pin
vasper27-Oct-04 3:27
professionalvasper27-Oct-04 3:27 
Generalcan't see events for my form Pin
sagmam26-Oct-04 1:06
sagmam26-Oct-04 1:06 
GeneralDeploying windows applications Pin
Britnt725-Oct-04 10:53
Britnt725-Oct-04 10:53 
GeneralRe: Deploying windows applications Pin
Steve Maier25-Oct-04 11:12
professionalSteve Maier25-Oct-04 11:12 
GeneralRe: Deploying windows applications Pin
Britnt726-Oct-04 2:02
Britnt726-Oct-04 2:02 
GeneralRe: Deploying windows applications Pin
Steve Maier26-Oct-04 5:31
professionalSteve Maier26-Oct-04 5:31 
GeneralRe: Deploying windows applications Pin
Britnt726-Oct-04 5:37
Britnt726-Oct-04 5:37 
GeneralRe: Deploying windows applications Pin
Trankil26-Oct-04 1:15
Trankil26-Oct-04 1:15 
GeneralRe: Deploying windows applications Pin
Britnt726-Oct-04 2:07
Britnt726-Oct-04 2:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.