Skip to content

Ignore Cache files generated by Official C# Dev Kit#53752

Merged
MiYanni merged 1 commit intodotnet:mainfrom
elias-io:patch-1
Apr 24, 2026
Merged

Ignore Cache files generated by Official C# Dev Kit#53752
MiYanni merged 1 commit intodotnet:mainfrom
elias-io:patch-1

Conversation

@elias-io
Copy link
Copy Markdown
Contributor

@elias-io elias-io commented Apr 8, 2026

Update .gitignore template to add *.lscache to ignore cache files generated by the Official C# Dev Kit
Fixes #53751

@elias-io
Copy link
Copy Markdown
Contributor Author

@nagilson
Copy link
Copy Markdown
Member

Great idea, thanks for your contribution. This is also more sophisticated in a way, because the intent of the .lscache files is/was that they are not machine specific and instead pinned to a repo root, and the intention was that they do get checked in so the perf benefit is immediate.

However, it looks like microsoft/vscode-dotnettools#2961 the design might be changing and the file could move to a user specific local location. If that's the case, we might not even need this in the .gitignore, but I'm really ok either way.

@MiYanni
Copy link
Copy Markdown
Member

MiYanni commented Apr 24, 2026

/ba-g no build for this change

@MiYanni MiYanni merged commit 2fc4242 into dotnet:main Apr 24, 2026
9 of 10 checks passed
MiYanni added a commit that referenced this pull request Apr 24, 2026
PR #53752 added *.lscache exclusion to the .gitignore template but did
not update the test verification snapshot, causing the
AllCommonItemsCreate test to fail.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.gitignore missing .lscache files generated by C# Dev kit

3 participants