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

System.Drawing.Bitmap class is claimed to be present in netcoreapp2.0 (but its not) #443

Closed
andriysavin opened this Issue Aug 15, 2017 · 8 comments

Comments

Projects
None yet
6 participants
@andriysavin
Copy link

andriysavin commented Aug 15, 2017

I'm confused with API sets comparison between netstandard2.0 and netcoreapp2.0. For example, according to this diff, netcoreapp2.0 contains System.Drawing.Bitmap class:
https://github.com/dotnet/standard/blob/master/docs/comparisons/netstandard2.0_vs_netcoreapp2.0/System.Drawing.md#systemdrawing

However, this class is actually not present in neither API set. Could somebody clarify what this means?

@toddpmain

This comment has been minimized.

Copy link

toddpmain commented Aug 15, 2017

Indeed, same with System.IO.Packaging. Says here that it part of netcoreapp2.0, but it's nowhere to be found. BTW, I could use it in .net standard 2.0 preview by adding it separately, so I don't know what the H is going on with this documentation.

@danmosemsft

This comment has been minimized.

Copy link
Member

danmosemsft commented Aug 15, 2017

Drawing is not quite released in stable form - I expect late this month or early next month. @mellinoe owns that. cc @karelz

@weshaggard can you speak to the status of packaging?

Apologies for the documentation confusion -- these are both packages that are outside of the core framework, yet also considered part of netcoreapp2.0 and it looks like we indexed with them present. cc @terrajobst

@weshaggard

This comment has been minimized.

Copy link
Member

weshaggard commented Aug 15, 2017

https://www.nuget.org/packages/System.IO.Packaging/ System.IO.Packaging was released as stable on nuget.org.

@toddpmain

This comment has been minimized.

Copy link

toddpmain commented Aug 15, 2017

Yeah, I found it there eventually. Two things - 1) wasn't there recently a whole bunch of talk about not having separate NuGet packages for everything like NetCore 1.0 had?, 2) is there a list of what is considered 2.0 but not available in the SDK download and the exact links to download these items? Like when Drawing does release in stable form per @danmosemsft 's comment above, how would I know that? Where would I get it?

@danmosemsft

This comment has been minimized.

Copy link
Member

danmosemsft commented Aug 15, 2017

@toddpmain you're correct, the majority of packages are now essentially in a single package. We call that the shared framework package and you get it for free. That has the vast majority of what you would call .NET Core proper. We can't put everything we ship for .NET Core in there, for size and other reasons. There are a few extras, Drawing and (I had forgotten)_ Packaging being among them.

As for finding them -- I believe VS should suggest the package you need, but I didn't try this on the latest preview.

@weshaggard

This comment has been minimized.

Copy link
Member

weshaggard commented Aug 15, 2017

@richlander @terrajobst @leecow do we have any docs that list out the extra packages we also released with .NET Core 2.0?

@leecow

This comment has been minimized.

Copy link
Member

leecow commented Aug 15, 2017

I would expect either @terrajobst or @mairaw to know one way or the other.

@terrajobst

This comment has been minimized.

Copy link
Member

terrajobst commented Oct 18, 2018

The docs tell you the assembly names in the top. If you can't find them, check for a NuGet package under that name. Bitmap is available for .NET Core 2 via the System.Drawing.Common package.

@terrajobst terrajobst closed this Oct 18, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.