Open dgf17541 opened 1 month ago
@AArnott - This does look like that server process is starting to launch.
@ryantoth3 for servicehub failing
It sounds like a missing file that should have been installed. Can you remove the C# Dev Kit extension and reinstall?
@AArnott @smitpatel Thank you for replying. I have tried reinstalling the extension but it does not help.
How can I know what the missing file is? (e.g. name, preferred location, etc.) Maybe I can help to find its actual location if it does exist.
@dgf17541 On my Windows x64 machine, the path it tries to launch is at "%USERPROFILE%\.vscode\extensions\ms-dotnettools.csdevkit-1.12.2-win32-x64\components\vs-green-server\platforms\win32-x64\node_modules\@microsoft\servicehub-controller-net60.win32-x64\Microsoft.ServiceHub.Controller.exe"
@AArnott Thank you.
As I am using portable mode of vscode. My path will be C:\Users\User1\Desktop\_files\VSCode\VSCode-win32-x64-1.93.1\data\extensions\ms-dotnettools.csdevkit-1.11.14-win32-x64\components\vs-green-server\platforms\win32-x64\node_modules\@microsoft\servicehub-controller-net60.win32-x64
.
And it does exist?
Interesting. I wondered if portable mode has anything to do with it, as I've never tried that before. But it worked out of the box.
@dgf17541 Can you try it in the documented way?
See if the server process starts successfully.
Since I cannot test properly without dotnet installed, this time I have installed the dotnet (installer) and use vscode in portable mode "in the documented way". This time the error disappeared. But in fact, I am not allowed to install anything in the computer(I have uninstalled dotnet immediately after the test).
I wonder the error is caused by my batch script. But what the batch did is only adding dotnet to PATH and keeping the folders created by dotnet in place. It has done nothing about vscode. @AArnott Could you help me to correct my batch therefore I can use vscode with dotnet binaries(without installation)?
@dgf17541 do you solved it? I just find VsCode can portable. I dont have right to install program. How can I use Vscode with dotnet without install?
@wygysimo11 No. You can try to modify my batch script to get it to work (not yet getting any success though) For the dotnet binaries, you can download zip file from the "Binaries" session at https://dotnet.microsoft.com/en-us/download/dotnet/8.0 then extract it to the location you want.
After couple of testing, I found the error only occur when using the batch script with vscode in portable mode. The error do not occur when I am using the batch script with vscode installed.
Here is the testing results for your reference: | dotnet | vscode | error occur |
---|---|---|---|
binaries with batch | installed | No | |
binaries with batch | portable | Yes | |
installed | portable | No | |
installed | installed | No |
Are there anyone could help to look into the issue? Thank you.
Describe the Issue
I am trying to use unzipped .net binaries with vscode(portable mode). I have used a batch file to set the environment variables and add the dotnet.exe folder to the PATH before opening vscode. However, the extension is not working properly after pressing "Create .NET Project".
Steps To Reproduce
Expected Behavior
poping up what project to be created and starting new .net project
Environment Information
OS: Window 11 VS Code Version: 1.93.1 (portable mode) Extension Version: C# Dev Kit (v1.10.18) (also tried pre-released v1.11.11)
Batch that I use to open vscode:
"dotnet --info" command result in terminal in vscode:
C# OUTPUT:
C# Dev Kit OUTPUT:
C# LSP Trace Logs: