如何将Visual Studio 2022 Mac连接到创建反应应用
我从未在Mac之前使用Visual Studio(不是VS代码)。我想尝试通过制作一个简单的React应用程序来学习VS Studio的教程。我尝试使用VS Studio创建一个新项目,然后在新项目的文件夹中运行NPX Create-React-App,但是VS Studio看不到新文件夹。我还尝试打开由Create-React-App创建的文件夹,但是VS Studio拒绝将其视为它知道的仇恨者,它已被弄清楚。感谢您为这个基本的开始步骤提供帮助。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
(请参阅“适用于”页面上的“适用”部分)意味着使用Visual Studio对于具有React的Mac,至少与Visual Studio(对于Windows)相同的方式与REACT无法使用,甚至可能暗示不支持某些功能。
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.
您可以创建一个模板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