I need to use System.Reflection.TypeExtensions in some of my Nuget packages. I want this package to be used within a Xamarin Forms project. According to the nuget package page of System.Reflection.TypeExtensions , this should work with Xamarin.
However, when I compile my Android project for testing purpose, I got this error :
Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'System.Reflection.TypeExtensions, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono for Android profile?
I cannot figured it out how to fix this error, especially because this package is required by some other that I cannot remove...
Any ideas how to fix ?
Here my project.json/frameworks of my package :
"frameworks": {
"net45": {
"frameworkAssemblies": {
"System.Runtime": "",
"System.ObjectModel": "",
"System.Linq.Expressions": ""
},
"dependencies": {
"System.Collections": "4.0.11-beta-23516"
}
},
"dotnet5.2": {
"dependencies": {
"System.Collections": "4.0.10",
"System.Collections.Concurrent": "4.0.11-beta-*",
"System.ComponentModel": "4.0.1-beta-*",
"System.Globalization": "4.0.11-beta-*",
"System.Linq": "4.0.1-beta-*",
"System.Linq.Expressions": "4.0.11-beta-*",
"System.Reflection": "4.1.0-beta-*",
"System.Reflection.Primitives": "4.0.1-beta-*",
"System.Reflection.TypeExtensions": "4.0.1-beta-*",
"System.Runtime": "4.0.21-beta-*",
"System.Threading": "4.0.11-beta-*"
}
},
"dnxcore50": {
"dependencies": {
"System.Collections": "4.0.11-beta-23516",
"System.Collections.Concurrent": "4.0.11-beta-*",
"System.ComponentModel": "4.0.1-beta-*",
"System.Globalization": "4.0.11-beta-*",
"System.Linq": "4.0.1-beta-*",
"System.Linq.Expressions": "4.0.11-beta-*",
"System.Reflection": "4.1.0-beta-*",
"System.Reflection.Primitives": "4.0.1-beta-*",
"System.Reflection.TypeExtensions": "4.1.0-beta-23516",
"System.Runtime": "4.0.21-beta-*",
"System.Threading": "4.0.11-beta-*"
}
}
PS : rebooting Visual Studio doesn't fix anything