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

Frameworks within the portable profile are not allowed to have profiles themselves #165

Closed
wants to merge 1 commit into from

Conversation

maartenba
Copy link
Contributor

Fixes NuGet/Home#1869

Note that current 3.3 does not throw when such invalid framework is encountered. Instead, it parses the framework into: .NETPortable,Version=v0.0,Profile=net+win+wpa+wp+sl+net-cf+netmf+MonoAndroid+MonoTouch+Xamarin.iOS

This PR changes the behaviour and will throw FrameworkException in these cases.

@@ -497,5 +497,20 @@ public void PackageReader_SupportedFrameworks()
}
}
}

[Fact]
public void PackageReader_SupportedFrameworksForInvalidPortableFrameworkThrows()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory this test is not required, but since NuGet/Home#1869 mentions a broken package this test was added to test front to back.

@maartenba
Copy link
Contributor Author

/cc @emgarten @yishaigalatzer

@yishaigalatzer
Copy link
Contributor

looks good to me. @emgarten what do you think?

@emgarten
Copy link
Member

emgarten commented Jan 4, 2016

Looks good
:shipit:

@maartenba
Copy link
Contributor Author

So I can just merge?

@maartenba maartenba self-assigned this Jan 5, 2016
@emgarten
Copy link
Member

emgarten commented Feb 9, 2016

Is this change in?

@maartenba
Copy link
Contributor Author

No, was waiting for a "yes please merge" :-)

@emgarten
Copy link
Member

emgarten commented Feb 9, 2016

It looks good to me. //cc @yishaigalatzer

@emgarten
Copy link
Member

Let's get this merged in

@maartenba
Copy link
Contributor Author

Thanks @emgarten - change is in 363fdc4

@maartenba maartenba closed this Feb 19, 2016
@maartenba maartenba deleted the maballia-issue1869 branch February 19, 2016 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants