GithubHelp home page GithubHelp logo

Comments (6)

BryanWilhite avatar BryanWilhite commented on June 19, 2024

i am increasingly confident that the combination of <TargetFrameworks> and conditional compilation is all that is needed to build from one .NET Standard project, supporting multiple platforms

https://docs.microsoft.com/en-us/dotnet/standard/frameworks

proposed support for this studio:

target framework moniker (TFM) preprocessor symbol
netcoreapp2.2 NETCOREAPP2_2
netcoreapp2.1 NETCOREAPP2_1
netstandard2.0 NETSTANDARD2_0
net462 NET462
net452 NET452

my confidence is shaky around a scenario where, say, support for net35 is needed because netstandard2.0 supports more than what is in net35 and i am not going to manually tree-shake out what netstandard2.0 supports with a bunch of #if-#elif blocks ( πŸ”¬ one could test how this scenario works out by adding net35 to the project and reference its build in a .NET 3.5 test project)

the intention here is to use #if-#elif only to block out what netstandard2.0 does not supportβ€”and this support should eliminate the need for #19 and #2

from songhaycore.

BryanWilhite avatar BryanWilhite commented on June 19, 2024

this @RickStrahl post is very important: https://weblog.west-wind.com/posts/2017/Sep/18/Conditional-TargetFrameworks-for-MultiTargeted-NET-SDK-Projects-on-CrossPlatform-Builds

image

from songhaycore.

BryanWilhite avatar BryanWilhite commented on June 19, 2024

also i have been missing this: https://docs.microsoft.com/en-us/dotnet/core/tutorials/libraries#how-to-multitarget

image

from songhaycore.

BryanWilhite avatar BryanWilhite commented on June 19, 2024

more @RickStrahl: https://weblog.west-wind.com/posts/2017/jun/22/multitargeting-and-porting-a-net-library-to-net-core-20

from songhaycore.

BryanWilhite avatar BryanWilhite commented on June 19, 2024

this issue addressed Error NU5125: The 'licenseUrl' element will be deprecated [ https://github.com/NuGet/Home/issues/7509 ], replacing licenseUrl with the license element and a files entry: https://docs.microsoft.com/en-us/nuget/reference/nuspec#license
image

from songhaycore.

BryanWilhite avatar BryanWilhite commented on June 19, 2024

also i should apologize to me for not using a branch during the resolution of this issue; pushing code that will not build to the master branch was not confidence building for any visitor that might have stumbled upon this repo πŸ™„

from songhaycore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.