Steps needed when deploying C# application?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark Ingram

    #1

    Steps needed when deploying C# application?

    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?
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Steps needed when deploying C# application?

    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 Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Mark Ingram" <no.one@nowhere .com> wrote in message
    news:ecSAs6ZLGH A.2064@TK2MSFTN GP09.phx.gbl...[color=blue]
    > 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?[/color]


    Comment

    • Doru Roman

      #3
      Re: Steps needed when deploying C# application?

      Is there a link where we can download the framework from for free?


      Comment

      • Mark Ingram

        #4
        Re: Steps needed when deploying C# application?

        Nicholas Paldino [.NET/C# MVP] wrote:[color=blue]
        > 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.
        >[/color]

        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?

        Comment

        Working...