This article will help you configure your server-side
Your server-side project can be found in the
serverside/src folder in the root of your target repository.
MSBuild is the build tool which handles the running, building, testing and packaging of your application to deploy. It handles dependencies and can run custom tasks.
.csproj provides an XML Schema for a project file which controls how MSBuild processes and builds your application. This file contains dependencies and custom tasks.
Added Server-side Dependencies
If you want to add a project or external dependency to your C# server-side, you can simply add a package reference or reference a NuGet repository. You can find the dependencies in the
<PackageReference Include="Serilog.Settings.Configuration" Version="3.1.0" /> <PackageReference Include="Swashbuckle.AspNetCore" Version="5.0.0-rc4" /> <PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="3.1.2" /> <PackageReference Include="Z.EntityFramework.Plus.EFCore" Version="3.0.40" />
A dependency can be added by enabling the
Add any further imports here protected region and adding project references. The main repository of packages can be found on nuget.org.
For example to add RestSharp to the server-side:
<PackageReference Include="RestSharp" Version="106.10.1" />
For more comprehensive information on the
.csproj file structure, take a look at the MSBuild project file schema reference in the Microsoft documentation.