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.

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

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
DustinCampbellcommented, Aug 22, 2017

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?

0reactions
DustinCampbellcommented, Aug 22, 2017

Excellent! I’m glad to hear you found the cause!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Access is denied on .CoreCompileInputs.Cache - MSDN
Error Could not write lines to file "obj\Debug\ConverterTester.csproj.CoreCompileInputs.cache". Access to the path 'C:\Users\Jeff\Contracting\ ...
Read more >
Build on VSTS fails with "Cannot write lines to ... - GitHub
I have a project with 2 C# projects and one python project. Building in VS goes fine, but building on VSTS/AzureDevops fails, ...
Read more >
Could not write lines to file "obj\Debug\netcoreapp3.1\Core ...
When i build the project this error occures. The resource string “WriteLinesToFile.SkippingUnchangedFile” for the “WriteLinesToFile” task cannot be found.
Read more >
Could not write lines to file "obj\Debug\net5.0\SolutionName ...
I have same error, and that is related with 'file name must be less than 260 characters' and resolved by Enabling Windows Long...
Read more >
Could not write lines to file FileListAbsolute.txt. Access to the ...
C:\WINDOWS\Microsoft.NET\Framework\v4.0\Microsoft.Common.targets(3246,9): error MSB3491: Could not write lines to file "obj\Release\abc.
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