locked
Deploy dll to assembly folder in windows server 2016 RRS feed

  • Question

  • User1672366045 posted
    Hi I compiled a dll with .netframework 4.6 and want to deploy to a server ,which has windows server 2016 , what is the right command and path for deploy this dll to assembly folder.
    Monday, January 7, 2019 7:25 PM

All replies

  • User1120430333 posted

    What is an assembly folder? Do you mean Bin folder? What about Xcopy?

    Monday, January 7, 2019 8:57 PM
  • User61956409 posted

    Hi adilahmed,

    Please clarify more about your scenario and requirement, so that we can understand the question/problem better.

    I compiled a dll with .netframework 4.6 and want to deploy to a server ,which has windows server 2016

    You can try to remote to your server and copy&paste the compiled dll to specific folder that you want.

    With Regards,

    Fei Han

    Tuesday, January 8, 2019 3:18 AM
  • User1672366045 posted

    In windows server 2016

    I want PowerShell Command for deploy this DLL.

    I want to deploy to C:\Windows\assembly folder 

    when I go to this path C:\Windows\Microsoft.NET\assembly I found three folders, from this which one is the correct path for. net assemblies

    GAC_32
    GAC_64
    GAC_MSIL

    Tuesday, January 8, 2019 8:43 AM
  • User1672366045 posted

    <g class="gr_ gr_92 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-ins replaceWithoutSep" id="92" data-gr-id="92">HI</g> how can <g class="gr_ gr_13 gr-alert gr_tiny gr_spell gr_inline_cards gr_run_anim ContextualSpelling multiReplace" id="13" data-gr-id="13">i</g> check the <g class="gr_ gr_19 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="19" data-gr-id="19">oldversion</g> of <g class="gr_ gr_30 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="30" data-gr-id="30">dll</g> installed ? or what is the command to uninstall <g class="gr_ gr_73 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="73" data-gr-id="73">oldversion</g> <g class="gr_ gr_91 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="91" data-gr-id="91">dll</g> from gac?

    Sunday, January 13, 2019 11:36 AM
  • User753101303 posted

    According to the documentation link  I posted earlier it would be gacutil /l <assemblyName> to list what you have installed (if I remember you can use wildcards) and /u for uninstalling. Could you please check the provided documentation.

    Note that you can perfectly install multiple versions of the same assembly.

    Edit: make sure also using the GAC is really your best option. You can reference a project or your own nuget feed and have the DLL being included as part of your application deployment.

    Sunday, January 13, 2019 12:25 PM