I am working on a small nuget package (MakeNot). In short, I added some Extention Methods for String
,Bool
and also ModelStateDictionary
.
In order to have access to ModelStateDictionary
I should have installed below package which has its own dependency.
Microsoft.AspNetCore.Mvc.Abstractions
and I set TargetFramework like below in order to let applications based on .Net Framework to use it:
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks>
My question is, when I want to use this package in Windows form application it downloads Microsoft.AspNetCore.Mvc.Abstractions
and its dependency which is not required for this type of projects.
Is there a way to handle this ? or Have I done it right ?
Go to Source
Author: osman Rahimi