Omnia.FileAzure
9.0.2
See the version list below for details.
dotnet add package Omnia.FileAzure --version 9.0.2
NuGet\Install-Package Omnia.FileAzure -Version 9.0.2
<PackageReference Include="Omnia.FileAzure" Version="9.0.2" />
<PackageVersion Include="Omnia.FileAzure" Version="9.0.2" />
<PackageReference Include="Omnia.FileAzure" />
paket add Omnia.FileAzure --version 9.0.2
#r "nuget: Omnia.FileAzure, 9.0.2"
#:package Omnia.FileAzure@9.0.2
#addin nuget:?package=Omnia.FileAzure&version=9.0.2
#tool nuget:?package=Omnia.FileAzure&version=9.0.2
Omnia.FileAzure
This project contains helpers and a simple BlobRepository implementation for Azure Blob Storage used by the Omnia codebase.
Packaging (NuGet)
Build the release package:
dotnet pack -c Release
The produced package will appear in bin/Release with the pattern Omnia.FileAzure.*.nupkg.
To push the package to nuget.org (replace the API key with your own):
dotnet nuget push bin/Release/Omnia.FileAzure.<version>.nupkg --api-key <YOUR_API_KEY> --source https://api.nuget.org/v3/index.json
Note: There's an example
publish.txtin the project root showing a sample push command. Do NOT commit real API keys into source control.
Running Integration Tests (Azurite)
These tests require Azurite running locally. The repository provides a docker-compose-azurite.yml that starts Azurite exposing ports 10000-10002.
Start Azurite with Docker Compose:
docker-compose -f ..\docker-compose-azurite.yml up -d
By default the integration tests will use the environment variable AZURE_STORAGE_CONNECTION_STRING if present, otherwise they fall back to UseDevelopmentStorage=true which targets local Azurite.
Run integration tests:
dotnet test ..\FileAzure.IntegrationTests\Omnia.FileAzure.IntegrationTests.csproj
Notes
- Keep constructors in production code stable — tests are written to use
IConfiguration+BlobConfig. - If you need to run integration tests in CI, provide a proper
AZURE_STORAGE_CONNECTION_STRINGenvironment variable or run Azurite in the CI environment.
| Product | Versions 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 was computed. 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. |
-
net9.0
- Azure.Storage.Blobs (>= 12.25.0)
- Microsoft.AspNetCore.Http (>= 2.3.0)
- Omnia.Utility (>= 9.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.