Goa.Core 0.0.2-preview.2.1

This is a prerelease version of Goa.Core.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Goa.Core --version 0.0.2-preview.2.1
                    
NuGet\Install-Package Goa.Core -Version 0.0.2-preview.2.1
                    
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="Goa.Core" Version="0.0.2-preview.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Goa.Core" Version="0.0.2-preview.2.1" />
                    
Directory.Packages.props
<PackageReference Include="Goa.Core" />
                    
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 Goa.Core --version 0.0.2-preview.2.1
                    
#r "nuget: Goa.Core, 0.0.2-preview.2.1"
                    
#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 Goa.Core@0.0.2-preview.2.1
                    
#: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=Goa.Core&version=0.0.2-preview.2.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Goa.Core&version=0.0.2-preview.2.1&prerelease
                    
Install as a Cake Tool

Goa.Core

Core utilities and shared functionality for the Goa framework. This package provides foundational components that are shared across all Goa libraries.

Installation

dotnet add package Goa.Core

Features

  • Native AOT support for faster Lambda cold starts
  • Core utilities and helper methods
  • Shared abstractions and interfaces
  • Lightweight dependency injection extensions
  • Common error handling patterns
  • Minimal dependencies for optimal performance

Overview

Goa.Core provides the foundational building blocks for the entire Goa framework, including:

  • Core abstractions used by AWS service clients
  • Shared utility methods and extensions
  • Common interfaces for dependency injection
  • Base error handling and result patterns
  • Performance-optimized implementations

Usage

This package is typically used as a dependency by other Goa packages rather than directly in application code. However, it provides useful utilities that can be leveraged:

using Goa.Core;
using Microsoft.Extensions.DependencyInjection;

// Register core services
services.AddGoaCore();

// Use core utilities
var result = GoaUtilities.ValidateAwsArn(arnString);

Dependency Injection Extensions

using Goa.Core.Extensions;
using Microsoft.Extensions.DependencyInjection;

var services = new ServiceCollection();

// Add core logging and configuration
services.AddGoaLogging();
services.AddGoaConfiguration();

Error Handling Patterns

using Goa.Core.Results;

public async Task<Result<User>> GetUserAsync(string id)
{
    if (string.IsNullOrEmpty(id))
    {
        return Result.Failure<User>("User ID is required");
    }
    
    try
    {
        var user = await _repository.GetAsync(id);
        return Result.Success(user);
    }
    catch (Exception ex)
    {
        return Result.Failure<User>($"Failed to get user: {ex.Message}");
    }
}

Documentation

For more information and examples, visit the main Goa documentation.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Goa.Core:

Package Downloads
Goa.Functions.Core

Core runtime and bootstrapping functionality for high-performance AWS Lambda functions

Goa.Clients.Core

Base functionality and abstractions for all Goa AWS service clients

Goa.Functions.Kinesis

Kinesis stream processing for high-performance AWS Lambda functions

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.3-preview.1 51 8/23/2025
0.0.2-preview.2.3 111 8/18/2025
0.0.2-preview.2.2 137 8/17/2025
0.0.2-preview.2.1 87 8/17/2025
0.0.2-preview.2 272 8/9/2025
0.0.0-alpha.0.32 169 12/7/2024
0.0.0-alpha.0.29 97 12/4/2024
0.0.0-alpha.0.20 92 10/27/2024