Is there any way to specify an absolute path in the SearchPath property of PostSharp?
My solution is using project.json for our NuGet packages and it stores all of the packages in your user profile (%USERPROFILE%\.nuget\packages
).
I've tried entering that into the "Additional search path" setting on the projects, but it fails with the error "Invalid path passed to PostSharp (SearchPath element)"
because it just appends it to the solution directory.
Alternatively, does anyone know of another way to have PostSharp play nicely with project.json files?
The .NET Core is not supported by the current version of PostSharp (4.x). So, unfortunately you cannot fix the issue by only editing the settings.
The support for .NET Core is coming in PostSharp 5.0.