Reputation: 905
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
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
Reputation: 1850
This is caused by naming your project PostSharp and having a dependency on the package of the same name.
Upvotes: 1