Mono supports the creation of VS2017.Net Framework projects, as it now uses msbuild.
To make it work on Travis CI, this is a bit complicated, but it should work:
- wget -q https://packages.microsoft.com/config/ubuntu/14.04/packages-microsoft-prod.deb - sudo dpkg -i packages-microsoft-prod.deb - wget -q http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/gcc-5-base_5.4.0-6ubuntu1~16.04.9_amd64.deb - sudo dpkg -i gcc-5-base_5.4.0-6ubuntu1~16.04.9_amd64.deb - wget -q http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libstdc++6_5.4.0-6ubuntu1~16.04.9_amd64.deb - sudo dpkg -i libstdc++6_5.4.0-6ubuntu1~16.04.9_amd64.deb - wget -q http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu55_55.1-7ubuntu0.4_amd64.deb - sudo dpkg -i libicu55_55.1-7ubuntu0.4_amd64.deb - sudo apt-get install apt-transport-https - sudo apt-get install -y libicu55 - sudo apt-get install dotnet-runtime-deps-2.1 - sudo apt-get install dotnet-runtime-2.1 - sudo apt-get install aspnetcore-runtime-2.1 - sudo apt-get install dotnet-sdk-2.1
Essentially, you need to manually install dotnet-sdk manually and all its dependencies.
Then just call msbuild:
- msbuild /p:Configuration=Release Solution.sln
source share