adamecr / Common.DMN.Engine

DMN Engine is a decision engine (rule engine) allowing to execute and evaluate the decisions defined in a DMN model. Its primary target is to evaluate the decision tables that transform the inputs into the output(s) using the decision rules.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how do i install DMN.Engine in my .NET project?

mayshen opened this issue · comments

i tried to install DMN.Engine in my .NET project(.NETFramework,Version=v4.5.2).
i type the
PM> Install-Package net.adamec.lib.common.dmn.engine -Version 0.1.2
and than responded

Install-Package : Package 'net.adamec.lib.common.dmn.engine,0.1.2' is not found in the following primary source(s): 'https://api.nuget.org/v3/index.json,C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\'. P
lease verify all your online package sources are available (OR) package id, version are specified correctly.
At line:1 char:16
+ Install-Package <<<<  net.adamec.lib.common.dmn.engine -Version 0.1.2
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

why the online package sources are missing?
did i missing something?

Hello @mayshen , I think the issue is with .NET Framework version - you are targeting v4.5.2, however the package requires .NET Standard 2.0 that is supported in .NET Framework v4.6.1 and higher. I would personally recommend to use .NET Framework v4.7.2 where possible.
Can you please re-check?

thank you so much! I'm going to try to upgrade .NET Framework later.
sorry about that i missing the info in Nuget Page .

and may i get another question?
I can't find this package in the NuGet search.
did i type the wrong word?
image

image

The minimum .NET Standard version (and in general all other dependencies) is in Dependencies section of each package at it's NuGet page. The section is collapsed by default i think, so you need to expand it to see.

I have tried the NuGet PM UI in Visual Studio 2019 and 2017 and getting the match for both net.adamec.lib.common.dmn.engine and dmn.engine there. Even when searching just for "dmn", the package appears on the list. So can't reproduce the issue at all. Do you have "nuget.org" as the Package source?

oh,maybe is version's problem.
my VS is 2015 and NuGet is V3.4.4.1321.
i will update them and retry.
thanks for your kindly reply.

closing the ticket, I guess it works with proper version config