You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a .Net Standard library that uses Flee. It apparently pulls in assembly Flee.NetStandard20. Another of my libraries, which is Net472, depends on the first library. Compiling generates the following error:
Error CS0012 The type 'ExpressionContext' is defined in an assembly that is not referenced. You must add a reference to assembly 'Flee.NetStandard20, Version=1.0.0.0, Culture=neutral, PublicKeyToken=85238e57c1c34b81'. Net472Library D:\Projects\MyProject\Net472Library \ClassWithExpressionContextParameter.cs 22 Active
The Net472Library is linking with Flee.Net45 instead of Flee.NetStandard. The Net472Library.csproj includes the following line in the first <PropertyGroup> element:
This is actually not a problem with Flee. Apparently is part of a larger issue with the .Net SDK. Unfortunately, it is an open issue. My workaround was to clone the Flee project and deleting the net45 project, updating the nuspec file to be "Flee.NetStandard", creating a new NuGet package, checking it into our local repo, and updating the .csproj files to specify the new package name.
One question is if you have a .Net Standard version of the library, why do you need the net45 version? Backward compatibility?
I have a .Net Standard library that uses Flee. It apparently pulls in assembly Flee.NetStandard20. Another of my libraries, which is Net472, depends on the first library. Compiling generates the following error:
The Net472Library is linking with Flee.Net45 instead of Flee.NetStandard. The Net472Library.csproj includes the following line in the first
<PropertyGroup>
element:I am not sure how to force the Net472Library to use the Flee.NetStandard20, as you only specify
"Flee" in the
<PackageReference>
element.The text was updated successfully, but these errors were encountered: