Comments (3)
Well, I think this is the correct behavior, since .NET Standard 2.1
is higher than .NET Standard 2.0
, and .Net Core 3.1 can use .NET Standard 2.1
,
this is because .NET Standard 2.1
has much more api than .NET Standard 2.0
(the Span<T>
and more) so library that target .NET Standard 2.1
can more optimization (for example , use Span<T>
related type and api)
from standard.
Well, I think this is the correct behavior, since
.NET Standard 2.1
is higher than.NET Standard 2.0
, and .Net Core 3.1 can use.NET Standard 2.1
,
this is because.NET Standard 2.1
has much more api than.NET Standard 2.0
(theSpan<T>
and more) so library that target.NET Standard 2.1
can more optimization (for example , useSpan<T>
related type and api)
But from the project dependency hierarchy, it should be clear that ClassProject1
targets .NET Standard 2.0 only so shouldn't ClassProject2
be more restrictive by targeting .NET Standard 2.0 instead of 2.1?
from standard.
A method (
ClassProject2Test1
) onClassProject2
is hidden behind a#if NETSTANDARD2_0
preprocessor directive.
This is a violation of normal versioning rules. If you multitarget for A and B (and B > A) than B must not have fewer APIs than A. Replace .NET Standard with .NET Core and then it should be easy to understand:
TestProject1
targetingnetcoreapp3.0
ClassProject1
targetingnetcoreapp2.0
ClassProject2
targeting bothnetcoreapp2.0
andnetcoreapp3.0
The application (TestProject1
) will run on .NET Core 3.0. That means it will use the netcoreapp2.0
build of ClassProject1
(because it's the only option) and the netcoreapp3.0
of ClassProject2
(because it's the better match).
Does this make sense?
Closing as by-design.
from standard.
Related Issues (20)
- Build issues when referencing project that targets multiple frameworks C# WPF HOT 1
- Questions about tagging within this repository / future versions HOT 1
- System.Drawing.Printing.PrinterSettings slow HOT 1
- Support with Universal Windows Platform HOT 2
- How to build .NET Standard based library for ARM architecture HOT 6
- Update docs to reflect the status of .NET Standard in 2020 HOT 2
- [BUG] [UWP] GetManifestResourceInfo doesn't work on UWP HOT 3
- Value Tuple Could not load file or assembly 'System.ValueTuple, Version=4.0.1.0, HOT 1
- mono and .NET5+ HOT 8
- Security Vulnerability due to System.Text.RegularExpressions HOT 4
- Class ValueTask has different definitions between .Net Standard 2.1 and .Net 5 HOT 1
- Strong name signature not valid HOT 5
- Assembly version for DispatchProxy shim is too low resulting in duplicate types for DispatchProxy HOT 10
- linq using GetValueOrDefault in Where clause problem HOT 3
- DbCommand.ExecuteReaderAsync throws TaskCanceledException with wrong CancellationToken HOT 2
- [Feature Request] Allow Static Method In Interface HOT 3
- [question] Will Garbage Collector Collect Memebers, When Object Is Casted To Parent Type, That Is Now Inaccessible On The Type Of Reference? HOT 2
- [Feature Request] Support for MultiSet & MultiMap in System.Collections.Generic HOT 3
- Support of 'IAsyncComparer' for Linq operations. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from standard.