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

5.0.0 Cannot install on PCL #1449

Closed
nbelley opened this issue Jul 5, 2016 · 12 comments
Closed

5.0.0 Cannot install on PCL #1449

nbelley opened this issue Jul 5, 2016 · 12 comments

Comments

@nbelley
Copy link

nbelley commented Jul 5, 2016

Since version 4.1, it's been impossible for me to update Automapper on my PCL projects.

I tried again with 5.0.0 with an updated Visual Studio and Xamarin to the latest version (Update 3).

Still not working. I'm wondering if I'm doind something wrong or it's simply normal and will never be supported?

Actual error message: Severity Code Description Project File Line Suppression State
Error Could not install package 'AutoMapper 5.0.0'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile49', 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. 0

Thanks.

1
2
3
4
5
6

@jbogard
Copy link
Member

jbogard commented Jul 5, 2016

Can you try the MyGet feed? I believe this one's good.

@nbelley
Copy link
Author

nbelley commented Jul 5, 2016

Can you try the MyGet feed? I believe this one's good.

I tried from that feed:

https://www.myget.org/gallery/automapperdev

Version 5.0.1-alpha-01144 also not working:

Severity Code Description Project File Line Suppression State
Error Could not install package 'AutoMapper 5.0.1-alpha-01144'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile49', 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. 0

@jbogard
Copy link
Member

jbogard commented Jul 5, 2016

Oh, yeah, I don't support that profile. Profile49 is .NET 4.5 and Windows Phone Silverlight 8. I'm not supporting Silverlight anymore. Are you deploying to Windows Phone Silverlight 8?

@nbelley
Copy link
Author

nbelley commented Jul 5, 2016

Yes, I was trying not to target Silverlight, but if I don't force targeting Windows specific version Silverlight is automatically targeted.

Works!
Thanks.

@jbogard
Copy link
Member

jbogard commented Jul 5, 2016

So....what platforms do you WANT to target?

@nbelley
Copy link
Author

nbelley commented Jul 5, 2016

Specifically android and ios. But if I target only those, Silverlight gets automatically targeted. To make sure it's not, I have to force a Windows 8 target.

@jbogard
Copy link
Member

jbogard commented Jul 5, 2016

So AutoMapper only supports netstandard1.1 and above. To get to target, you need one of the profiles listed here: https://github.com/dotnet/corefx/blob/master/Documentation/architecture/net-platform-standard.md#portable-profiles

@nbelley
Copy link
Author

nbelley commented Jul 6, 2016

Thanks, the installation worked.

Can you tell me the target release for the stable version of this build?

@jbogard
Copy link
Member

jbogard commented Jul 6, 2016

This week.

On Wednesday, July 6, 2016, Nicolas Belley notifications@github.com wrote:

Thanks, the installation worked.

Can you tell me the target release for the stable version of this build?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#1449 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAGYMgxWXywf9r6YucYYVwor-5Mkmo7pks5qS5p3gaJpZM4JFbwm
.

@jbogard
Copy link
Member

jbogard commented Jul 7, 2016

5.0.1 is released!

@jbogard jbogard closed this as completed Jul 7, 2016
@shanempope
Copy link

Putting this here because it's the only issue I could find related when I searched.

I ran into a similar issue. The error I got was "Could not install package 'System.Runtime.InteropServices.RuntimeInformation 4.0.0'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile7', 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."

It was an error in net core https://github.com/dotnet/corefx/issues/10445

I'm not sure how long it will take for that fix to propagate. So I had to install
System.Runtime.InteropServices.RuntimeInformation nuget package first, and then AutoMapper 5 would install from nuget just fine. Hope this helps someone else.

@lock
Copy link

lock bot commented May 7, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants