Full disclosure: This is the first time I have tried to do any .NET development on a Mac
Visual Studio for Mac will not open an Angular project created at the CLI using dotnet new. Attempts to open the csproj file in Visual Studio for Mac result in an error message:
Could not save solution: /Users/aaron/Projects/ngApp/ngApp.sln" followed by "Load operation failed
Created a new .NET Core / Angular app using the "angular" SPA template from the command line by creating a new directory called "ngApp", changing in to that directory, and then typing "dotnet new angular". This generated a project with everything I would have expected inside (including a csproj file). The csproj file seems right based on my experience with the csproj files of projects created using "dotnet new" on Windows.
Attempts to open the csproj file in Visual Studio for Mac result in an error message: "Could not save solution: /Users/aaron/Projects/ngApp/ngApp.sln" followed by "Load operation failed".
Am I missing something important here? Are there any logs that may help me figure this out?
At the suggestion of @MattWard, I looked at the logs which showed me I had some permissions issues going on. Resolving that issue with chmod only uncovered more issues with permissions and environment variables. A complete reinstall of Node, .NET Core, and Visual Studio resolved the issue.
I am able to run dotnet new angular
from the CLI, npm install
to sort out Node packages, and then open the project in Visual Studio without issue.
** Be careful sudo-ing all the things. I will mess up your whole world. **