omni sharp in vs code portable and dotnet core binary zip file
See original GitHub issueHi 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, List
1& projects, Boolean throwOnFileNotExistsError)
at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImports(String directoryOfImportingFile, ProjectImportElement importElement) at Microsoft.Build.Evaluation.Evaluator
4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement)
at Microsoft.Build.Evaluation.Evaluator4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport) at Microsoft.Build.Evaluation.Evaluator
4.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, IDictionary
2 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, Func
1 loader)
Attemped to update project that is not loaded: c:\MVC3\MVC3.csproj
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
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
@mammadkoma You need to add
c:\dotnet\
to your PATH environment variable.