Reputation: 3412
How do I properly import an existing React project being developed in Visual Studio Code into Visual Studio 2022?
Upvotes: 7
Views: 10042
Reputation: 733
Here is how you open a React application in Visual Studio without all of the overhead of other project types.
When you open Visual Studio (I'm using 2019) there is an option that says "Open a Local Folder". Choose that and select the folder that contains the React application. Once it opens, if you right-click on the package.json files there is an NPM menu that contains your NPM tasks. Visual Studio creates a csproj file and if source control is configured in Visual Studio it will hook you up to your repository.
Upvotes: 6