Questions about c# dll

C

C#Newbie

HI all,

Just a simple question about c# dll. Out of curiousity, if I create a
dll from c# and I want another non-.net application to use it, do I
still need to include .net framework in the installation package?

Thanks.
 
T

Tom Porterfield

C#Newbie said:
Just a simple question about c# dll. Out of curiousity, if I create a
dll from c# and I want another non-.net application to use it, do I
still need to include .net framework in the installation package?

Short answer is the frameword is required for the C# dll.

The C# dll will require the .NET framework in order to run. It doesn't
matter what type of process loads the dll, the dll needs the framework.

Whether or not you need to include the framework in your installation
package depends on your client base and whether or not they would already
have the framework installed. Do you want to include the framework for
those who might not have it? Or do you want to provide info on how they can
download/install the framework from the MS website.
 
C

C#Newbie

Tom said:
Short answer is the frameword is required for the C# dll.

The C# dll will require the .NET framework in order to run. It doesn't
matter what type of process loads the dll, the dll needs the framework.

Whether or not you need to include the framework in your installation
package depends on your client base and whether or not they would already
have the framework installed. Do you want to include the framework for
those who might not have it? Or do you want to provide info on how they can
download/install the framework from the MS website.


My goal is to include a dll for a program language from another company
and I am used to C# now that I can create the dll faster with C#. Now,
that program will be given to other people to run in their computer. So
I need to insall the .net framework in their computer.
 
J

Jianwei Sun

C#Newbie said:
My goal is to include a dll for a program language from another company
and I am used to C# now that I can create the dll faster with C#. Now,
that program will be given to other people to run in their computer. So
I need to insall the .net framework in their computer.

It's not just about .Net framwork, if your program (dll) depends on
anything else, then you need to install that dependency whether it's a
..Net framework or something else..

But I think .Net framework may already exist on your client's computer
if they already use some programs depending on .Net framework too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top