New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX Hosted Agent should set DOTNET_ROOT environment variable #531

Open
AArnott opened this Issue Dec 9, 2018 · 0 comments

Comments

@AArnott
Copy link
Member

AArnott commented Dec 9, 2018

Per dotnet/cli#9114, if .NET Core is installed in a non-default location, the DOTNET_ROOT environment variable must be set or .NET Core CLI tools will fail to run.

Installing a local tool and running it passes on Linux-based microsoft/dotnet docker images but fails on Hosted OSX agents from Azure Pipelines.

Since the OSX agent comes with .NET Core SDK pre-installed, can it also please pre-set the DOTNET_ROOT environment variable to match, so that the above example works across all hosted agents instead of failing on OSX?

@DavidStaheli DavidStaheli added this to .NET Core: RM in Issues by ecosystem Dec 12, 2018

@DavidStaheli DavidStaheli moved this from .NET Core: RM to Image: macOS in Issues by ecosystem Dec 12, 2018

enricosada added a commit to jet/falanx that referenced this issue Dec 13, 2018

disable osx CI
the azure agent doesnt set DOTNET_ROOT and global tools doesnt work

ref Microsoft/azure-pipelines-image-generation#531
ref dotnet/cli#9114

enricosada added a commit to jet/falanx that referenced this issue Dec 13, 2018

Set up CI with Azure Pipelines (#86)
Set up CI with Azure Pipelines, replace Travis and Appveyor

The OSX CI is not added because the azure agent for OSX doesnt set DOTNET_ROOT and global tools doesnt works, so a test fails

ref Microsoft/azure-pipelines-image-generation#531
ref dotnet/cli#9114

The scala tests are ignored too, because sbt is not installed in the azure agent

7sharp9 added a commit to jet/falanx that referenced this issue Dec 21, 2018

Set up CI with Azure Pipelines (#86)
Set up CI with Azure Pipelines, replace Travis and Appveyor

The OSX CI is not added because the azure agent for OSX doesnt set DOTNET_ROOT and global tools doesnt works, so a test fails

ref Microsoft/azure-pipelines-image-generation#531
ref dotnet/cli#9114

The scala tests are ignored too, because sbt is not installed in the azure agent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment