Skip to content

Add *.csproj.lscache to .gitignore to prevent files from being tracked#2185

Open
liamjpeters wants to merge 1 commit into
PowerShell:mainfrom
liamjpeters:ignore_lscache_files
Open

Add *.csproj.lscache to .gitignore to prevent files from being tracked#2185
liamjpeters wants to merge 1 commit into
PowerShell:mainfrom
liamjpeters:ignore_lscache_files

Conversation

@liamjpeters
Copy link
Copy Markdown
Contributor

PR Summary

The C# Dev Kit for VS Code now puts .csproj.lscache files next to each .csproj file. They contain project structure and metadata info, and allow C# Dev Kit to skip expensive work at startup.

The files themselves state It can safely be deleted and will be regenerated automatically..

PR adds them to gitignore.

See https://aka.ms/lscache for more info.

PR Checklist

Copilot AI review requested due to automatic review settings May 15, 2026 11:32
@liamjpeters liamjpeters requested review from a team and bergmeister as code owners May 15, 2026 11:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@andyleejordan
Copy link
Copy Markdown
Member

It's bonkers to me that they're suggesting cache data be committed to version control 😬 also can set dotnet.projectsystem.cacheInProjectFolder to false. Perhaps we should do that in the workspace instead?

@andyleejordan
Copy link
Copy Markdown
Member

They've admitted that it was an accidental rollout to release that that setting isn't defaulting to false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants