Chilkat for .NET Core / .NET 5.0 / .NET 6.0
for Windows, Linux, and Mac OS X.
Note: This package works in projects that target .NET 5.0 and .NET 6.0
Chilkat .NET Core NuGet Package
The NuGet package is located at: Chilkat .NET Core NuGet Package
As an example, to use in Visual Studio 2015 Community Edition ...
- Create a new .NET Core application project. It can be a Console Application (.NET Core) or an ASP.NET Core Web Application (.NET Core). We'll choose Console Application.
- In the Solution Explorer, right-click on References. Choose Manage NuGet Packages...
- Set your Package source to "nuget.org". (This is likely the default and already selected.)
- Click on Browse and Search for ChilkatDnCore. Select it and Install.
- You may need to right-click on References (in Solution Explorer) and Restore Packages.
- In Program.cs add the following two lines to Main:
public static void Main(string[] args) { Chilkat.Rest rest = new Chilkat.Rest(); Console.WriteLine(rest.Version); }
- Build the app (F7).
- Set a breakpoint on the line just after Console.WriteLine.
- Press F5 to run in the debugger.
- Examine the contents of rest.Version. It should match the version you installed.
- Happy coding!
Using CLI on Windows, Mac OS X, and Linux (CentOS, Debian, Red Hat, Ubuntu, etc.)
- Install .NET Core
- Create the "Hello World" app in the normal fashion:
mkdir hwapp cd hwapp dotnet new
- Edit Program.cs and change the Main method to this:
public static void Main(string[] args) { Chilkat.Rest rest = new Chilkat.Rest(); Console.WriteLine(rest.Version); }
- Edit project.json and add the dependency for ChilkatDnCore
"dependencies": { "ChilkatDnCore": "9.5.0.72", "Microsoft.NETCore.App": { "type": "platform", "version": "1.0.0-rc2-3002702" } },
- Build and run:
dotnet restore dotnet run
Also See
- Reference Documentation: Chilkat C# Reference Documentation
- Example Code: Chilkat C# Example Code