Jason V
Jason V

Reputation: 905

Mac - VS 8.10 - New 3.1 Project - Install Postsharp

I created a new, console application. Nuget => Add PostSharp =>

Reading project file /Users/jason/Projects/Postsharp/Postsharp/Postsharp.csproj. Restoring packages for /Users/jason/Projects/Postsharp/Postsharp/Postsharp.csproj... Restoring packages for .NETCoreApp,Version=v3.1... Resolving conflicts for .NETCoreApp,Version=v3.1... Cycle detected. Postsharp -> PostSharp (>= 6.10.6). Checking compatibility of packages on .NETCoreApp,Version=v3.1. Checking compatibility for Postsharp 1.0.0 with .NETCoreApp,Version=v3.1. Checking compatibility for Serilog 2.10.0 with .NETCoreApp,Version=v3.1. All packages and projects are compatible with .NETCoreApp,Version=v3.1. Package restore failed. Rolling back package changes for 'Postsharp'.

Cycle Detected?

Geez, what am I doing wrong?

Thanks, Jason

Upvotes: 0

Views: 45

Answers (2)

Jason V
Jason V

Reputation: 905

Daniel, you were right, the project name was part of the problem.

The biggest issue was I needed to manually set PostSharpDependencyRestoreDisabled=True and then I had to manually add all the referenced Nuget packages. It was annoying, but at least it works now.

Thanks!

Upvotes: 0

Daniel Balas
Daniel Balas

Reputation: 1850

This is caused by naming your project PostSharp and having a dependency on the package of the same name.

Upvotes: 1

Related Questions