Differences

This shows you the differences between the selected revisions of the page.

2018-11-09 2019-05-21
dot (martin) updating for visual studio 2017 (martin)
Line 8: Line 8:
===== Using from SSIS ===== ===== Using from SSIS =====
You use WinSCP .NET assembly from SSIS as any other .NET assembly: You use WinSCP .NET assembly from SSIS as any other .NET assembly:
-  * In Microsoft Visual Studio,((This guide is for Microsoft Visual Studio 2008. The steps may differ for other versions. Do not hesitate to update this document for other versions.)) in your "Integration Services Project", choose your "SSIS Package" (e.g. the default ''Package.dtsx''); +  * In Microsoft Visual Studio, in your "Integration Services Project", choose your "SSIS Package" (e.g. the default ''Package.dtsx''); 
-  * Drag //Script task// from //Toolbox// onto //Control flow// view of the package;+  * Drag //Script Task// from //SSIS Toolbox// onto //Control flow// view of the package;
  * In the context menu of the task, choose //Edit//;   * In the context menu of the task, choose //Edit//;
-  * On the //Script task editor// on //Script// page, click //Edit script// button; +  * On the //Script Task Editor// on the initial //Script// page, click //Edit Script// button; 
-  * Visual Studio Tools for Applications is run to edit the script;+  * Another instance of Visual Studio opens to edit the script project;
  * Use //Project > Add Reference > Browse// to add reference to ''winscpnet.dll'';   * Use //Project > Add Reference > Browse// to add reference to ''winscpnet.dll'';
-  * Place your C# or VB.NET code into ''ScriptMain.Main'' method (see example below); +  * Place your C# or VB.NET code into ''ScriptMain.Main'' method (see the example below); 
-  * Close Visual Studio Tools for Applications and //Script task editor// with //OK// button.+  * Close Visual Studio of the script project. Close //Script Task Editor// with //OK// button.
===== Deploying WinSCP .NET Assembly ===== ===== Deploying WinSCP .NET Assembly =====
Line 32: Line 32:
using WinSCP; using WinSCP;
-namespace ST_5a30686e70c04c5a8a93729fd90b8c79.csproj+namespace ST_5a30686e70c04c5a8a93729fd90b8c79
{ {
-    [AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]+    [SSISScriptTaskEntryPoint]
    public partial class ScriptMain : VSTARTScriptObjectModelBase     public partial class ScriptMain : VSTARTScriptObjectModelBase
    {     {

Last modified: by martin