msbuildtasks icon indicating copy to clipboard operation
msbuildtasks copied to clipboard

Mono 4 support

Open lukebakken opened this issue 8 years ago • 5 comments

Hello!

I have been using this library in the Riak .NET Client but have run into the following incompatibility with Mono 4 (build log):

Project "/home/travis/build/basho/riak-dotnet-client/build/build.targets" (UnitTest target(s)):
    Target SetupTests:
: error : Error initializing task XmlQuery: Could not load file or assembly 'Microsoft.Build.Utilities.v3.5, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
        Build FAILED.
        Errors:
        /home/travis/build/basho/riak-dotnet-client/build/build.targets (UnitTest) ->
        (SetupTests target) ->
            : error : Error initializing task XmlQuery: Could not load file or assembly 'Microsoft.Build.Utilities.v3.5, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
             0 Warning(s)
             1 Error(s)
        Time Elapsed 00:00:00.1108750
make: *** [unit-test] Error 1

This is apparently due to incompatible changes between Mono 3 and Mono 4.

Is there interest in adding full Mono support to this library? In other words, a PR that would allow a user to clone this repo and build on Mono 4.

lukebakken avatar Sep 29 '15 16:09 lukebakken

Vote for it!

AFAIK Mono 4 have Mono Microsoft.Build.Utilities.v4.0 (libmono-microsoft-build-utilities-v4.0-4.0-cil package on Debian).

roman-yagodin avatar Nov 16 '15 16:11 roman-yagodin

There is a pending change to move to .net 4, IE v4.0 of the library. However, I haven't come up with a way to support old msbuild and new msbuild quite yet. I'm happy to just move to .net 4 only, but i don't want to break others. Ideas?

pwelter34 avatar Nov 16 '15 18:11 pwelter34

If a user needs support for older .NET versions, use an older version of msbuildtasks ?

lukebakken avatar Nov 16 '15 18:11 lukebakken

It's a common sense, but if there is a way to build against various .NET versions (?), then shipping several binary versions for each release would do the job.

roman-yagodin avatar Nov 17 '15 05:11 roman-yagodin

Anyone have a fix for this? I would love to be able to build on mono!

slide avatar Apr 27 '16 23:04 slide