generated from nventive/Template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improved dependency installation
* install .NET framework locally * local recipes with https://just.systems/ * simplified installation instructions for macOS users
- Loading branch information
1 parent
d8b2021
commit 1ff7eab
Showing
8 changed files
with
125 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
use flake | ||
export DOTNET_ROOT=$PWD/.dotnet | ||
PATH_add .dotnet | ||
PATH_add .dotnet/tools | ||
just checkdotnet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.direnv | ||
.dotnet |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"sdk": { | ||
"version": "8.0.401", | ||
"rollForward": "disable", | ||
"workloadVersion": "8.0.401" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/usr/bin/env just --justfile | ||
|
||
dotnet_version := "8.0.401" | ||
|
||
set shell := ["bash", "-c"] | ||
|
||
# run the project locally (same as "run") | ||
default: run | ||
|
||
# starts VS Code with appropriate environment variables to allow for debugging | ||
code: checkdotnet | ||
#!/usr/bin/env bash | ||
# Eliminate environment variables introduced by the nix shell that interfere | ||
# with Aspire debugging in VS Code. See https://github.com/dotnet/aspire/issues/5389 and | ||
# https://github.com/dotnet/aspire/issues/5475 | ||
export -n DIRENV_DIFF | ||
export -n NIX_CFLAGS_COMPILE | ||
export -n NIX_LDFLAGS | ||
export -n PYTHONPATH | ||
export -n name | ||
export -n shell | ||
code . | ||
# install .NET locally if it’s not there | ||
checkdotnet: | ||
[ -d .dotnet ] && [[ "$(dotnet --version)" == "{{dotnet_version}}" ]] || just installdotnet | ||
|
||
# install the appropriate .NET version locally | ||
installdotnet: | ||
[ ! -d .dotnet ] || rm -r .dotnet | ||
wget https://dot.net/v1/dotnet-install.sh | ||
chmod +x dotnet-install.sh | ||
./dotnet-install.sh --version {{dotnet_version}} --install-dir .dotnet --no-path | ||
rm dotnet-install.sh | ||
dotnet workload install aspire | ||
|
||
# run the project locally | ||
run: checkdotnet | ||
dotnet run --project src/Placeholder.AppHost |
This file was deleted.
Oops, something went wrong.