如何将Visual Studio 2022 Mac连接到创建反应应用

发布于 2025-02-13 01:09:22 字数 233 浏览 0 评论 0 原文

我从未在Mac之前使用Visual Studio(不是VS代码)。我想尝试通过制作一个简单的React应用程序来学习VS Studio的教程。我尝试使用VS Studio创建一个新项目,然后在新项目的文件夹中运行NPX Create-React-App,但是VS Studio看不到新文件夹。我还尝试打开由Create-React-App创建的文件夹,但是VS Studio拒绝将其视为它知道的仇恨者,它已被弄清楚。感谢您为这个基本的开始步骤提供帮助。

I have never used Visual Studio for Mac before (not VS Code). I want to try out a tutorial to learn VS Studio by making a simple react app. I've tried creating a new project with VS studio, and then running npx create-react-app in the folder of the new project, but VS studio doesn't see the new folder. I've also tried opening the folder created by create-react-app , but VS Studio refuses to recognize it as a volder it knows, it's greyed out. Thanks for helping out on this basic beginning step.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

柒七 2025-02-20 01:09:22

Microsoft's documentation on using React in Visual Studio (see "Applies to" section at top of page) implies that using Visual Studio for Mac with React at the very least does not work with React the same way that Visual Studio (for Windows) does and may even suggest that some functionality is not be supported.

焚却相思 2025-02-20 01:09:22

您可以创建一个模板Web和控制台的Visual Studio项目 - > React JS,它将在项目的客户端文件夹中创建一个React应用程序,您可以使用该应用程序。它将在项目中具有ASP C#组件,但这将是为了为您编写服务器端而忽略开发服务器(如果不需要)。 PS:我认为我们不能在Visual Studio中创建和运行Node.js服务器方面...至少我不知道如何!作为微软,我认为他们会希望您在ASP .NET中编写服务器侧

You can create a Visual Studio Project of template Web and Console -> React js and it will create a react app in the ClientApp folder of the project which you can work on. It will have a asp c# component in the project but that will be for in case you want to write server side which you can ignore for your development (if not needed). PS: I do not think we can create and run Node.js server side in visual studio ... atleast I am not aware how! being Microsoft i presume they will want you to write server side in ASP .NET

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文