conda-forge / dotnet-feedstock

A conda-smithy repository for dotnet.
BSD 3-Clause "New" or "Revised" License
4 stars 5 forks source link

Dotnet root #2

Closed dhirschfeld closed 3 years ago

dhirschfeld commented 3 years ago

Checklist

conda-forge-linter commented 3 years ago

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

dhirschfeld commented 3 years ago

When giving this a go dotnet can't find the hostfxr.dll and suggests setting the DOTNET_ROOT environment variable:

> .\blazor-demo.exe
A fatal error occurred. The required library hostfxr.dll could not be found.
If this is a self-contained application, that library should exist in [<snip>\blazor-demo\src\blazor-demo\bin\Release\netcoreapp3.1\].
If this is a framework-dependent application, install the runtime in the global location [C:\Program Files\dotnet]
or use the DOTNET_ROOT environment variable to specify the runtime location
or register the runtime location in [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x64\InstallLocation]

The docs also seem to only mention DOTNET_ROOT so I think this was just a mis-naming of the env var. https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet#environment-variables

dhirschfeld commented 3 years ago

@conda-forge-admin, please rerender

github-actions[bot] commented 3 years ago

Hi! This is the friendly automated conda-forge-webservice. I tried to rerender for you, but it looks like there was nothing to do.

dhirschfeld commented 3 years ago

I'll go ahead and merge this as it fixes a bug I'm encountering. If it causes any other issues we can fix them as they crop up...