beforeCreateServerCsproj(
  _: dotnetTypes.DsgContext,
  eventParams: dotnet.CreateServerCsprojParams
) {
  eventParams.packageReferences.push({
    include: "Npgsql.EntityFrameworkCore.PostgreSQL",
    version: "8.0.4",
  });

  return eventParams;
}

Event Name

CreateServerCsproj

Event Parameters

propertyGroup
Record<string, string>

Key-value pairs of properties to update within the <PropertyGroup> section of the .csproj file.

packageReferences
Array

An array of package references to add or update in the <ItemGroup> section of the .csproj file. Each item is an object with the following structure:

beforeCreateServerCsproj(
  _: dotnetTypes.DsgContext,
  eventParams: dotnet.CreateServerCsprojParams
) {
  eventParams.packageReferences.push({
    include: "Npgsql.EntityFrameworkCore.PostgreSQL",
    version: "8.0.4",
  });

  return eventParams;
}