pitermarx / NCalc-Edge

A clone of NCalc. Latest source. Published to Nuget.org. version 1.4.3
http://ncalc.codeplex.com/
MIT License
53 stars 35 forks source link

Support for Package Reference style of using NuGet Package #12

Closed james1301 closed 6 months ago

james1301 commented 6 years ago

Hi, just downloaded the latest Visual Studio with support for migrating .net projects from using packages.config to the new Package Reference style.

Getting a Compatibility issue with NCal-Edge of:

"The assembly 'lib\lib\NCalc.dll' will be ignored when the package is installed after migration."

And the same goes for the Antlr depdency Nuget it installs.

Firstly is this an issue? And secondly is it possible for this issue to be resolved in a new version of NCalc-Edge?

More about Package Reference migration process here: https://docs.microsoft.com/en-us/nuget/reference/migrate-packages-config-to-package-reference#how-to-roll-back-to-packagesconfig

Thanks,

James

pitermarx commented 6 years ago

It might be an issue but I'm not able to look into it right now. I haven't yet started using the new CSproj. If you have a solution let me know

pitermarx commented 6 years ago

I think the issue is that i'm publishing the package in \lib instead of \lib\net46

james1301 commented 6 years ago

Yes sorry that is the issue I think. I am just using the new "Migrate packages.config to Package Reference" option in Visual Studio 15.7.

pitermarx commented 6 years ago

take a look at https://github.com/pitermarx/NCalc2 it's completely untested at production but it's based on NCalc and it targets netstandard 2.0

james1301 commented 6 years ago

NCalc2 sounds good, but don't think I can go for an untested solution. Will it be possible to sort this NuGet package out?

pitermarx commented 6 years ago

can you try this? https://ci.appveyor.com/project/pitermarx/ncalc-edge/build/artifacts it seems to have the ncalc.dll inside the lib\net35 folder but it gives this warning WARNING: Issue: Assembly outside lib folder. WARNING: Description: The assembly 'lib/net35\NCalc.dll' is not inside the 'lib' folder and hence it won't be added as reference when the package is installed into a project. WARNING: Solution: Move it into the 'lib' folder if it should be referenced.

pitermarx commented 6 years ago

I changed the path separator and the warning disapeared I think it's this issue https://github.com/NuGet/NuGet.Client/pull/1609 try this now https://ci.appveyor.com/project/pitermarx/ncalc-edge/build/1.4.4-build0001/artifacts

pitermarx commented 6 months ago

closed due to inactivity