Differences
This shows you the differences between the selected revisions of the page.
2012-06-04 | 2012-06-07 | ||
alternative locations for gacutil (martin) | installing to gac on production system (martin) | ||
Line 14: | Line 14: | ||
Note that your runtime or development environment may copy the assembly into an another location. In that case you need to copy ''winscp.exe'' into that location too. E.g. If you reference WinSCP assembly from your project in Microsoft Visual Studio, it copies the assembly during build into the project //Output path// (e.g. ''<your_project_path>/obj/Debug''). Similar case is when you install the assembly into Global Assembly Cache (GAC). | Note that your runtime or development environment may copy the assembly into an another location. In that case you need to copy ''winscp.exe'' into that location too. E.g. If you reference WinSCP assembly from your project in Microsoft Visual Studio, it copies the assembly during build into the project //Output path// (e.g. ''<your_project_path>/obj/Debug''). Similar case is when you install the assembly into Global Assembly Cache (GAC). | ||
- | ==== [[gac]] Installing to GAC ==== | + | ===== [[gac]] Installing to GAC ===== |
- | If you want to install the assembly into Global Assembly Cache (GAC), particularly to use in from SSIS, use following command: | + | In special cases, you may need to install the assembly into Global Assembly Cache (GAC), particularly to use it from [[library_ssis|SSIS]]. |
+ | |||
+ | When you install the assembly to GAC, you need to use it, as if it is [[library_install#executablepath|installed to alternative location]]. | ||
+ | |||
+ | ==== On Development Machine ==== | ||
+ | To install the assembly into GAC on development machine, i.e. the one that has [[http://msdn.microsoft.com/en-us/library/ms717422.aspx|Windows SDK]] installed, use following command: | ||
<code> | <code> | ||
gacutil.exe /i WinSCP.dll | gacutil.exe /i WinSCP.dll | ||
</code> | </code> | ||
- | Use ''gacutil.exe'' from your version of .NET framework: | + | Windows SDK comes with Microsoft Visual Studio. You can also install it separatelly. |
- | * .NET framework 4.0: ''C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\gacutil.exe'' | + | |
- | * .NET framework 3.5: ''C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\gacutil.exe'' | + | |
- | When you install the assembly to GAC, you need to use it, as if it is [[library_install#executablepath|installed to alternative location]]. | + | Use correct ''gacutil.exe'' for your version of .NET framework: |
+ | * For .NET framework 4.0, use ''gacutil'' from Windows SDK 7.1 (or 7.0): ''C:\Program Files\Microsoft SDKs\Windows\v7.1\bin\gacutil.exe''; | ||
+ | * For .NET framework 3.5, use ''gacutil'' from Windows SDK 6.0: ''C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\gacutil.exe'' | ||
+ | |||
+ | ==== On Production or User's Machine ==== | ||
+ | To install the assembly into GAC on production or user's machine, you may install the assembly into GAC using: | ||
+ | * Windows Installer, by creating ''.msi'' package; | ||
+ | * Any other installer system that suppors installing to GAC, e.g. [[&url(innosetup)|Inno Setup]]; | ||
+ | * [[msdn>System.EnterpriseServices.Internal.Publish.GacInstall]] method. | ||
===== [[registering]] Registering for COM ===== | ===== [[registering]] Registering for COM ===== |