Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can Visual Studio Code on OSX import sln/csproj and run?

Visual Studio Code seems like it would be a very nice tool, but right out of the gate it seemingly cannot read any configuration that would make it part of the Visual Studio family. How can I import my sln/csproj files so that Code knows how to understand them?

like image 813
Robert Plummer Avatar asked May 06 '16 01:05

Robert Plummer


People also ask

How do I run a Csproj file in Visual Studio Code?

Start from a project If your program code is already in a Visual Studio project, open the project. To do so, you can double-click or tap on the . csproj file in Windows File Explorer, or choose Open a project in Visual Studio, browse to find the . csproj file, and select the file.

How do I run a SLN file in VS Code?

You can open any solution, project, folder or file in Visual Studio Code by simply right-clicking it in Solution Explorer and select Open in Visual Studio Code.

Can VS Code open SLN files?

1 Answer. Welcome to Microsoft Q&A! You can open the sln file of the project, for example, using Visual Studio Code. This is a partial screenshot of two sln files, the upper one was created by Visual Studio 2019, and the lower one was created by Visual Studio 2022.

How do I run a Visual Studio Code on a Mac?

Drag Visual Studio Code.app to the Applications folder, making it available in the macOS Launchpad. Open VS Code from the Applications folder, by double clicking the icon. Add VS Code to your Dock by right-clicking on the icon, located in the Dock, to bring up the context menu and choosing Options, Keep in Dock.


1 Answers

Visual Studio Code isn't designed to work with sln/csproj files unfortunately (or fortunately depending on how you look at it).

In order to use your project created in Windows create a .NET Core application and use 'Portable Class Libraries' instead of standard class libraries then Open Folder in Visual Studio Code.

like image 154
Jamie Gilbert Avatar answered Oct 24 '22 18:10

Jamie Gilbert