Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on referencing Exceptionless NuGet package to Xamarin projects #121

Closed
arvicxyz opened this issue Sep 7, 2016 · 5 comments
Closed

Comments

@arvicxyz
Copy link

arvicxyz commented Sep 7, 2016

I have a problem on referencing the Exceptionless package. Has anyone ever tried referencing Exceptionless to a Xamarin project? I am having errors when referencing it.

Questions:

  1. What Exceptionless project type do I use? Is it Console and Service Applications?
  2. What package do I reference? Exceptionless or Exceptionless.Portable?

Error Message:

Could not install package 'System.Security.Principal.Windows 4.0.0'. You are trying to install this package into a project that targets 'Xamarin.iOS,Version=v1.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

I have implemented several solutions and none worked for me right now. I tried referencing the package to a portable class library project and the same error occurs. Hope someone has tried this before and can help me with a solution. Thanks.

@niemyjski
Copy link
Member

Hello,

  1. You'd need to install the Exceptionless package (Console and Service Applications).
  2. Just the latest Exceptionless package.

The new exceptionless package supports PCL, .NET Standard and .NET 4.5 frameworks. I believe that the there is an update to xamarin that adds support for .NET Standard.

What version of Xamarin are you using? I'm wondering if possibly you need to manually reference a lower .net standard (we support .net standard 1.2-1.5 and as the .net standard version gets bigger we turn on more things.. I'm thinking that maybe isolated storage in 1.4 may be causing this issue). Can you try updating to the latest xamarin studio/runtime and reinstalling.

If you can tell me the xamarin versions / runtimes you are using. I can also try locally on my mac.

@arvicxyz
Copy link
Author

arvicxyz commented Sep 8, 2016

Hello,

I am currently using Xamarin version 6.0.2 (build 73).

Do I directly add the Exceptionless package to the Xamarin.iOS and Xamarin.Android project or do I have to other steps just for me to be able add these packages from NuGet?

Thanks.

@niemyjski
Copy link
Member

I'm on version 6.1.0 but the way I installed it to was the portable project they generate and I changed the profile to:
screen shot 2016-09-08 at 11 04 38 am

Then I was able to reference exceptionless. I know they added support for .net standard but I've yet to get that to work in any of my samples. Can you please try this and let me know.

@arvicxyz
Copy link
Author

arvicxyz commented Sep 8, 2016

Wow! That solved my problem. Thank you.

So setting the Current Profile to PCL 4.6 - Profile 151 solves the issue.

Many thanks mate.

@arvicxyz arvicxyz closed this as completed Sep 8, 2016
@niemyjski
Copy link
Member

We've added .net standard support. I'm wondering if this story has gotten any better. Please let us know how it's working out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants