/
Using Stub Externals
Using Stub Externals
Create A BuildSet
This page describes the Prototype strategy for handling externals.Create Prototype Assemblies
The prototype strategy begins with a migration of your VB6/ASP/COM codebase to .NET such that your VB6 code becomes corresponding .NET code and the referenced COM binaries become .NET projects called Prototype Assemblies.- Run Translation and aggregate a detailed list of external dependencies,
- Deploy .NET project(s) for each migration unit,
- Generate/Deploy/Build External prototype assemblies, and
- Build .NET migration unit project(s)
- samples\workspace\DemoScanTool\deploy\Extern\gmRTL.Core\MigrationSupport.csproj
- samples\workspace\DemoScanTool\deploy\Extern\MSComDlg_csh\MSComDlg.csproj
- samples\workspace\DemoScanTool\deploy\Extern\MSXML2_csh\MSXML2.csproj
- samples\workspace\DemoScanTool\deploy\Extern\Scripting_csh\Scripting.csproj
- samples\workspace\DemoScanTool\deploy\Extern\TLI_csh\TLI.csproj
- samples\workspace\DemoScanTool\deploy\ScanToolLib_pro_csh\ScanToolLib.csproj
- samples\workspace\DemoScanTool\deploy\ScanToolUI_pro_csh\ScanToolUI.csproj
Finishing the Prototype Strategy
The prototype strategy is a general means of beginning a migration effort that assumes you wish to take advantage of .NET code to replace external COM components rather than using Interop.- They are available as source code
- They are simplified to only include the elements of the COM library that were actually used by the source codebase.
- They are stubs so they do not call or depend on the original COM components.
- Re-engineering the application code to use a completely different target component -- one that you buy, build, or borrow (from open source or from the .NET framework).
- Fleshing out the prototype assemblies as pure .NET code, typically leveraging framework classes, inheritance, or extension methods.
- Leveraging Interop where it makes sense.
- Use a combination of the above techniques.