添加 Visual Studio 2019 的新项目中缺少 JSON 文件类型 [英] JSON file type missing in Add new item of Visual studio 2019
问题描述
我使用的是 Visual Studio 2019.我需要添加一个 JSON 文件来添加测试数据.但是添加新项目"选项卡中缺少 JSON 文件类型.我使用过控制台应用程序 (.NET Framework)
I am using Visual Studio 2019. I need to add a JSON file to add the test data. But JSON file type is missing in Add new item tab. I have used Console application (.NET Framework)
推荐答案
可以在Add New Item
-> Web
-> Markup代码> -> <代码>JSON 文件
You can get it in Add New Item
-> Web
-> Markup
-> JSON File
或者最简单的方法是在搜索框中搜索它.
Or easiest way is to search it in Search box.
如果网络选项在您的机器上不可见,则意味着在安装时您没有选择选项ASP.NET 和网络开发工具
.
If web option is not visible on your machine that means while installation you have not selected option ASP.NET and web development tool
.
修改您的安装并在您的机器上安装 Web 开发工具.
Modify your installation and install web development tool on your machine.
如果你想快速解决,在添加新的项目窗口更改.cs
文件的扩展名到.json
,它会为你创建json文件
If you want quick solution then, in add new item window change extension of .cs
file to .json
it will create json file for you
这篇关于添加 Visual Studio 2019 的新项目中缺少 JSON 文件类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!