Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredpar committed Feb 6, 2024
1 parent 2b926e8 commit 0c8ad2e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions proposed/local-sdk-global-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,24 @@ for configuration around best versus first match is much stronger. There would
certainly be a customer segment that wanted to isolate from machine state in
that case.

### dotnet exec

This proposal only impacts how .NET SDK commands do runtime discovery. The
command `dotnet exec` is not an .NET SDK command but instead a way to invoke
the app directly using the runtime installed with `dotnet`.

It is reasonable for complex builds to build and use small tools. For example
building a tool for linting the build, running complex validation, etc ... To
work with local SDK discovery these builds need to leverage `dotnet run` to
execute such tools instead of `dotnet exec`.

```cmd
# Avoid
> dotnet exec artifacts/bin/MyTool/Release/net8.0/MyTool.dll
# Prefer
> dotnet run --no-build --framework net7.0 src/Tools/MyTool/MyTool.csproj
```

### Environment variables

Previous versions of this proposal included support for using environment
Expand Down

0 comments on commit 0c8ad2e

Please sign in to comment.