[英]JSON file type missing in Add new item of Visual studio 2019
I am using Visual Studio 2019. I need to add a JSON file to add the test data.我使用的是 Visual Studio 2019。我需要添加一个 JSON 文件来添加测试数据。 But JSON file type is missing in Add new item tab.但是添加新项目选项卡中缺少 JSON 文件类型。 I have used Console application (.NET Framework)我使用过控制台应用程序(.NET Framework)
You can get it in Add New Item
-> Web
-> Markup
-> JSON File
您可以在Add New Item
-> Web
-> Markup
-> JSON File
中获得它
Or easiest way is to search it in Search box.或者最简单的方法是在搜索框中搜索它。
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 选项在您的机器上不可见,这意味着在安装时您没有选择选项ASP.NET and web development tool
。
Modify your installation and install web development tool on your machine.修改您的安装并在您的机器上安装 web 开发工具。
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如果您想要快速解决方案,则添加新项目 window 将.cs
文件的扩展名更改为.json
它将为您创建 json 文件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.