ramblings on C#
agh, all of this stuff kinda sucks.
installing stuff you’ll need
- install the
dotnet-sdkand thedotnet-runtime. and mono. - mono is great and does all things .NET-related that MS didn’t bother to include.
compiling stuff built for .NET
- install mono and
msbuild-stablefrom the AUR. (msbuild-binworks too!) - use
msbuild. - ???
- profit!
getting VS Code working with the C# stuffs
- install
omnisharp-roslynfrom the AUR. - install the C# extension.
- screw around with build tasks to get it to build.
- ???
- profit!
getting unit tests working
this took one hour :(
- clone vstest.
- run
./build.sh. wait a lot. - run
$ mono /path/to/vstest/artifacts/Debug/net451/ubuntu.16.04-x64/vstest.console.exe /path/to/tests.dll, wheretests.dllis probably in thebinfolder of one of your projects. - ???
- profit!
ALTERNATIVELY take this pre-compiled copy, it’s dangerous to go alone