You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.NET Command Line Tools (2.0.0)
Product Information:
Version: 2.0.0
Commit SHA-1 hash: cdcd1928c9
Runtime Environment:
OS Name: Windows
OS Version: 10.0.10586
OS Platform: Windows
RID: win10-x64
Base Path: E:\Applications\dotnet-sdk\sdk\2.0.0\
Microsoft .NET Core Shared Framework Host
Version : 2.0.0
Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d
VS Code version: 1.15.1
C# Extension version: 1.12.1
Steps to reproduce
I am running VSCode on a system that I do not have admin rights to. Therefore, I cannot run the .NET CLI installer, as that requires that I elevate. (I have installed VSCode using VSCodePortable, if you're wondering.) I have downloaded a zipped copy of .NET CLI and extracted it into a local folder, but OmniSharp insists on searching the system PATH, and only the system PATH, for dotnet.exe. As it can't find a copy there, OmniSharp simply fails to start. There is no configuration setting I can find to override this and have OmniSharp use an arbitrary copy of .NET CLI.
It seems like we need a configuration option to set the location of dotnet.exe. We already have most of the logic in place. Anyone should be able to pick this up.
@wjk et al. I use this setup already - I use VS Code Portable (there's an official version of this now though) with the dotnet SDK binaries in a non-standard location. I added the dotnet binary location to my Path environment variable and then created the DOTNET_ROOT env var with that same directory. Has worked for me since some of the earlier previews and through the GA release of .NET Core.
Ref (bottom of this section, look for DOTNET_ROOT):
From @wjk on August 22, 2017 15:49
Environment data
dotnet --info
output:VS Code version: 1.15.1
C# Extension version: 1.12.1
Steps to reproduce
I am running VSCode on a system that I do not have admin rights to. Therefore, I cannot run the .NET CLI installer, as that requires that I elevate. (I have installed VSCode using VSCodePortable, if you're wondering.) I have downloaded a zipped copy of .NET CLI and extracted it into a local folder, but OmniSharp insists on searching the system PATH, and only the system PATH, for
dotnet.exe
. As it can't find a copy there, OmniSharp simply fails to start. There is no configuration setting I can find to override this and have OmniSharp use an arbitrary copy of .NET CLI.Expected behavior
I should be able to do this.
Actual behavior
I can't.
Copied from original issue: dotnet/vscode-csharp#1729
The text was updated successfully, but these errors were encountered: