Difference between revisions of "Truxton .NET Core"

From truxwiki.com
Jump to navigation Jump to search
Line 7: Line 7:
  
 
==Getting Started==
 
==Getting Started==
Truxton .NET Core ETLs are simply .Net Core 3.1 console exes that include references to the the Truxton .NET Core libraries. So to get started we'll choose the appropriate project style in [https://visualstudio.microsoft.com/downloads/ Visual Studio 2019 Community].
+
Truxton .NET Core ETLs are simply .Net Core 3.1 console exes that include references to the the Truxton .NET Core libraries.  
  
* First, Launch [https://visualstudio.microsoft.com/downloads/ Visual Studio 2019 Community] and select "Create a New Project"
+
===Prerequisites===
 +
You will first need to install the [https://dotnet.microsoft.com/download/dotnet-core/3.1 .NET Core 3.1 SDK]. '''IMPORTANT''' You must choose the Windows x64 SDK. It is recommended to install using the windows installer. [https://dotnet.microsoft.com/download/dotnet-core/thank-you/sdk-3.1.404-windows-x64-installer Here is a link to the latest 3.1 SDK - 3.1.404] (newer versions might be available when you read this).
 +
 
 +
Once you have the SDK installed, install [https://visualstudio.microsoft.com/downloads/ Visual Studio 2019 Community].
 +
 
 +
===Project Setup===
 +
Now lets choose the appropriate project style to begin building our ETL.
 +
 
 +
* First, Launch [https://visualstudio.microsoft.com/downloads/ Visual Studio 2019 Community] and select '''Create a New Project'''
 +
* Select Language: '''C#''', Platform: '''Windows''', Project Type: '''Console'''. Choose the '''Console App (.NET Core)''' template and click '''Next'''
 +
* Choose a suitable name and location for your ETL and click '''Create'''
  
 
==Truxton DLL References==
 
==Truxton DLL References==

Revision as of 13:43, 16 November 2020

Truxton .NET Core builds upon the Truxton.ETL Managed API and introduces dotnet core features like dependency injection, configuration and idiomatic message consumer patterns.

It is recommended to use this SDK for most C# ETLs.

Overview

Truxton .NET Core runs against .Net Core 3.1 on windows 10 on 64-bit platforms (TargetFramework: netcoreapp3.1, RuntimeIdentifier: win10-x64).

Getting Started

Truxton .NET Core ETLs are simply .Net Core 3.1 console exes that include references to the the Truxton .NET Core libraries.

Prerequisites

You will first need to install the .NET Core 3.1 SDK. IMPORTANT You must choose the Windows x64 SDK. It is recommended to install using the windows installer. Here is a link to the latest 3.1 SDK - 3.1.404 (newer versions might be available when you read this).

Once you have the SDK installed, install Visual Studio 2019 Community.

Project Setup

Now lets choose the appropriate project style to begin building our ETL.

  • First, Launch Visual Studio 2019 Community and select Create a New Project
  • Select Language: C#, Platform: Windows, Project Type: Console. Choose the Console App (.NET Core) template and click Next
  • Choose a suitable name and location for your ETL and click Create

Truxton DLL References

The ETL Host

Dependency Injection

Common Truxton Interfaces To Inject

Injecting Your Own Dependencies

Outside Configuration

Consumers

IFileConsumer

Broadcasting To Others