vscode-csharp: Error when loading project: "Could not write lines to file "obj\Debug\netcoreapp1.1\Vega.csproj.CoreCompileInputs.cache"

Environment data

dotnet --info output:

.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.15063 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\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.0

Steps to reproduce

I just open or start a project. I got this on every project

Expected behavior

Actual behavior

I don’t get any IntelliSense

Starting OmniSharp server at 21.08.2017, 21:43:58 Target: c:\Users\flaur\Desktop\vega

OmniSharp server started Path: C:\Users\flaur.vscode\extensions\ms-vscode.csharp-1.12.1.omnisharp\OmniSharp.exe PID: 8684

OmniSharp: -s c:\Users\flaur\Desktop\vega --hostPID 1416 --stdio DotNet:enablePackageRestore=false --encoding utf-8 --loglevel information formattingOptions:useTabs=false formattingOptions:tabSize=4 formattingOptions:indentationSize=4 [info]: OmniSharp.Startup Omnisharp server running using Stdio at location ‘c:\Users\flaur\Desktop\vega’ on host 1416. [info]: OmniSharp.DotNet.DotNetProjectSystem Initializing in c:\Users\flaur\Desktop\vega [info]: OmniSharp.DotNet.DotNetProjectSystem Auto package restore: False [info]: OmniSharp.DotNet.DotNetProjectSystem Update workspace context [info]: OmniSharp.DotNet.DotNetProjectSystem Resolving projects references [info]: OmniSharp.MSBuild.MSBuildProjectSystem Omnisharp will use local MSBuild. MSBUILD_EXE_PATH: C:\Users\flaur.vscode\extensions\ms-vscode.csharp-1.12.1.omnisharp\msbuild\MSBuild.exe MSBuildExtensionsPath: C:\Users\flaur.vscode\extensions\ms-vscode.csharp-1.12.1.omnisharp\msbuild

[info]: OmniSharp.MSBuild.MSBuildProjectSystem No solution files found in ‘c:\Users\flaur\Desktop\vega’ [info]: OmniSharp.MSBuild.MSBuildProjectSystem Loading project: c:\Users\flaur\Desktop\vega\Vega.csproj [fail]: OmniSharp.MSBuild.ProjectFile.ProjectFileInfo Could not write lines to file “obj\Debug\netcoreapp1.1\Vega.csproj.CoreCompileInputs.cache”. Access to the path ‘c:\Users\flaur\Desktop\vega\obj\Debug\netcoreapp1.1\Vega.csproj.CoreCompileInputs.cache’ is denied. [warn]: OmniSharp.MSBuild.MSBuildProjectSystem Failed to load project file ‘c:\Users\flaur\Desktop\vega\Vega.csproj’. c:\Users\flaur\Desktop\vega\Vega.csproj

[info]: OmniSharp.Script.ScriptProjectSystem Detecting CSX files in ‘c:\Users\flaur\Desktop\vega’. [info]: OmniSharp.Script.ScriptProjectSystem Could not find any CSX files [info]: OmniSharp.Services.WorkspaceHelper Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider [info]: OmniSharp.Startup Configuration finished.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

Out of curiosity, could you try creating a project within a folder other than your desktop? This looks very much like a permissions problem but I’m not sure what might cause it.

Try this: right click on C:\Users\DustinCa\Desktop in Windows Explorer, choose Properties, and then click the Security tab. Does every group or user have full control?