FiapGames.Contracts 1.1.0

dotnet add package FiapGames.Contracts --version 1.1.0
                    
NuGet\Install-Package FiapGames.Contracts -Version 1.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FiapGames.Contracts" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FiapGames.Contracts" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="FiapGames.Contracts" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FiapGames.Contracts --version 1.1.0
                    
#r "nuget: FiapGames.Contracts, 1.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FiapGames.Contracts@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FiapGames.Contracts&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=FiapGames.Contracts&version=1.1.0
                    
Install as a Cake Tool

FiapGames.Contracts

Shared messaging contracts (integration events) used across the FiapGames microservices for asynchronous communication (e.g. via message broker).

Contracts

All contracts live under FiapGames.Contracts/IntegrationEvents/:

  • UserCreatedEvent — published when a new user is created.
  • OrderPlacedEvent — published when an order is placed. Contains at least UserId, GameId and Price.
  • PaymentProcessedEvent — published when a payment finishes processing, with Status set to Approved or Rejected.

Installing

Once published, the package is available on NuGet.org:

dotnet add package FiapGames.Contracts

Publishing / updating the NuGet package

This project is configured to pack on build (GeneratePackageOnBuild). To release a new version to nuget.org:

  1. Bump <Version> in FiapGames.Contracts/FiapGames.Contracts.csproj (follow SemVer).
  2. Clean the previous build output before rebuilding, to avoid packing stale/leftover artifacts:
    dotnet clean FiapGames.Contracts/FiapGames.Contracts.csproj -c Release
    
  3. Build an updated Release build with the bumped version:
    dotnet build FiapGames.Contracts/FiapGames.Contracts.csproj -c Release
    
    Since GeneratePackageOnBuild is enabled, this also produces an updated .nupkg/.snupkg under FiapGames.Contracts/bin/Release/. Alternatively, dotnet pack can be used instead of dotnet build:
    dotnet pack FiapGames.Contracts/FiapGames.Contracts.csproj -c Release
    
  4. Get/refresh an API key from nuget.org/account/apikeys (scoped to the FiapGames.Contracts package).
  5. Push the package:
    dotnet nuget push FiapGames.Contracts/bin/Release/FiapGames.Contracts.<version>.nupkg \
      --api-key <YOUR_NUGET_API_KEY> \
      --source https://api.nuget.org/v3/index.json
    
  6. Commit and push the version bump, and tag the release:
    git tag v<version>
    git push origin main --tags
    

Store the NuGet API key as a secret (e.g. GitHub Actions secret NUGET_API_KEY) if/when this is automated via CI instead of pushed manually.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 141 7/5/2026
1.0.0 125 6/21/2026