Mono: DllImport error loading library './libgdiplus.0.dylib.so': 'dlopen(./libgdiplus.0.dylib.so, 9): image not found'.
Mono: DllImport error loading library './libgdiplus.0.dylib': 'dlopen(./libgdiplus.0.dylib, 9): Library not loaded: /Library/Frameworks/amework/Versions/6.12.0/lib/libglib-2.0.0.dylib Mono: DllImport attempting to load: 'libgdiplus.0.dylib'. Libgdiplus.0.dylib will be imported from pointed location in fix.config file and the app will run like on the machine with installed mono.
So if code or config contains references to files, you may need to correct mismatched casing.
Windows programmers are used to a case-insensitive filesystem. Mono ~/Source/Repos/vstest/artifacts/Debug/net451/ubuntu.18.04-圆4/ -TestAdapterPath:~/Source/Repos/vstest/test//bin/Debug/net451/ MyTestUnitTestProjectName.dll.
To run the tests on unix you then have to download and build and run it with e.g. Note this will only get you to a successful build. \packages\MSTest.TestFramework.2.1.2\lib\net45\.dll \packages\System.ValueTuple.4.3.1\lib\netstandard1.0\įor References to : Add a nuget reference to MSTEST V2 from and make it conditional on the OS idk why msbuild builds without complain on Windows but not on Unices. This applies to Types that MS put on during the evolution. Add Condition="'$(OS)' != 'Unix'" to the reference. $(FrameworkPathOverride)/Facades $(AssemblySearchPaths)įor projects that have lived through C# evolution from C# 5 to C# 7: You may need to remove duplicate references to e.g. $(BaseFrameworkPathOverrideForMono)/4.7.2-api $(BaseFrameworkPathOverrideForMono)/4.7.1-api $(BaseFrameworkPathOverrideForMono)/4.7-api $(BaseFrameworkPathOverrideForMono)/4.6.2-api $(BaseFrameworkPathOverrideForMono)/4.6.1-api $(BaseFrameworkPathOverrideForMono)/4.6-api $(BaseFrameworkPathOverrideForMono)/4.5.2-api $(BaseFrameworkPathOverrideForMono)/4.5.1-api $(BaseFrameworkPathOverrideForMono)/4.5-api $(BaseFrameworkPathOverrideForMono)/4.0-api Library/Frameworks/amework/Versions/Current/lib/mono Add this section somewhere in the csproj file (I put it right at the bottom), to resolve NetFramework4 reference paths: \packages\.1.0.0.0\lib\net40\įor all project types-but, only if you need to use the netCore dotnet build tooling to build an NetFramework project on unix. Use this if you get a 'The “KillProcess” task was not given a value for the required parameter “ImagePath” (MSB4044)' error message or if the build output shows you are trying to create files in an top-level absolute /bin/ path.įor AspNet: Add Condition="'$OS'!='Unix'" to the reference to AND delete the file from the website bin directory. csproj file to make it cross-platform, so a basic grasp of msbuild is very helpful.įor AspNet: inside the PropertyGroup section near the top of the csproj file, add an element: bin/
Net Framework solution files on a Mac and finding they don't build first time. Here's my checklist from a couple of years of opening. Net Framework projects mono can run runs most things including Asp.Net. It is all very much easier if you either start with cross-platform in mind, or if you move to. Mono goes a long way in running code written for.