Skip to content
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

Add ability to install .NET Core CLI #1

Open
PaulStovell opened this issue Mar 1, 2016 · 3 comments
Open

Add ability to install .NET Core CLI #1

PaulStovell opened this issue Mar 1, 2016 · 3 comments

Comments

@PaulStovell
Copy link

I really like this plugin, looks like a great way forward for building DNX apps in TeamCity.

The first hurdle I ran into is that you have to install DNU/DNX as the user that the agent is running under. It would remove so much friction if TeamCity could take care of this - either by letting users specify a custom version (the same way they can specify which NuGet executables to use) or just downloading and installing it for them.

To get it to work for ASP.NET 5 RC1, I had to:

  • Make TeamCity build agent run as a custom user
  • Log in to Windows as that custom user
  • Install the command line DNVM
  • Run dnvm install latest
  • Run dnvm upgrade
  • Restart TeamCity build agent to pick up the environment variable changes
@PaulStovell PaulStovell changed the title Install DNU/dotnet Install DNU/dotnet - can this be streamlined somehow? Mar 1, 2016
@dtretyakov
Copy link
Contributor

@PaulStovell, we will try to automate tools installtion in the next versions of plugin.

Please note, that Microsoft announced that they move from DNX to .NET CLI tools and DNX toolkit will be retired soon.

@dtretyakov
Copy link
Contributor

Now dotnet .core can be installed via scripts as follows.

@dtretyakov dtretyakov changed the title Install DNU/dotnet - can this be streamlined somehow? Add ability to install .NET Core CLI Nov 1, 2016
@dtretyakov
Copy link
Contributor

Since .NET CLI preview3 we can install additional CLI tools:
https://docs.microsoft.com/en-us/dotnet/articles/core/preview3/tools/dotnet-install-script

dmitry-treskunov pushed a commit that referenced this issue May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants