realvizu / NsDepCop

NsDepCop is a static code analysis tool that helps to enforce namespace dependency rules in C# projects. No more unplanned or unnoticed dependencies in your system.
GNU General Public License v2.0
200 stars 32 forks source link

Mac Rider Use NsDepCopTask error #58

Closed lipengjia1 closed 2 years ago

lipengjia1 commented 3 years ago

When i use Rider to build my project on mac, i will get a error, like this:

The "Codartis.NsDepCop.MsBuildTask.NsDepCopTask" task could not be loaded from the assembly /Users/username/.nuget/packages/nsdepcop/1.8.2/build/../tools/NsDepCop.MsBuildTask.dll. Could not load file or assembly 'Microsoft.Build.Utilities.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
 Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

use the virtual studio and windows, it is work well.

realvizu commented 3 years ago

Try the new v2.0.0 version: https://www.nuget.org/packages/NsDepCop/2.0.0

realvizu commented 2 years ago

Closing as stale. Feel free to reopen if you have new info.

lipengjia1 commented 2 years ago

OK, thanks for your feedback, currently it works well.