The base of all Belp SDKs: contains common features shared by Belp SDKs.
Important
Remaining code has been merged with Belp.SDK.Packinf and Belp.SDK.Common discontinued.
It is not recommended to install Belp.SDK.Common directly.
- A project written in SDK-style. This includes any project for .NET Core(or newer) or .NET 5(or newer).
- Locate the project file(for example,
Project.csproj,Project.fsproj). - Open the project file in an editor.
- Add a new
Sdkelement under the rootProjectelement with theNameattribute set toBelp.SDK.Commonand theVersionattribute set to1.0.0. For example,<Sdk Name="Belp.SDK.Common" Version="1.0.0" />.
Belp.SDK.Common is additive and functions in conjunction with another SDK, such as Microsoft.NET.Sdk. It is recommended to import Belp.SDK.Common's Sdk.props before any others, and import its Sdk.targets after all others.
- Run
dotnet packwith the-p:DevelopmentNuGet=trueargument. - Export or set the environment variable
DevelopmentNuGetto true.
The NuGet package will be pushed to a source named tmp. If the source doesn't exist, create a new local NuGet source with dotnet nuget add source <SOURCE_PATH> --name tmp.
- Install the .NET 7.0 SDK version 7.0.100 or newer.
- Open
Belp.SDK.Common.sln. - Open the Solution Explorer.
- Right click on the project
Belp.SDK.Commonin the Solution Explorer. - Click on
Pack.
- Open a terminal in the repository root.
- Run
dotnet pack
By default, the output is located in src/Belp.SDK.Common/Belp.SDK.Common/bin/Release/.