That's an important distinction, as it means I can run unit tests across all target frameworks on both Windows and Linux.Īs discussed by John Skeet in the aforementioned issue, if you just want to build on Linux and target. The first point worth making is that I want to be able to run on Linux under the full. You may also need to add explicit references to some Facade assemblies like System.Runtime, System.IO, and.
#Mono framework asp.net full#
props file to your project and reference it in each project that builds on full framework. NET Standard, building, and running tests, on Linux as well as Windows. In this post I'll describe the steps to get an ASP.NET Core library that targets both. I gave it a try, and evntually got it working! However, I recently stumbled across this open issue which contains a number of workarounds. I'd played around before with using Mono as a target, but I'd never got very far. However, I wanted to build my apps in Docker on the build server, which is running on Linux. NET Framework installed on your machine (or at least the reference assemblies), which is fine when I'm building locally, as I'm working on Windows. NET framework apps requires that you have. NET Standard, to try to avoid some of the dependency hell you can get into.īuilding full. However, I had a requirement for building a library that multi-tartgets both full. NET Core, it's all been pretty smooth sailing. I've been hitting Docker hard (as regulars will notice from the topic of recent posts!), and thanks to.