diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json new file mode 100644 index 0000000..0532529 --- /dev/null +++ b/.config/dotnet-tools.json @@ -0,0 +1,13 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "csharpier": { + "version": "1.2.3", + "commands": [ + "csharpier" + ], + "rollForward": false + } + } +} \ No newline at end of file diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..fc680da --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1766309749, + "narHash": "sha256-3xY8CZ4rSnQ0NqGhMKAy5vgC+2IVK0NoVEzDoOh4DA4=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "a6531044f6d0bef691ea18d4d4ce44d0daa6e816", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..637b88c --- /dev/null +++ b/flake.nix @@ -0,0 +1,46 @@ +{ + + description = ".NET 9 Development Environment"; + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = + { nixpkgs, flake-utils, ... }: + flake-utils.lib.eachDefaultSystem ( + system: + let + pkgs = import nixpkgs { + inherit system; + # Allow unfree packages if you use specific proprietary dotnet tools + config.allowUnfree = true; + }; + + # Define the .NET SDK version you want to use + dotnetSdk = pkgs.dotnetCorePackages.sdk_9_0-bin; + in + { + devShells.default = pkgs.mkShell { + # Tools included in the environment + packages = [ + pkgs.zsh + dotnetSdk + + # --- Optional: IDE Tooling --- + pkgs.netcoredbg # Debugger for .NET Core + pkgs.roslyn-ls # LSP for VS Code / Emacs / Vim + ]; + + # Environment variables + # 1. Essential: Tell dotnet tools where to find the SDK + DOTNET_ROOT = "${dotnetSdk}"; + + # 3. Add .NET tools to PATH (e.g., dotnet-ef installed locally) + # shellHook = '' + # export PATH="$PATH:$HOME/.dotnet/tools" + # ''; + }; + } + ); +} diff --git a/src/Fluent.Brighter.GoogleCloud/Fluent.Brighter.GoogleCloud.csproj b/src/Fluent.Brighter.GoogleCloud/Fluent.Brighter.GoogleCloud.csproj index 18620f4..78293af 100644 --- a/src/Fluent.Brighter.GoogleCloud/Fluent.Brighter.GoogleCloud.csproj +++ b/src/Fluent.Brighter.GoogleCloud/Fluent.Brighter.GoogleCloud.csproj @@ -1,7 +1,7 @@  - $(BrighterTargetFrameworks) + $(BrighterFrameworkAndCoreTargetFrameworks) enable true Fluent Brighter Google Cloud Platform Integration