postsharp Questions

2

C# 7 introduced local functions (which is great!). Suppose I have the following code: using System; using PostSharp.Aspects; namespace AspectCS7 { class Program { private static void Main...
Larimore asked 19/4, 2017 at 14:36

4

Solved

I am logging all requests to my WCF web services, including the arguments, to the database. This is the way I do it: create a class WcfMethodEntry which derives from PostSharp's aspect OnMethodBo...
Borne asked 21/10, 2015 at 11:36

2

Solved

I am currently migrating a project to PostSharp to remove a lot of boilerplate code, most of it is going very smoothly but I'm left confused about how to force a command to recheck if it CanExecute...
Stanza asked 11/7, 2017 at 5:19

4

Solved

I am designing a program with AOP architecture(postsharp) that will intercept all method calls but I need a way to attach a class to every call. The problem is I don't want to have to pass the clas...
Undulatory asked 3/3, 2020 at 18:35

8

Solved

I would like to know how I can determine the source of this build error; Warning 4 The primary reference "MyNamespace.MyProject" could not be resolved because it has an indirect dependency on th...
Outweigh asked 6/6, 2012 at 0:2

0

I am trying to automate this XmlSerializer workaround pattern. See update below. Is it possible to introduce new property based on existing property and modify attributes of existing one using Pos...
Orphaorphan asked 1/6, 2017 at 16:23

1

I am designing a scenario where two PostSharp aspects are working with each other. I have one aspect (FirstAspect in the code below) that is meant to introduce an interface, and then another aspect...
Direful asked 25/9, 2016 at 15:43

3

Solved

I am experiencing issues with my CI build server in which PostSharp is causing the build to fail with the message: The assembly 'yada-yada.dll' uses non-licensed features (Basic Features). [...]. W...
Danielson asked 17/10, 2014 at 17:50

1

Solved

In version 4.2.27 of postsharp publishing a web project works correct. When the postsharp nuget package is upgraded to > 4.2.28 the publish fails. It fails when trying to run TransformWebConfigCor...
Bronchi asked 11/7, 2016 at 9:33

1

Solved

I have installed Postsharp on my build server. There were only Microsoft Build Tools (MSBuild) without Visual Studio installed. Now I need to change the license of the postsharp. When I run the in...
Endorsed asked 23/6, 2016 at 5:23

5

Solved

I am using PostSharp and I have the following target description in my project file: <Target Name="EnsurePostSharpImported" BeforeTargets="BeforeBuild" Condition="'$(PostSharp30Imported)' == ''...
Codicodices asked 9/5, 2014 at 6:24

2

Solved

I have PostSharp included in all of my projects, as per the recommended best practices for PostSharp. However, I don't have any aspects or other transformations in some of these assemblies; they ju...
Hellespont asked 26/9, 2013 at 0:14

3

Solved

Is there a way in Log4Net or NLog (or some other logger) to output logs in an execution-stack-nested XML or JSON format, such that if function A() calls B(7) that calls C("something"), it'll output...
Alphaalphabet asked 22/12, 2013 at 14:13

1

Solved

I'm using PostSharp 4.2.22.0 and Owin 3.0.1 in my project. When I compile I get the following error: Unhandled exception (4.2.22.0, postsharp-net40-x86-srv.exe, CLR 4.0.30319.394271, Release)...
Strychnine asked 9/3, 2016 at 9:14

3

Solved

I am using PostSharp version 2.1.6.4 (also tried latest version 2.1.7.35) and sometimes pdb file is missing and there is a pssym file in it's place. <?xml version="1.0" encoding="utf-8"?> &...
Margarite asked 25/6, 2015 at 18:25

4

Solved

A recent mention of PostSharp reminded me of this: Last year where I worked, we were thinking of using PostSharp to inject instrumentation into our code. This was in a Team Foundation Server Team ...
Zoologist asked 16/7, 2009 at 13:2

1

I'm trying to implement the Observer pattern on a school application using PostSharp. The situation is as follows: I have a Repository that I want to notify each TesterForm (forms that allow manip...
Rasmussen asked 6/7, 2015 at 16:41

1

Solved

I'm using PostSharp Express in VS2013 to create validation aspects which I can apply to my properties. I followed this PostSharp guide on location interception. They all work well but I am getting ...
Keil asked 29/5, 2015 at 15:20

2

Solved

I have a solution with many projects and I would like to disable Postsharp for debug builds to reduce local developer build times. Is there any way to do this without editing each project file? I ...
Porshaport asked 3/4, 2012 at 9:27

2

Solved

I have a custom attribute which I would like to restrict to methods with return type void. I know I can restrict to methods using [AttributeUsage(AttributeTargets.Method)] but there doesn't seem t...
Rooky asked 8/5, 2015 at 14:31

3

I'm using PostSharp, and this was working fine. Recently, we upgraded some projects to the MVC version 5.2. Today, I loaded up an old project which was using version 4.0 of MVC. PostSharp started r...
Domitiladomonic asked 1/10, 2014 at 17:18

1

I have a solution with many projects, some of which use PostSharp. I've recently switched from using NuGet MSBuild integrated restore to NuGet Auto Restore. This causes all necessary packages to be...
Desai asked 15/8, 2014 at 17:18

1

Solved

Ok, this may get lengthy. I am trying to do two things: I want to have a class that implements an interface by holding an instance of another class that every call is routed to. I also want to i...
Physique asked 20/6, 2014 at 15:14

1

Solved

I just tried to learn about PostSharp and honestly I think it's amazing. But one thing that it is difficult for me how a pure dependency injection (not service locator) cannot be done in Pos...
Levigate asked 11/5, 2014 at 9:16

3

I was wondering if there is any support for AOP (Aspect Oriented Programming) together with MonoTouch (and thereby with MonoDevelop). So far I was not able to find any tools that support Mon...
Briseno asked 4/4, 2012 at 5:49

© 2022 - 2024 — McMap. All rights reserved.