Giter Site home page Giter Site logo

Comments (7)

slodge avatar slodge commented on May 22, 2024

There is no way to solve this properly yet....

It's a problem only when compiling in MonoDevelop (not VS)

The MonoTouch solution works around this by building to a System.Net.Touch.dll name and then doing a rename to System.Net.dll

I have opened this up on https://bugzilla.xamarin.com/show_bug.cgi?id=8035 last month (and on StackOverlfow in September - http://stackoverflow.com/questions/12433701/building-a-system-net-surrogate-dll-under-monotouch-avoiding-a-friend-access)

I've got agreement from engineers at both Xamarin and Microsoft than one or both of them should ship these shim dll's really... but no real action from either yet.

As a workaround, I will put the same workaround as Touch has for this - will do at some point this week....

For MonoDroid, a similar fix will be needed for the System.Xml.Serialization shim too.

Sorry about leaving this in there thsi long (Redth told me about it at the end of last week)

Stuart

from mvvmcross.

slodge avatar slodge commented on May 22, 2024

ie if you need this to build for you now:

  1. Change the System.Net.Droid output assembly name to System.Net.Droid.dll
  2. Add a rename PostBuild task - see CustomCommands in the Touch version - https://github.com/slodge/MvvmCross/blob/vnext/PortableSupport/System.Net.Touch/System.Net.Touch.csproj
  3. Maybe, you will also need to edit a few csproj files (mainly the samples) so that they reference the bin/Droid/debug/System.Net.dll by file rather than by project

The main delay for me doing this myself is setting up my Mac for Droid development!

Hope that helps

Stuart

from mvvmcross.

slodge avatar slodge commented on May 22, 2024

If that doesn't make sense you can ping me on http://jabbr.net/#/rooms/mvvmcross - although I have a feeling we are in different timezones :)

from mvvmcross.

schappel avatar schappel commented on May 22, 2024

Thanks, that seems to do the trick. I guess the fun part is trying to keep the projects consistent between Windows and OSx.

On a different note, I must say from what I have seen you have done a great job. I previously have used Caliburn.Micro in a number of WP7 / WPF applications, and it doesn't seem like too much of a leap to get my head around MvvmCross. BTW: If you ever decided to merge with Caliburn I think the ultimate Mvvm Framework could be created. (just saying)

from mvvmcross.

schappel avatar schappel commented on May 22, 2024

To get around the Windows (Visual Studio) / OSx (MonoDevelop) I just hacked the project file (based on a previous post of yours) to conditionally change the assembly output name:

    <AssemblyName Condition="'$(OS)' != 'Windows_NT'">System.Net.Droid</AssemblyName>
    <AssemblyName Condition="'$(OS)' == 'Windows_NT'">System.Net</AssemblyName>

from mvvmcross.

slodge avatar slodge commented on May 22, 2024

I do believe I fixed this and checked in the changes... but I haven't tested yet!

from mvvmcross.

slodge avatar slodge commented on May 22, 2024

Finally tested on the Mac - it didn't build....

Problem still there with the xml serialization project

Fixed that now....

  • so closing.

Thanks again for the bug report - bug squashed :)

from mvvmcross.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.