Can you use PostSharp in Unity?

Has anyone done this successfully?

PostSharp is downloadable as a visual studio plugin a vsix file.
Their requirements are:

  • Microsoft Visual Studio 2010 or
    2012, except Express editions.
  • Windows XP with SP3 or later.
  • NuGet Package Manager 2.2 or later.

If you develop your unity project in visual studio will this work? Will unity know how to build/run your code? Can you get unity to run a dll that VS builds?.

Do you lose debugging support? Which I believe is only available through MonoDevelop?

By adding the required assemblies(C# DLLs) to your project structure in Unity, you can use their namespaces(and classes in them) in your unity code.

You should do “using XyzNamespace;” but I’m sure you are aware of that.

Btw, Assemblies should be compiled for .NET2 or 3.5, not later than that.