ramblings on C#
agh, all of this stuff kinda sucks.
installing stuff you’ll need
- install the
dotnet-sdk
and 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-stable
from the AUR. (msbuild-bin
works too!) - use
msbuild
. - ???
- profit!
getting VS Code working with the C# stuffs
- install
omnisharp-roslyn
from 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.dll
is probably in thebin
folder of one of your projects. - ???
- profit!
ALTERNATIVELY take this pre-compiled copy, it’s dangerous to go alone