This recipe creates a basic C# desktop application that enables a user to select a project from a drop-down list, and then create a new issue in Redmine, taking the data from the form's fields.
To create C# client for Redmine, we either need a ready-made C# library, or access to the Redmine API directly and parse responses, which is much more complicated. To create a sample C# app, follow these steps:
Start Visual Studio and create a new project, choose Windows Forms Application:
Name it RedmineTest and click OK.
Download from the Internet the https://github.com/zapadi/redmine-net-api library or use NuGet to install the Redmine package. To install via NuGet, follow these steps:
Right-click References in Solution Explorer and click Manage NuGet Packages.
In the Search box type Redmine and press Enter.
Choose the latest version and click Install: