stylecop - How to reference an old assembly in ASP.NET Core (.NET Framework targeting) project? -
i'm building asp.net core project (with target framework .net framework 4.5.2), in solution of bunch of .net framework projects. i'm referencing 1 of projects uses stylecop.msbuild. however, when dotnet build
, i'm getting:
c:\mysolution\nupkgs\stylecop.msbuild.4.7.54.0\build\stylecop.msbuild.targets(101,5): error msb4062: "stylecoptask" task not loaded assembly c:\mysolution\nupkgs\stylecop.msbuild.4.7.54.0\build\..\tools\stylecop.dll. not load file or assembly 'system.windows.forms, version=2.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089'. system cannot find file specified. confirm <usingtask> declaration correct, assembly , dependencies available, , task contains public class implements microsoft.build.framework.itask. [ c:\mysolution\src\myproject\myproject.csproj]
where myproject
project i'm trying reference.
i've tried including system.windows.forms
dependency, it's version 4.0.0.0 rather 2.0.0.0, didn't seem work.
is there anyway reference system.windows.forms
build?
i tried install nuget package, , message wasn't compatible .net core.
my guess stylecop not yet ported .net core.
.net core , .net not compatible each other.
Comments
Post a Comment