Skip to content

Commit 26af726

Browse files
ericstjgewarren
andauthored
Include guideline discouraging publishing for netstandard2.0 (#45562)
* Include guideline discouraging publishing for netstandard2.0 * Update docs/standard/library-guidance/cross-platform-targeting.md Co-authored-by: Genevieve Warren <[email protected]> --------- Co-authored-by: Genevieve Warren <[email protected]>
1 parent f1f1b09 commit 26af726

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/standard/library-guidance/cross-platform-targeting.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ If your project targets .NET or .NET Standard and compiles successfully, it does
4747

4848
> For example, a UWP control toolkit library depends on an app model that is only available on UWP. App model specific APIs aren't available in .NET Standard.
4949
50+
❌ DO NOT publish for `netstandard2.0` if your project or dependencies multi-target.
51+
52+
> `netstandard2.0` is not a runtime, and multi-targeted projects provide a runtime framework&mdash;specific library, which is required when running on other frameworks.
53+
5054
## Multi-targeting
5155

5256
Sometimes you need to access framework-specific APIs from your libraries. The best way to call framework-specific APIs is to use multi-targeting, which builds your project for many [.NET target frameworks](../frameworks.md) rather than for just one.

0 commit comments

Comments
 (0)