Skip to content

Setting Up a Blackbird Project

Create a .NET class library and add the Blackbird SDK. The complete action example is checked against .NET 8 and Blackbird.Applications.Sdk.Common 2.17.0, the version used by the local Lake App repository. This is a tested example version, not a requirement to downgrade an existing App.

Terminal window
dotnet new classlib --name Apps.YourApp --framework net8.0
cd Apps.YourApp
dotnet add package Blackbird.Applications.Sdk.Common --version 2.17.0
dotnet build --configuration Release

Add the minimal complete App for a credential-free implementation with application, connection, and action types. Then follow Connections when adding an authenticated service, and Deployment for the publish archive.

  • Git installed on your local machine. For this tutorial we assume you have a basic understanding of Git (if starting from a template).
  • Install Visual Studio for Windows with the .NET desktop development workload. You can download and install the 2022 Community edition for free, or use the Professional or Enterprise edition. Alternatively you can use any other .NET IDE environment like Rider or VS Code with the necessary plugins.
  • .NET 8 (or higher) installed on your machine.
  1. In Visual Studio, select File > New > Project.
  2. In the Create a new project window, enter Class Library in the search box and select C# and in the dropdown lists. In the resulting list of project templates, select Class Library and then select Next.
  3. In the Configure your new project window, update the Project name and the Solution name, and then select Next.
  4. Select .NET 8.0 (or the latest version) for Framework in the Additional information window, then select Create.

Visual Studio creates the project, and it appears in the Solution Explorer.

Depending on your project format, the installation of a NuGet package records the dependency in either your project file or a packages.config file. For more information, see Package consumption workflow.

To use the NuGet Package Manager to install the Blackbird.Applications.Sdk.Common package in Visual Studio, follow these steps:

  1. Select Project > Manage NuGet Packages.
  2. On the NuGet Package Manager page, choose nuget.org as the Package source.
  3. From the Browse tab, search for Blackbird.Applications.Sdk.Common, select Blackbird.Applications.Sdk.Common in the list, and then select Install.
  4. When you are prompted to verify the installation, select OK.

nuget

Clone the template app repository from the command line using:

Terminal window
git clone https://github.com/bb-io/TemplateApp.git

Open the solution file and explore the project

Clone the repository of the app you want to modify. You can find all Blackbird’s repositories here.

Deploy modifications as your own custom App. Change its Product, PackageId, and AssemblyName identifiers as shown below, then follow the deployment guide.

Blackbird uses properties defined in the .csproj file to populate metadata fields. For most custom apps, only the Version and AssemblyName are relevant (the other properties are defined in the UI). When uploading a newer version of an existing app, make sure the version number is higher.

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Product>YourApp</Product>
<Description>Connect your content service to Blackbird</Description>
<Version>1.0.0</Version>
<AssemblyName>Apps.YourApp</AssemblyName>
<PackageId>Apps.YourApp</PackageId>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Blackbird.Applications.Sdk.Common" Version="2.17.0" />
</ItemGroup>
</Project>

Use identifiers unique to your App. Increase Version when uploading a new version of that App. See Deployment for packaging and upload steps.