-
Notifications
You must be signed in to change notification settings - Fork 417
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
[fail]: OmniSharp.MSBuild.ProjectManager Attempted to update project that is not loaded: #1730
Comments
Hi, After passing through so much frustration, this #1094 (comment) worked for me, but is it really a solution? After changing the folder name won't it cause any issue when I will code in visual studio 2019? Looking for a proper fix if this is not a final solution to this issue. Thank you! |
no, the rename should not be needed. Can you revert it, you set "omnisharp.logginglevel": "debug" and post your log again? |
I have added this "omnisharp.logginglevel": "debug"" in .vscode/launch.json. Do I have to do in this way?, |
After adding "omnisharp.logginglevel": "debug" into settings.json, I see this information in log and still it's not working. Starting OmniSharp server at 11/03/2020, 18:38:17 OmniSharp server started. Loaded OmniSharp.Cake, Version=1.34.0.0, Culture=neutral, PublicKeyToken=null No solution files found in 'c:\Users\Muhammad\Documents\Projects\DatingApp' Attempted to update project that is not loaded: c:\Users\Muhammad\Documents\Projects\DatingApp\DatingApp.API\DatingApp.API.csproj |
I'm experiencing the same problem, but my development desktop is OS Linux Ubuntu 20.04 =========================================================================== Starting OmniSharp server at 6/5/2020, 1:37:51 AM OmniSharp server started. Loaded OmniSharp.Cake, Version=1.35.0.0, Culture=neutral, PublicKeyToken=null 'MSBuildExtensionsPath' set to '/home/lzocateli/.vscode/extensions/ms-dotnettools.csharp-1.22.0/.omnisharp/1.35.2/omnisharp/.msbuild' Loading project: /home/lzocateli/myprojects/SharedLibs/src/Nuuvers.Extensions/Nuuvers.Extensions.csproj Attempted to update project that is not loaded: /home/lzocateli/myprojects/SharedLibs/src/Nuuvers.Email/Nuuvers.Email.csproj |
Starting OmniSharp server at 10/03/2020, 23:29:55
Target: c:\Users\Muhammad\Documents\Projects\DatingApp
OmniSharp server started.
Path: C:\Users\Muhammad.vscode\extensions\ms-dotnettools.csharp-1.21.13.omnisharp\1.34.13\OmniSharp.exe
PID: 12912
Starting OmniSharp on Windows 6.2.9200.0 (x64)
info: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 2 MSBuild instance(s)
1: Visual Studio Community 2019 16.4.29905.134 - "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin"
2: StandAlone 16.4 - "c:\Users\Muhammad.vscode\extensions\ms-dotnettools.csharp-1.21.13.omnisharp\1.34.13.msbuild\Current\Bin"
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: Visual Studio Community 2019 16.4.29905.134 - "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin"
info: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in 'c:\Users\Muhammad\Documents\Projects\DatingApp'.
info: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
info: OmniSharp.MSBuild.ProjectSystem
No solution files found in 'c:\Users\Muhammad\Documents\Projects\DatingApp'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\Users\Muhammad\Documents\Projects\DatingApp\DatingApp.API\DatingApp.API.csproj'
info: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in 'c:\Users\Muhammad\Documents\Projects\DatingApp'.
info: OmniSharp.Script.ScriptProjectSystem
Could not find any CSX files
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
info: OmniSharp.MSBuild.ProjectManager
Loading project: c:\Users\Muhammad\Documents\Projects\DatingApp\DatingApp.API\DatingApp.API.csproj
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.EditorConfigWorkspaceOptionsProvider, Order: 200
info: OmniSharp.WorkspaceInitializer
Configuration finished.
info: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location 'c:\Users\Muhammad\Documents\Projects\DatingApp' on host 9680.
[warn]: OmniSharp.MSBuild.ProjectManager
Failed to load project file 'c:\Users\Muhammad\Documents\Projects\DatingApp\DatingApp.API\DatingApp.API.csproj'.
c:\Users\Muhammad\Documents\Projects\DatingApp\DatingApp.API\DatingApp.API.csproj(1,1)
Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK 'Microsoft.NET.Sdk.Web' specified could not be found. c:\Users\Muhammad\Documents\Projects\DatingApp\DatingApp.API\DatingApp.API.csproj
at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args)
at Microsoft.Build.Evaluation.Evaluator
4.ExpandAndLoadImportsFromUnescapedImportExpressionConditioned(String directoryOfImportingFile, ProjectImportElement importElement, List
1& projects, SdkResult& sdkResult, Boolean throwOnFileNotExistsError)at Microsoft.Build.Evaluation.Evaluator
4.ExpandAndLoadImports(String directoryOfImportingFile, ProjectImportElement importElement, SdkResult& sdkResult) at Microsoft.Build.Evaluation.Evaluator
4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement)at Microsoft.Build.Evaluation.Evaluator
4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport) at Microsoft.Build.Evaluation.Evaluator
4.Evaluate(ILoggingService loggingService, BuildEventContext buildEventContext)at Microsoft.Build.Evaluation.Project.ProjectImpl.Reevaluate(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
at Microsoft.Build.Evaluation.Project.ProjectImpl.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
at Microsoft.Build.Evaluation.Project.ProjectImpl.ReevaluateIfNecessary(EvaluationContext evaluationContext)
at Microsoft.Build.Evaluation.Project.ProjectImpl.Initialize(IDictionary
2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary
2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName, IDictionary
2 globalProperties, String toolsVersion) at OmniSharp.MSBuild.ProjectLoader.EvaluateProjectFileCore(String filePath) in D:\a\1\s\src\OmniSharp.MSBuild\ProjectLoader.cs:line 129 at OmniSharp.MSBuild.ProjectLoader.BuildProject(String filePath) in D:\a\1\s\src\OmniSharp.MSBuild\ProjectLoader.cs:line 72 at OmniSharp.MSBuild.ProjectFile.ProjectFileInfo.Load(String filePath, ProjectIdInfo projectIdInfo, ProjectLoader loader) in D:\a\1\s\src\OmniSharp.MSBuild\ProjectFile\ProjectFileInfo.cs:line 99 at OmniSharp.MSBuild.ProjectManager.LoadOrReloadProject(String projectFilePath, Func
1 loader) in D:\a\1\s\src\OmniSharp.MSBuild\ProjectManager.cs:line 308Attempted to update project that is not loaded: c:\Users\Muhammad\Documents\Projects\DatingApp\DatingApp.API\DatingApp.API.csproj
The text was updated successfully, but these errors were encountered: