Steps needed when deploying C# application?

  • Thread starter Thread starter Mark Ingram
  • Start date Start date
M

Mark Ingram

Hi, what steps do i need to undertake before / when i deploy a c#
application?

Generate strong name key?
Add the file to the GAC?

What else?
 
Mark,

You don't necessarily ^have^ to generate a strong name key, nor do you
have to add your assemblies to the GAC.

The #1 prerequisite is of course to have the .NET framework installed.
Beyond that, what you need to do is dependent on the structure of your
program.

If you want to add assemblies to the GAC, then yes, you will have to
generate a strong name key. If you have COM interop assemblies, then you
might want to make sure that your COM components are installed as well on
the target machine. Serviced components also have to be strong named.

Is there anything in your program that is not purely .NET? That should
tell you the things you have to be aware of.

Hope this helps.
 
Nicholas said:
Mark,

You don't necessarily ^have^ to generate a strong name key, nor do you
have to add your assemblies to the GAC.

The #1 prerequisite is of course to have the .NET framework installed.
Beyond that, what you need to do is dependent on the structure of your
program.

If you want to add assemblies to the GAC, then yes, you will have to
generate a strong name key. If you have COM interop assemblies, then you
might want to make sure that your COM components are installed as well on
the target machine. Serviced components also have to be strong named.

Is there anything in your program that is not purely .NET? That should
tell you the things you have to be aware of.

Hope this helps.

We've got 2 C# apps and 1 native C/C++ app. The C# apps share common
custom controls we've developed. I thought it was important to add your
files to the GAC to stop version conflicts (as it always stores each
version of a file you register)?


I thought if we set the option when building to only build with a
specific version, that would help with version control too?
 
Back
Top