dotnet / dotnet/aspnetcore

VS2019 does not respect default Content glob **/*.json

Open
#19,964 4 comments 2 reactions 0 assignees View on GitHub
affected-few area-mvc Author: Migration Bot :robot: bug feature-razor-sdk investigate severity-minor
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/content/problem/948976/vs2019-does-not-respect-default-content-glob-json.html)._

---
When switching to VS2019 from VS2017, we found that our ASP.NET Core project would include JSON files as build action "None" instead of "Content". According to https://github.com/dotnet/docs/issues/10272, "\**/\*.json" is a default content glob (like "**/\*.config").

This came up because Microsoft.TypeScript.MSBuild was not recognizing our tsconfig.json (it only recognizes a file of that name if it has build action "Content").

Using MSBuild directly or building with VS2017 do respect this default.

---
### Original Comments

#### Visual Studio Feedback System on 3/15/2020, 07:27 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

---
### Original Solutions
(no solutions)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.