|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Problem with two version of program in one code and class referencI am working on one project but it has 2 version(A and B). In version B, its
function is the same as in version A, except there is some extend function that will reference one class ( .dll file), for example C.dll. What I want is when compile version A, the exe file will not has C.dll as its reference? Can VB.NET do that? hi Krich, what do you mean " is the same as in version A". If they are
the same would require same references. It's not clear, can you produce a simplified code? Also consider revising your code organization, I have some impression you are calling for future troubles... -tom Krich ha scritto: Show quoteHide quote > I am working on one project but it has 2 version(A and B). In version B, its > function is the same as in version A, except there is some extend function > that will reference one class ( .dll file), for example C.dll. > > What I want is when compile version A, the exe file will not has C.dll as > its reference? Can VB.NET do that? and the future is now.
<tommaso.gasta***@uniroma1.it> wrote in message Show quoteHide quote news:1153394958.343064.318720@i42g2000cwa.googlegroups.com... > hi Krich, what do you mean " is the same as in version A". If they are > the same > would require same references. It's not clear, can you produce a > simplified code? > > Also consider revising your code organization, I have some impression > you are calling > for future troubles... > > -tom > > Krich ha scritto: > >> I am working on one project but it has 2 version(A and B). In version B, >> its >> function is the same as in version A, except there is some extend >> function >> that will reference one class ( .dll file), for example C.dll. >> >> What I want is when compile version A, the exe file will not has C.dll as >> its reference? Can VB.NET do that? > Krich wrote:
> I am working on one project but it has 2 version(A and B). In version B, its No.> function is the same as in version A, except there is some extend function > that will reference one class ( .dll file), for example C.dll. > > What I want is when compile version A, the exe file will not has C.dll as > its reference? Can VB.NET do that? The references are held in the Project File and this can't contain Conditional Compilation directives like the Source code can so "conditionally" removing a reference can't be done. Does this actually matter? I don't think so. Since .Net programs are "compiled" on a /per-method/ basis at run-time, having the reference there /shouldn't/ matter. It's only if your code actually uses anything in the referenced assembly that things will go wrong. With Conditional Compilation directives around the code you want to exclude, the extra reference will simply be ignored. If you /really/ feel the need to remove the reference in the cut-down version, you'll need to set up parallel Solution and Project files (both using the same source code) and comple each version separately. HTH, Phill W.
array element isexist ?
How much disk space is needed... Deriving from Abstract Classes with Enums and Varying Object Types .Net and 32 processors System.OverflowException during IPostBackDataHandler.LoadPostData Menus from a database table and addhandler EDITITEMTEMPLATE FINDCONTROL PROBLEM Holding down keys II Error Compiling unhandled SecurityException in Visual Basic 2005 Express |
|||||||||||||||||||||||