Core: "Microsoft.NETCore.Platforms": "1.0.1-*" What is it for

Created on 17 May 2016  路  5Comments  路  Source: dotnet/core

I have been follwowing nightlys -> RC2 so I have been following all the changes to project json etc.

One thing that still escapes me.

"Microsoft.NETCore.Platforms": "1.0.1-*" dependency. What is it for?

documentation question

All 5 comments

I am also curious about this as it is used in cli samples repository on project.json of the example for the full .net framework

@joshfree These links explain the content of the package, but its still not clear (at least to me) when and why I need to reference that package. For example, XUnit docs instruct to add this package (besides framework itself) to be able to run tests for desktop CLR targeting code, but I can't find any reason why: https://xunit.github.io/docs/getting-started-dotnet-core.html#targeting-desktop

Usually you won't need to directly reference this.

As a package developer you should only need to reference it if your package uses runtimes (eg: runtimes/rid/lib/tfm/foo.dll) and doesn't already bring it in indirectly.

In your project you only need to reference it if you are using the "runtimes" section in the project.json and it isn't already brought in by the packages you've referenced.

The link you posted was out of date, but I suspect that link predated the work we did to automatically reference this package in all CoreFx packages: https://github.com/dotnet/corefx/issues/8239.

Sorry, I've fixed the link. Thanks for clarification!

Was this page helpful?
0 / 5 - 0 ratings