mparlak / Flee

Fast Lightweight Expression Evaluator
607 stars 119 forks source link

Flee nuget package issue #92

Closed max-ieremenko closed 2 years ago

max-ieremenko commented 3 years ago

I have 3 projects

Contract.csproj

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Flee" Version="1.2.2" />
  </ItemGroup>
</Project>

Client.csproj

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net472</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <ProjectReference Include="..\Contract\Contract.csproj" />
  </ItemGroup>
</Project>

Server.csproj

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp3.1</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <ProjectReference Include="..\Contract\Contract.csproj" />
  </ItemGroup>
</Project>

Both Client and Server share the reference to nuget package Flee. Due to the package design i have 3 issues in the Client.

issue 1

issue 2

issue 3 because Client and Contract reference different flee assemblies, types from Flee.Net45.dll are not compatible to types from Flee.NetStandard20.dll

hunkydoryrepair commented 2 years ago

should just use Flee.NetStandard20.dll. Try removing any reference to Flee.Net45.dll in the dependencies.

max-ieremenko commented 2 years ago

Try removing any reference to Flee.Net45.dll in the dependencies

as you can see from the example there is only PackageReference to Flee. How i can remove reference to Flee.Net45.dll?