Open sandboxFocusImprove this doc

General Errors and Warnings

Messages of the PostSharp compiler: configuration, the build process, the processing of assemblies, and unexpected errors.

Message Severity Description
PS0003 Error A configuration file is not well-formed XML, or its root element is not a PostSharp Project element.
PS0010 Error A configuration file or a plug-in that a Using element imports cannot be found.
PS0013 Error The implementation type of a task of a plug-in cannot be found in its assembly.
PS0014 Error PostSharp cannot create an instance of a task of a plug-in.
PS0016 Error The build of a project reports 500 errors or more.
PS0017 Error A property of PostSharp has a value that is not one of the values it accepts.
PS0021 Warning A task element of a configuration file has an attribute that the task does not support.
PS0023 Error Properties of a configuration file refer to each other in a cycle.
PS0041 Error A task requires a task type or a service that no loaded plug-in defines.
PS0042 Error The dependencies between the tasks of PostSharp form a cycle.
PS0045 Error A path in a configuration file, a plug-in name or the build is not a valid path.
PS0048 Error A task that a library requires is not defined by PostSharp or by its plug-ins.
PS0049 Error The implementation class of a task of a plug-in is not a task.
PS0050 Warning The IL of a method that PostSharp modified pops more values than the stack holds.
PS0051 Error A class derived from MulticastAttribute does not say on which declarations it can be multicast.
PS0052 Error A referenced library requires a PostSharp plug-in that cannot be found.
PS0054 Error A multicast attribute class carries more than one MulticastAttributeUsageAttribute.
PS0055 Error PostSharp stops the build after errors in the multicast attributes of the project.
PS0060 Error The processing of the module fails without any other error, because of an internal problem of PostSharp.
PS0065 Error A declaration has several instances of an aspect that allows only one.
PS0070 Error A field marked for removal by an add-in is assigned by a field initializer.
PS0071 Error An aspect is applied to a kind of declaration that its MulticastAttributeUsage does not allow.
PS0072 Error The MulticastAttributeUsage of an aspect class allows more than the one of its base class.
PS0074 Warning PostSharp is asked to sign an assembly that the project does not sign.
PS0075 Error The Compile task of a configuration file is asked to sign the assembly without a private key.
PS0077 Error A date attribute of a task in a configuration file contains an expression that cannot be evaluated.
PS0079 Error A configuration file configures a task that no plug-in defines.
PS0082 Error A task configured in a configuration file lacks a required attribute.
PS0083 Error A date attribute of a task in a configuration file is not a valid date and time.
PS0084 Error The configuration of the services or tasks of the PostSharp compiler has errors.
PS0087 Error A call of Post.Cast converts a type to an interface that no aspect introduces into it.
PS0088 Error Code accesses by reference a field that is intercepted and removed by an add-in.
PS0089 Warning Code accesses an intercepted field by reference, so the aspect does not see the access.
PS0090 Error A multicast attribute requests kinds of targets that its attribute type does not support.
PS0091 Error An aspect is applied directly to a declaration whose visibility or scope its usage excludes.
PS0093 Error A multicast filter with the regex: prefix contains an invalid regular expression.
PS0095 Error The configuration file that holds the binding redirections of PostSharp is not well-formed XML.
PS0096 Fatal A binding redirection of the app.config, web.config or host configuration file has an invalid version or processor architecture.
PS0097 Error The configuration file of the PostSharp process has no assemblyBinding element.
PS0099 Fatal An unexpected exception stops the processing of the project.
PS0101 Error A program that hosts the PostSharp compiler requests the processing of the dependencies first, which is not supported.
PS0103 Error An attribute class sets the inheritance of its MulticastAttributeUsage although a base class already sets it.
PS0104 Error A multicast attribute is multicast to the parameters or the return value of a method of another assembly.
PS0105 Error An attribute is applied to a parameter of a method that its TargetMemberAttributes filter excludes.
PS0106 Error An attribute is applied directly to a kind of parameter (input, out or ref) that its filter excludes.
PS0108 Error An attribute sets AttributeInheritance although the MulticastAttributeUsage of its class sets Inheritance.
PS0110 Error More than 32 low-level advices apply to the same point of a method.
PS0111 Error The order dependencies of the aspects on a declaration form a cycle.
PS0112 Error Aspects that conflict are on the same declaration, or an aspect lacks an aspect that it requires.
PS0114 Warning Two aspects on a declaration can interfere, and nothing decides their order.
PS0115 Error Two dependencies of an aspect place it both before and after the same other aspect.
PS0116 Error A base class defines a non-virtual method that PostSharp must override to initialize aspects.
PS0117 Error A public class defines an aspect initialization method that derived classes cannot override.
PS0118 Error A class defines a static method with the name of an aspect initialization method.
PS0119 Error A multicast pointcut selects kinds of declarations that its advice does not support.
PS0120 Error A multicast pointcut selects declarations, such as abstract methods, that its advice does not support.
PS0121 Error A named argument of an ObjectConstruction is not a property or field of the aspect.
PS0122 Info Gives the complete exception that made the serialization of the aspects fail.
PS0123 Warning Internal check: the local variables of a method do not occupy consecutive slots.
PS0124 Info Lists the aspect transformations and dependencies behind a preceding ordering warning or error.
PS0125 Error An aspect, aspect provider or constraint throws an exception at build time.
PS0127 Error No license of the build covers a part of PostSharp that the project requires.
PS0131 Warning PostSharp processes a project that contains no aspect and uses no other feature of PostSharp.
PS0134 Warning PostSharp cannot read the PDB file of an assembly, so it continues without its debugging symbols.
PS0135 Error A property or condition that must be True or False has another value.
PS0136 Error An expression in a configuration file has an unmatched curly bracket or an empty pair of curly brackets.
PS0138 Error An expression that must have a value, such as the file of a Using element, evaluates to an empty string.
PS0141 Error A plug-in assembly designates a project provider type that does not implement IProjectConfigurationProvider.
PS0142 Error The project provider of a plug-in assembly returns no project configuration.
PS0143 Error A plug-in assembly defines several projects, and the reference to it does not name one.
PS0144 Error The reference to a plug-in assembly names a project that the assembly does not define.
PS0156 Error A Service element of a configuration file names a class that does not implement IService.
PS0157 Error PostSharp cannot find or create the class of a Service element of a configuration file.
PS0158 Error A Property element has no Name, or a Service element has no TypeName.
PS0161 Error The XML namespace of an element in a Multicast or logging section is not a valid clr-namespace.
PS0165 Error An element of a Multicast or logging section names a type without a parameterless constructor.
PS0166 Error An XML attribute in a Multicast or logging section does not match a public field or property.
PS0167 Error An XML attribute in a Multicast or logging section has a namespace prefix.
PS0168 Error A Multicast element of postsharp.config sets a field or property whose type cannot be written in XML.
PS0169 Error A value in a Multicast element of postsharp.config cannot be converted into the type of its field or property.
PS0171 Error The usage of an attribute class requests strict inheritance, but the attribute can target properties or events.
PS0172 Error An attribute applied to a property or an event requests strict inheritance.
PS0199 Warning The .NET Framework runtime of the PostSharp compiler fails intermittently, and the build restarts the compiler.
PS0201 Error An XML element of postsharp.config names a class that cannot be found.
PS0202 Error The arguments of an ObjectConstruction match no constructor of the aspect class.
PS0204 Error A Property element of postsharp.config has a name with invalid characters.
PS0205 Error An expression between braces in postsharp.config is not valid XPath.
PS0206 Error An aspect in postsharp.config has an attribute with the prefix of the PostSharp namespace.
PS0207 Error A postsharp.config file sets a property that another configuration file sealed.
PS0208 Warning An optimized async or iterator method does not keep a parameter that an aspect needs.
PS0209 Error A base class of another assembly lacks the constructor overload that PostSharp adds for OnInstanceConstructed advices.
PS0212 Error Code of another type passes a field that an aspect intercepts by reference.
PS0214 Error PostSharp builds a project whose language is neither C# nor Visual Basic.
PS0215 Error An aspect advises an async method in a project whose target framework lacks the async infrastructure.
PS0216 Warning The operating system refuses a named lock that protects the caches of PostSharp.
PS0219 Warning The targeting pack of a .NET Framework version that the build needs is not installed.
PS0220 Info PostSharp creates a type index or a facade assembly that is not in its cache yet.
PS0228 Error The file of the installed frameworks that the build passes to the compiler does not exist.
PS0229 Error A method marked with [ModuleInitializer] does not have the signature or the visibility of a module initializer.
PS0231 Warning The async stepping information of a method cannot be written to a Windows PDB file.
PS0232 Error The PostSharp compiler starts without an input assembly.
PS0233 Error The assembly that PostSharp must process does not exist.
PS0236 Warning An assembly that PostSharp reads has a module without a name.
PS0240 Error The strong name API of Windows fails while PostSharp signs the assembly.
PS0250 Error An element that sets a property in a postsharp.config file has attributes.
PS0251 Error An element that sets a property in a postsharp.config file contains text.
PS0252 Error An element of postsharp.config that sets an object property has zero or several child elements.
PS0253 Error An object described in postsharp.config does not have the type of the property that it sets.
PS0254 Error An XML attribute in postsharp.config has a value that does not fit the type of its property.
PS0255 Error postsharp.config sets a read-only property, or a property whose accessor throws an exception.
PS0258 Error A collection in postsharp.config contains an element of the wrong type, such as options instead of a logging profile.
PS0259 Warning The PDB file of an assembly is neither a Windows PDB nor a valid portable PDB.
PS0261 Warning The compatibility level of the project is not a valid version, such as 2027.0.
PS0262 Warning The PDB file of the assembly contains data that PostSharp cannot read, so debugging information may be lost.
PS0263 Error An item of a collection in a postsharp.config file cannot be added, usually because its name is already used.
PS0264 Error PostSharp cannot load an assembly, or cannot bind a type or a member, during the build.
PS0265 Info Gives the assembly loading log of the preceding PS0264 error.
PS0266 Warning An internal error prevents PostSharp from finding the source location of another message.
PS0270 Warning The NuGet package that contains a referenced assembly has no id or no version.
PS0272 Warning PostSharp waits for a debugger to be attached to its process, because PostSharpAttachDebugger is set.
PS0275 Error The project targets or references a platform that PostSharp does not support.
PS0276 Warning A multicast attribute sets a filter property that has no effect on the declaration it is applied to.
PS0277 Info Shows the copyright notice of a plug-in that took part in the build.
PS0279 Fatal A referenced assembly cannot be loaded for execution into the PostSharp process.
PS0280 Warning The runtime that executes PostSharp is not compatible with the target framework of the project.
PS0281 Error A metadata table of an assembly designates a row that does not exist.
PS0282 Error The metadata of a method gives a parameter a position that its signature does not have.
PS0283 Error A plug-in exists only in the build for the other runtime of the PostSharp compiler.
PS0284 Warning The telemetry setting in the postsharp.config file of the repository cannot be read, so it has no effect.
PS0285 Error The build-time validation of a custom attribute rejects its target.