question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

omni sharp in vs code portable and dotnet core binary zip file

See original GitHub issue

Hi I can not install any program on my windows for network policies reason. So I downloaded VS Code portable and open it. Also I downloaded dot net core library zip file and extract it in : C:\dotnet I opened vs code and open folder C:\MVC3 and type c:\dotnet\dotnet.exe new mvc in terminal Then dotnet run command and project run perfectly. Now I just want to start Debugging in vs code but give me error : launch: program ‘’ does not exist. VS Code can not find dot net core cli because I can not install any program and I can not copy dotnet folder to C:\Program Files because I have not the admin user pass. Just tell me how can I set a setting for VS Code to define dotnet core path to C:\dotnet?

in output : Starting OmniSharp server at 1/2/2019, 9:39:01 AM Target: c:\MVC3

OmniSharp server started. Path: E:\My Pro\VS Code\data\extensions\ms-vscode.csharp-1.17.1.omnisharp\1.32.8\OmniSharp.exe PID: 12104

    Starting OmniSharp on Windows 6.2.9200.0 (x64)
    DotNetPath set to dotnet
    Located 1 MSBuild instance(s)
        1: StandAlone 15.0 - "E:\My Pro\VS Code\data\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin"
    MSBUILD_EXE_PATH environment variable set to 'E:\My Pro\VS Code\data\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\MSBuild.exe'
    Registered MSBuild instance: StandAlone 15.0 - "E:\My Pro\VS Code\data\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin"
        CscToolExe = csc.exe
        CscToolPath = E:\My Pro\VS Code\data\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin\Roslyn
        MSBuildExtensionsPath = E:\My Pro\VS Code\data\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild
        MSBuildToolsPath = E:\My Pro\VS Code\data\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\msbuild\15.0\Bin
    Detecting Cake files in 'c:\MVC3'.
    Could not find any Cake files
    Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
    No solution files found in 'c:\MVC3'
    Queue project update for 'c:\MVC3\MVC3.csproj'
    Detecting CSX files in 'c:\MVC3'.
    Loading project: c:\MVC3\MVC3.csproj
    Could not find any CSX files
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
    Configuration finished.
    Omnisharp server running using Stdio at location 'c:\MVC3' on host 6024.
    Failed to load project file 'c:\MVC3\MVC3.csproj'.

c:\MVC3\MVC3.csproj(1,1) Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK ‘Microsoft.NET.Sdk.Web’ specified could not be found. c:\MVC3\MVC3.csproj at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args) at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImportsFromUnescapedImportExpressionConditioned(String directoryOfImportingFile, ProjectImportElement importElement, List1& projects, Boolean throwOnFileNotExistsError) at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImports(String directoryOfImportingFile, ProjectImportElement importElement) at Microsoft.Build.Evaluation.Evaluator4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement) at Microsoft.Build.Evaluation.Evaluator4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport) at Microsoft.Build.Evaluation.Evaluator4.Evaluate(ILoggingService loggingService, BuildEventContext buildEventContext) at Microsoft.Build.Evaluation.Project.Reevaluate(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings) at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings) at Microsoft.Build.Evaluation.Project.Initialize(IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings) at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings) at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName, IDictionary2 globalProperties, String toolsVersion) at OmniSharp.MSBuild.ProjectLoader.EvaluateProjectFileCore(String filePath) at OmniSharp.MSBuild.ProjectLoader.BuildProject(String filePath) at OmniSharp.MSBuild.ProjectFile.ProjectFileInfo.Load(String filePath, ProjectLoader loader) at OmniSharp.MSBuild.ProjectManager.LoadOrReloadProject(String projectFilePath, Func1 loader)

    Attemped to update project that is not loaded: c:\MVC3\MVC3.csproj

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mammadkomacommented, Jan 5, 2019

oooooh Thank you But I could not open Advanced system settings. And by help of this link I can open user variables and added c:\dotnet\ to path: How to set Path in Windows without admin rights Every problems solved. Thank you

1reaction
rchandecommented, Jan 2, 2019

@mammadkoma You need to add c:\dotnet\ to your PATH environment variable.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OmniSharp - .NET and IntelliSense on any platform with your ...
OmniSharp is a set of tooling, editor integrations and libraries that together create an ecosystem that allows you to have a great programming...
Read more >
VSCodium - Open Source Binaries of VSCode
Free/Libre Open Source Software Binaries of VSCode. ... VSCodium is a community-driven, freely-licensed binary distribution of Microsoft's editor VS Code.
Read more >
IntelliSense in Visual Studio Code - Cake Build
Open Visual Studio Code to the folder that you have a Cake file in. ... Create a file called omnisharp.json in %USERPROFILE%/.omnisharp/ (...
Read more >
Setting up your development environment | C# 11 and .NET 7 ...
NET Interactive Notebooks enable you to create a single notebook file that mixes "cells" of Markdown ... C# for Visual Studio Code (powered...
Read more >
C# basics — Godot Engine (stable) documentation in English
In Rider: Set MSBuild version to .NET Core. Install the Godot support plugin. Visual Studio Code ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found