Skip to content
This repository was archived by the owner on Dec 18, 2017. It is now read-only.

project.json provide an error for an unknown PCL target #1896

Closed
JamesNK opened this issue May 19, 2015 · 2 comments
Closed

project.json provide an error for an unknown PCL target #1896

JamesNK opened this issue May 19, 2015 · 2 comments
Assignees
Milestone

Comments

@JamesNK
Copy link
Member

JamesNK commented May 19, 2015

An unknown PCL framework target turns into DNX 4.5.1 under References in Solution Explorer.

If you have multiple framework targets then the unknown PCL framework target completely disappears.

There should be an error when there is an unknown PCL framework. Right now it appears to fail silently.

A related issue to this is whether there should be a way to decouple the framework target from what appears in the NuGet package. e.g. If I have the target "net45+win+wp80+wpa81" and I want to add "MonoAndroid10+Xamarin.iOS10+MonoTouch10" as well to help Mono choose the right package, right now project.json won't know what to do with it.

@JamesNK
Copy link
Member Author

JamesNK commented May 19, 2015

Example of this issue:

I wanted to add a framework target of "net40+sl5+win+wp80+wpa81". It wasn't recognized and didn't appear. Because I had no way to figure out what the magic string is I fell back to using ".NETPortable,Version=v4.0,Profile=Profile328"

@muratg muratg added this to the 1.0.0-beta6 milestone May 21, 2015
@muratg
Copy link
Contributor

muratg commented May 21, 2015

We should raise an error in this case.

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

No branches or pull requests

3 participants