Prevent Nuget Package to Installs in .NET Framework Projects.

Samarasam M 1 Reputation point
2019-11-22T10:56:43.07+00:00

Prevent Nuget Package to Installs in .NET Framework Projects. But It Should Install the Nuget Package in .NET Core and .NET Standard projects.

Only while try to install in Framework Projects it should show the custom message.
How to achieve this.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,951 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Vahid Ghafarpour 17,870 Reputation points
    2023-07-16T06:27:59.4833333+00:00

    You can use a combination of package dependencies and conditional logic in your NuGet package's .nuspec file.

    0 comments No comments