-
Notifications
You must be signed in to change notification settings - Fork 25
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
unmet requirement DotNetCLI_Path exists #153
Comments
@chris1248 could you share a TeamCity version? |
Version:
|
@chris1248 Unfortunately, I cannot reproduce. Could you please share a "teamcity-agent.log"? |
I was dealing with the same issue with Oracle Linux 7 and had installed dotnet through Microsoft's dotnet-install.sh. Regardless of what I set the DOTNET_HOME or PATH variables to TeamCity wouldn't detect the DotNetCLI_Path. While looking through Teamcity documentation I found the .NET Version Detection Algorithm documents that it also looks at the directory of /usr/share/dotnet. After using the dotnet-install.sh script to install it there the problem went away. I hope this helps anyone else who encounters this issue. |
@joshua5822 , although my DOTNET_HOME was set correctly (/usr/share/dotnet) that documentation showing the detection algorithm was kinda helpful but why they haven't done it for MSBuild? Tried setting env variable in bashrc, buildagent.properties, within the build configuration parameters, I've tried moving the MSBuild folder into /usr/share/dotnet but it just can't find it. |
I have a linux build agent running on RedHat Enterprise Linux 8.
The agent is up and running and I have .NET core installed on it:
But when I want to specify a build step using the .NET tool (i.e. dotnet build), I get this error:
I have tried setting the DOTNET_HOME environment variable in the
buildAgent.properties
file to the following different combinations:env.DOTNET_HOME=/usr/lib64/dotnet/sdk/3.1.108/
env.DOTNET_HOME=/usr/lib64/dotnet/sdk/
env.DOTNET_HOME=/usr/lib64/dotnet/
Nothing works. I still get that unmet requirement.
I've searched online, but only see help requests pointing to windows installations, not linux.
What do we set DOTNET_HOME to?
The text was updated successfully, but these errors were encountered: