Friday, May 8, 2020
My efforts to run c# on visual studio code in mac
Note: This is a work still in progress. I have managed to remove some errors faced but still not able to run the csharp code on Visual Studio code in Mac yet.
1. After installing Omnisharp plugin on visual studio to run c sharp code
It asked to install dot net core on mac directing to microsoft website
The following was installed at /usr/local/share/dotnet
• .NET Core SDK 3.1.201
• .NET Core Runtime 3.1.3
• ASP.NET Core Runtime 3.1.3
2. Installed scriptcs for the first error encountered
brew install scriptcs
To use the assemblies from other formulae you need to set:
export MONO_GAC_PREFIX="/usr/local"
3. Still was unable to execute csharp code somebody told to modify settings.json by adding following details
settings.json
"code-runner.executorMap": { "csharp": "scriptcs -script" }
4. To be continued
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment