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

Portable Class library - > Platform target 'AnyCPU' is not supported by one or more of the project's targets. #10471

Closed
jinujoseph opened this issue Apr 11, 2016 · 14 comments
Assignees
Milestone

Comments

@jinujoseph
Copy link
Contributor

Repo Steps

  • Create a new portable class library
  • Change the target to .NetStandard > 1.2
  • Build

Expected

  • Builds with no error

Actual
capture

@davkean
Copy link
Member

davkean commented Apr 11, 2016

AnyCPU is the default, so are you saying that by default, targeting .NET Standard shows an error in the Error List?

@jinujoseph
Copy link
Contributor Author

yes, and the build comes back and succeeded

@davkean
Copy link
Member

davkean commented Apr 12, 2016

This isn't ours, this is portable.

@davkean davkean removed this from the 1.3 milestone Apr 12, 2016
@DustinCampbell
Copy link
Member

Should this still be assigned to @jinujoseph?

@davkean
Copy link
Member

davkean commented Apr 12, 2016

No

@Pilchie Pilchie added this to the 1.3 milestone Apr 13, 2016
@olegtk
Copy link
Contributor

olegtk commented May 4, 2016

Any workaround?

@davkean
Copy link
Member

davkean commented May 4, 2016

@rchande's has a private fix you want one.

@rchande
Copy link
Contributor

rchande commented May 19, 2016

Can you verify this?

@rchande rchande assigned jinujoseph and unassigned rchande May 19, 2016
@weshaggard
Copy link
Member

I'm seeing this error as well. What do I need to do the verify your fix?

@rchande
Copy link
Contributor

rchande commented May 23, 2016

Install a build of VSUML > 25319.00.

@Eyas
Copy link
Contributor

Eyas commented May 23, 2016

I'm also seeing this with NetStandard 1.0 in VS "15" Preview 2.

I'm curious about this from my perspective as an author of a library trying out VS "15" and NetStandard. I innocuously clicked the "Target .NET Standard" button in the VS Project Properties window, chose to target NetStandard 1.0, updated some dependencies, and am seeing this failure. I'm not even sure what it means, and whether I should assume its a VS Preview/packaging bug or I have my dependencies set up wrong.

I'm not even sure what AnyCPU really implies about the framework used:

  1. Does it mean "anything but .NET Native" (i.e. either .NET Core w CLR or .NET Framework?)
    • if so, I still expect NetStandard 1.0 to support these
  2. Does it mean .NET Framework?
    • NetStandard 1.0 would cover 4.6, no?

@rchande
Copy link
Contributor

rchande commented May 24, 2016

@Eyas This particular error (about "AnyCPU") is a bug in Visual Studio and has no bearing on where or where not NetStandard projects can run. In fact, you should be able to ignore it and still be able to build/run your projects. This will be fixed in the next update.

@jinujoseph
Copy link
Contributor Author

Verified this on build 14.0.25323.00 update 3 RC

@alfredmyers
Copy link

alfredmyers commented May 31, 2016

I'm able to reproduce the error using Visual Studio 2015 Update 2 targeting .NETStandard1.5.
The assembly is bult though.

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

No branches or pull requests

10 participants