diff --git a/.gitignore b/.gitignore index 5790a7d..ab9b5ba 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ result */bin */obj +out diff --git a/console/Program.cs b/console/Program.cs index 3751555..e7789a2 100644 --- a/console/Program.cs +++ b/console/Program.cs @@ -1,2 +1,5 @@ -// See https://aka.ms/new-console-template for more information -Console.WriteLine("Hello, World!"); +using Groomgy.HelloWorld; + +// See https://aka.ms/new-console-template for more information +var svc = new HelloWorldService(); +Console.WriteLine(svc.Say()); diff --git a/console/console.csproj b/console/console.csproj index fd4bd08..5cbc172 100644 --- a/console/console.csproj +++ b/console/console.csproj @@ -7,4 +7,8 @@ enable + + + + diff --git a/deps.json b/deps.json new file mode 100644 index 0000000..126157e --- /dev/null +++ b/deps.json @@ -0,0 +1,12 @@ +[ + { + "pname": "Groomgy.HelloWorld", + "version": "1.16.1", + "hash": "sha256-CISAKA31GAQNJ3HeCSb1FzC2ViU9CB5UIai6pmO+AvE=" + }, + { + "pname": "Groomgy.HelloWorldDependencyLibrary", + "version": "1.16.1", + "hash": "sha256-bReNmXls62mIi/13iOq55RutIfyddDDVpyqbIkSBBno=" + } +] diff --git a/flake.nix b/flake.nix index 38f912e..5accef8 100644 --- a/flake.nix +++ b/flake.nix @@ -38,7 +38,7 @@ src = ./.; projectFile = "dotnet-nix-testing.sln"; - # nugetDeps = ./deps.json; # see "Generating and updating NuGet dependencies" section for details + nugetDeps = ./deps.json; # buildInputs = [ # referencedProject @@ -62,6 +62,8 @@ { name = "dotnet-env"; packages = [ + just + nuget-to-json ( with dotnetCorePackages; combinePackages [ diff --git a/justfile b/justfile new file mode 100644 index 0000000..c0e4244 --- /dev/null +++ b/justfile @@ -0,0 +1,4 @@ +run project: + dotnet restore --packages out + nuget-to-json out > deps.json + nix run .#{{project}}