-
Notifications
You must be signed in to change notification settings - Fork 1
Please make a version for .NET Framework 4.8 compatibility #1
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
Comments
@confessore This is the error I get when I attempt to install the NuGet package
|
hi @astrohart , thanks for reaching out. i understand completely. i almost exclusively utilize net framework at work. this is something that can be done. thinking there may be some specific targeted blocks but i also think net6+ is mature and covers everything netframework4+ does at this point. i'll turn my desktop on and multi target this somehow. |
Hello @confessore In line 64 of I found some code at this Stack Overflow post and implemented it thus:
|
so I'm looking at a multi-target for net7.0 (possibly an upgrade to net8.0 soon) as well as netstandard2.0. I'm getting at least 500 errors which are pretty much all accounting for nullables which aren't supported as well as in language versions later than 7.3. sorry about the formatting.
here is an example of the solution that I have in mind for this. maybe you have a better idea?
|
I tend not to use nullables myself, as there are all kinds of different paths that it can make the software take.
I simply examine the API docs / set parameters and properties to suitable defaults.
BTW - strings are nullable by definition in C# less than .NET 7.
Regards,
Brian Hart
On 12/29/2023 11:33 AM MST steven confessore ***@***.***> wrote:
so I'm looking at a multi-target for net7.0 (possibly an upgrade to net8.0 soon) as well as netstandard2.0.
I'm getting at least 500 errors which are pretty much all accounting for nullables which aren't supported as well as in language versions later than 7.3.
are you aware of any way to better support nullables with a similar project configuration?<TargetFrameworks>netstandard2.0;net7.0</TargetFrameworks> <LanguageVersion Condition=" '$(Framework)' == 'NETSTANDARD2_0' ">7.3</LanguageVersion> <Nullable Condition=" '$(Framework)' == 'NET7_0' ">enable</Nullable>
here is an example of the solution that I have in mind for this. maybe you have a better idea?
`// Copyright (c) Steven Confessore - Balanced Solutions Software - CoinbaseAT Contributors. All Rights Reserved. Licensed under the MIT license. See LICENSE in the project root for license information.
using CoinbaseAT.Models.Interfaces;
namespace CoinbaseAT.Models;
///
///
///
public class FeeTier : IFeeTier
{
#if NET7_0_OR_GREATER
///
///
///
public string? Pricing_Tier { get; set; }
/// <summary>
/// <inheritdoc/>
/// </summary>
public string? USD_From { get; set; }
/// <summary>
/// <inheritdoc/>
/// </summary>
public string? USD_To { get; set; }
/// <summary>
/// <inheritdoc/>
/// </summary>
public string? Taker_Fee_Rate { get; set; }
/// <summary>
/// <inheritdoc/>
/// </summary>
public string? Maker_Fee_Rate { get; set; }
#elif NETSTANDARD2_0_OR_GREATER///
///
///
public string Pricing_Tier { get; set; }
/// <summary>
/// <inheritdoc/>
/// </summary>
public string USD_From { get; set; }
/// <summary>
/// <inheritdoc/>
/// </summary>
public string USD_To { get; set; }
/// <summary>
/// <inheritdoc/>
/// </summary>
public string Taker_Fee_Rate { get; set; }
/// <summary>
/// <inheritdoc/>
/// </summary>
public string Maker_Fee_Rate { get; set; }
#endif}
`
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
so for dotnetcore (NET6+) i enjoy declaring nullables for entity framework purposes. migrating databases with nullables is special to me. it makes manual database operations much more manageable for my use case. answer me this. does it make sense to create a framework repo? i report back to work on tuesday, 2january. i wish to prioritize this issue in my personal time. please allow me to know if a multi target or multi repo makes the most sense. |
I am currently on short term disability leave at the moment. models and model interfaces now include preprocessor directives for netstandard2.0 in next on the list is to include preprocessor directives for netstandard2.0 on services and service interfaces |
@confessore Hi,
I frequently still like to use .NET Framework 4.8 / 4.8.1 in my projects. I respectfully request if you could please make a version of the NuGet package that has compatibility with those framework versions. Currently, the NuGet package will not install in my .NET Framework 4.8 project. Thank you.
The text was updated successfully, but these errors were encountered: