Comments (7)
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.
ie if you need this to build for you now:
- Change the System.Net.Droid output assembly name to System.Net.Droid.dll
- 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
- 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.
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.
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.
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.
I do believe I fixed this and checked in the changes... but I haven't tested yet!
from mvvmcross.
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)
- Crash on mapping 2 views to same view model in iOS HOT 2
- MvxWeakEventSubscription throws without much information
- MvvmCross.Plugin.Visibility not working in .NET 7.0 Android Project HOT 8
- It looks like mvx:Bi.nd in combination with InvertedVisibility is broken in 9.2 HOT 3
- Load order change results in not being able to use constructor injection for IMvxNativeVisibility in ValueCombiners
- MAUI App that uses existing MVVMCross ViewModels - Fails with mismatch in Dependencies for Android as Target HOT 7
- MvxRecyclerView crashes on .NET 8 HOT 3
- .NET 8 Android Failed to resolve type MvvmCross.Binding.BindingContext.IMvxBindingContextStack when calling MvxActivity.SetContentView HOT 8
- MvxModalPresentationControllerDelegate closes a ViewController when the ViewController is not actually dismissed by a user HOT 2
- Namespace "MvvmCross.Platforms.Console.Core" is missing in Nuget Package 9.2.0-beta.5 HOT 1
- Plugins not working on Android in 9.2.0-beta5 HOT 5
- Using Tibet binding on a iOS UILabel AttributedText property gives weird results in comparison to Fluent binding HOT 1
- MvxColorValueConverter not working on Android in 9.2.0 HOT 9
- mvvmcross is missing NuGet package README file HOT 1
- MvvmCross 9.2.0 beta has issues with .net 8.0.2 HOT 1
- [Bug]: MvxIosViewPresenter.cs should use .ConfigureAwait(true) _not false_ for virtual methods whose overrides might switch off the main thread HOT 9
- [Bug]: Clicked event not getting triggered since .NET 8 in combination with MvvmCross 9.2.0 HOT 2
- [Bug]: Failed to register an instance of MvxValueConverter with no default constructor HOT 1
- MvvmCross.Platforms.Ios namespace is missing in 9.2.0 & 9.2.0-beta HOT 2
- [CI]: SonarCloud does not report status on Pull Requests or detect branches
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mvvmcross.