Skip to content

Commit

Permalink
Update doc on using local apphost to reflect that the testhost layout…
Browse files Browse the repository at this point in the history
… uses the live-built host (dotnet#100314)
  • Loading branch information
elinor-fung authored Mar 27, 2024
1 parent 8c68710 commit d4c6e95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/workflow/testing/host/using-apphost.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ Building and publishing your project should now use the `apphost`/`singlefilehos

Alternatives to this method include copying the desired apphost to the appropriate `<dotnet_root>/packs` and NuGet cache directories or building the NuGet packages locally and configuring the application to use them via a NuGet.config and the `KnownAppHostPack` item.

## Pointing at a local .NET root
# Pointing at a local .NET root

For a [framework-dependent application](https://docs.microsoft.com/dotnet/core/deploying/#publish-framework-dependent), you can set the `DOTNET_ROOT` environment variable to point at a local .NET layout.

The [libraries tests](../libraries/testing.md) construct and use such a layout based on your local runtime and libraries build as part of the `libs.pretest` subset. To use that layout, set `DOTNET_ROOT=<repo_root>/artifacts/bin/testhost/net8.0-<os>-<configuration>-<arch>`. Note that the host components (`hostfxr`, `hostpolicy`) in that layout are not from the local build.
The [libraries tests](../libraries/testing.md) construct and use such a layout based on your local runtime, host, and libraries build as part of the `libs.pretest` subset. To use that layout, set `DOTNET_ROOT=<repo_root>/artifacts/bin/testhost/net8.0-<os>-<configuration>-<arch>` and then run the .NET application.

0 comments on commit d4c6e95

Please sign in to comment.