Coder Social home page Coder Social logo

Net standard over net 6.0 about qlnet HOT 10 CLOSED

screig avatar screig commented on August 16, 2024
Net standard over net 6.0

from qlnet.

Comments (10)

amaggiulli avatar amaggiulli commented on August 16, 2024

will check if I could restore the Multi-targetting, that should solve your issue

from qlnet.

screig avatar screig commented on August 16, 2024

Thanks

from qlnet.

amaggiulli avatar amaggiulli commented on August 16, 2024

If I enable netstandard 2.0 got troubles in FastActivator class : DynamicMethod ILGenerator and LocalBuilder

from qlnet.

screig avatar screig commented on August 16, 2024

I did this, changing the TargetFramework and adding the package.

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <VersionPrefix>1.12.0</VersionPrefix>
    <TargetFrameworks>netstandard2.0</TargetFrameworks>
    <LangVersion>latest</LangVersion>
    <DefineConstants>$(DefineConstants);QL_NEGATIVE_RATES</DefineConstants>
    <AssemblyName>QLNet</AssemblyName>
    <PackageId>QLNet</PackageId>
    <PackageVersion>1.12.0</PackageVersion>
    <Authors>Andrea Maggiulli</Authors>
    <Company />
    <Description>A free/open-source library for quantitative finance</Description>
    <Copyright>Copyright (c) 2008-2021 Andrea Maggiulli ([email protected])</Copyright>
    <PackageLicenseUrl>https://github.com/amaggiulli/QLNet/blob/develop/LICENSE</PackageLicenseUrl>
    <PackageProjectUrl>http://github.com/amaggiulli/qlnet</PackageProjectUrl>
    <PackageTags>QLNet QuantLib quantitative finance financial</PackageTags>
    <GeneratePackageOnBuild>False</GeneratePackageOnBuild>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="System.Reflection.Emit.Lightweight" Version="4.7.0" />
  </ItemGroup>


</Project>

Like I said I would have committed this as a branch, but seem to be blocked.

from qlnet.

amaggiulli avatar amaggiulli commented on August 16, 2024

yea that works , have to add back :

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' "> <PackageReference Include="System.Reflection.Emit.Lightweight" Version="4.0.1" /> </ItemGroup>

from qlnet.

screig avatar screig commented on August 16, 2024

Cool

from qlnet.

amaggiulli avatar amaggiulli commented on August 16, 2024

now I have to fight with nuget/github deployement for multi-target 😄 , will ask you to verify once done thanks

from qlnet.

screig avatar screig commented on August 16, 2024

but why bother with multi deployment, with net standard it can go anywhere, no?

from qlnet.

amaggiulli avatar amaggiulli commented on August 16, 2024

Well, main reason is that I don't want to lose net6.0 optimizations, also I see many open source projects have dropped netstandard in favor of being full dotnet core since it is less limiting in what you can do.
Anyway, as netstandard2.0 is supported (via .net 4.6.2 still being in the live lifecycle), I will restore the multi-target to fix the issue you and maybe others could have.

from qlnet.

screig avatar screig commented on August 16, 2024

Well that makes sense, and I learnt something, thanks.

from qlnet.

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.