ramblings on C#
agh, all of this stuff kinda sucks.
installing stuff you’ll need
- install the
dotnet-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. (
getting VS Code working with the C# stuffs
omnisharp-roslynfrom the AUR.
- install the C# extension.
- screw around with build tasks to get it to build.
getting unit tests working
this took one hour :(
- clone vstest.
./build.sh. wait a lot.
$ mono /path/to/vstest/artifacts/Debug/net451/ubuntu.16.04-x64/vstest.console.exe /path/to/tests.dll, where
tests.dllis probably in the
binfolder of one of your projects.
ALTERNATIVELY take this pre-compiled copy, it’s dangerous to go alone