PC Review


Reply
Thread Tools Rate Thread

Compileing to diffrent file extensions

 
 
Brian Henry
Guest
Posts: n/a
 
      14th May 2004
Hi everyone,

What I am doing in my application is I have a base app, then a bunch of
plug-in dll files. Well this gets confuseing to diferentiate between the
real plug-ins and the actual link libraries that are not to be used as
plugins (in reality they are both DLL files) is there anyway I could make
VS.NET compile my VB.NET DLL plug-in projects into a diffrent extension but
still be DLL files? (i dont feel like changeing tens of extensions by hand
each build) I'd like the extension to be something like .bdbPlugin instead
of .DLL for the plug-ins so i could also associate a file type with them and
give them custom icons with the file type association in windows... thanks!


 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      14th May 2004
* "Brian Henry" <brianiup[nospam]@adelphia.net> scripsit:
> What I am doing in my application is I have a base app, then a bunch of
> plug-in dll files. Well this gets confuseing to diferentiate between the
> real plug-ins and the actual link libraries that are not to be used as
> plugins (in reality they are both DLL files) is there anyway I could make
> VS.NET compile my VB.NET DLL plug-in projects into a diffrent extension but
> still be DLL files? (i dont feel like changeing tens of extensions by hand
> each build) I'd like the extension to be something like .bdbPlugin instead


AFAIS, you cannot do that, and I would not do it. Choose a name like
"MySample1.PlugIn.dll" or something like that.

> of .DLL for the plug-ins so i could also associate a file type with them and
> give them custom icons with the file type association in windows... thanks!


Did you ever see that for another application? I don't see much sense
in hiding the user the fact that the file actually contains code that
can be executed.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
 
Brian Henry
Guest
Posts: n/a
 
      14th May 2004
many applications do this to distinguish the different types of libraries
they may have created... it's a lot more prevelant in C++, which I am use to
doing it there. VB.NET seems to have more of a strangle on what you compile
files into. In C++ a lot of files that we and other companies make are
really compiled DLL files passed off as a diffrent type (AOL, Adobe, and MS
do this for some file types) to name a few.


"Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> * "Brian Henry" <brianiup[nospam]@adelphia.net> scripsit:
> > What I am doing in my application is I have a base app, then a bunch of
> > plug-in dll files. Well this gets confuseing to diferentiate between the
> > real plug-ins and the actual link libraries that are not to be used as
> > plugins (in reality they are both DLL files) is there anyway I could

make
> > VS.NET compile my VB.NET DLL plug-in projects into a diffrent extension

but
> > still be DLL files? (i dont feel like changeing tens of extensions by

hand
> > each build) I'd like the extension to be something like .bdbPlugin

instead
>
> AFAIS, you cannot do that, and I would not do it. Choose a name like
> "MySample1.PlugIn.dll" or something like that.
>
> > of .DLL for the plug-ins so i could also associate a file type with them

and
> > give them custom icons with the file type association in windows...

thanks!
>
> Did you ever see that for another application? I don't see much sense
> in hiding the user the fact that the file actually contains code that
> can be executed.
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      14th May 2004
* "Brian Henry" <brianiup[nospam]@adelphia.net> scripsit:
> many applications do this to distinguish the different types of libraries
> they may have created... it's a lot more prevelant in C++, which I am use to
> doing it there. VB.NET seems to have more of a strangle on what you compile
> files into. In C++ a lot of files that we and other companies make are
> really compiled DLL files passed off as a diffrent type (AOL, Adobe, and MS
> do this for some file types) to name a few.


Basically, that should not be a problem for .NET assemblies too, but VS
doesn't support changing the extension of the output. All you can do is
writing an add-in that creates a copy of the DLL with the new name after
completing the build. I didn't test it, but it may work.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
 
Chris Dunaway
Guest
Posts: n/a
 
      14th May 2004
On 14 May 2004 17:00:52 +0200, Herfried K. Wagner [MVP] wrote:

>
> Did you ever see that for another application? I don't see much sense
> in hiding the user the fact that the file actually contains code that
> can be executed.


Lots of apps do this. Just look at Windows Screen savers. They have a
..scr extension, but are nothing more than .dlls.

Also in Windows, control panel applets. They have an extension of .cpl but
are just a .dll.

How about PhotoShop plugins. They have different extensions (.8bf for
example), but are just .dll's

That's a very common thing to do, but I like your suggestion about the
naming, though.

The only way I can think to do it with .Net would be to use a custom build
action in a setup project that renames the file.


--
Chris

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      14th May 2004
* Chris Dunaway <"dunawayc[[at]_lunchmeat_sbcglobal[dot]]net"> scripsit:
>> Did you ever see that for another application? I don't see much sense
>> in hiding the user the fact that the file actually contains code that
>> can be executed.

>
> Lots of apps do this. Just look at Windows Screen savers. They have a
> .scr extension, but are nothing more than .dlls.


They are executables...

> Also in Windows, control panel applets. They have an extension of .cpl but
> are just a .dll.


ACK.

;-)

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
 
Brian Henry
Guest
Posts: n/a
 
      14th May 2004
still supports my cause though :P


"Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> * Chris Dunaway <"dunawayc[[at]_lunchmeat_sbcglobal[dot]]net"> scripsit:
> >> Did you ever see that for another application? I don't see much sense
> >> in hiding the user the fact that the file actually contains code that
> >> can be executed.

> >
> > Lots of apps do this. Just look at Windows Screen savers. They have a
> > .scr extension, but are nothing more than .dlls.

>
> They are executables...
>
> > Also in Windows, control panel applets. They have an extension of .cpl

but
> > are just a .dll.

>
> ACK.
>
> ;-)
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>



 
Reply With Quote
 
Chris Dunaway
Guest
Posts: n/a
 
      14th May 2004
On 14 May 2004 21:27:02 +0200, Herfried K. Wagner [MVP] wrote:

>> Lots of apps do this. Just look at Windows Screen savers. They have a
>> .scr extension, but are nothing more than .dlls.

>
> They are executables...
>


I knew this. I guess my fingers type faster than my brain thinks!

--
Chris

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
 
Reply With Quote
 
Steve McLellan
Guest
Posts: n/a
 
      18th May 2004
Hi,

Under project settings have a look at Linker, and under the General tab
there's an 'Output File' field. Change the extension to whatever you fancy.

Steve

"Brian Henry" <brianiup[nospam]@adelphia.net> wrote in message
news:(E-Mail Removed)...
> Hi everyone,
>
> What I am doing in my application is I have a base app, then a bunch of
> plug-in dll files. Well this gets confuseing to diferentiate between the
> real plug-ins and the actual link libraries that are not to be used as
> plugins (in reality they are both DLL files) is there anyway I could make
> VS.NET compile my VB.NET DLL plug-in projects into a diffrent extension

but
> still be DLL files? (i dont feel like changeing tens of extensions by hand
> each build) I'd like the extension to be something like .bdbPlugin instead
> of .DLL for the plug-ins so i could also associate a file type with them

and
> give them custom icons with the file type association in windows...

thanks!
>
>



 
Reply With Quote
 
Brian Henry
Guest
Posts: n/a
 
      19th May 2004
no clue what you're talking about here, there is no linker properties in
VB.NET project settings... and the only output file field i see is a static
field


"Steve McLellan" <sjm.NOSPAM AT fixerlabs DOT com> wrote in message
news:OoAM%(E-Mail Removed)...
> Hi,
>
> Under project settings have a look at Linker, and under the General tab
> there's an 'Output File' field. Change the extension to whatever you

fancy.
>
> Steve
>
> "Brian Henry" <brianiup[nospam]@adelphia.net> wrote in message
> news:(E-Mail Removed)...
> > Hi everyone,
> >
> > What I am doing in my application is I have a base app, then a bunch of
> > plug-in dll files. Well this gets confuseing to diferentiate between the
> > real plug-ins and the actual link libraries that are not to be used as
> > plugins (in reality they are both DLL files) is there anyway I could

make
> > VS.NET compile my VB.NET DLL plug-in projects into a diffrent extension

> but
> > still be DLL files? (i dont feel like changeing tens of extensions by

hand
> > each build) I'd like the extension to be something like .bdbPlugin

instead
> > of .DLL for the plug-ins so i could also associate a file type with them

> and
> > give them custom icons with the file type association in windows...

> thanks!
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i play a diffrent background audio on diffrent slides =?Utf-8?B?bml2ZWs=?= Microsoft Powerpoint 1 22nd May 2006 05:33 AM
Problems 'compileing' Access file Damir Dezeljin Microsoft Access 5 18th Apr 2005 05:37 AM
Deliver mails from diffrent account into diffrent folders hamid baghi Microsoft Outlook 1 5th Jan 2005 08:36 PM
Diffrent cell on diffrent date? NeWcS Microsoft Excel New Users 4 7th Aug 2004 04:37 AM
Compileing to diffrent file extensions Brian Henry Microsoft Dot NET 2 19th May 2004 02:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:00 PM.