postsharp

    0熱度

    1回答

    我有一個PostSharp方面(以下實現爲AutoData)施加於測試方法,例如: [Theory, AutoData(additionalTypes: typeof(MethodFormatter))] public void MethodFormatsAsExpected(FormatterFactory sut) { var name = MethodBase .GetCurrentMeth

    3熱度

    1回答

    我在我的項目中使用PostSharp 4.2.22.0和Owin 3.0.1。 我編譯時出現以下錯誤: Unhandled exception (4.2.22.0, postsharp-net40-x86-srv.exe, CLR 4.0.30319.394271, Release): PostSharp.Sdk.CodeModel.AssemblyLoadException: Cannot fi

    0熱度

    1回答

    我想用PostSharp和multicastAttribute實現日誌記錄。 使用PostSharp Diagnostics庫中的日誌記錄方面。 我在啓動項目目錄中有一個GlboalAspects.cs。 內容如下。 `[assembly: PostSharp.Patterns.Diagnostics.LogAttribute(AttributeTargetTypes = "alp_generat

    0熱度

    1回答

    我正在嘗試安裝postsharp express 4.1,但安裝失敗並顯示錯誤「Proxy Authentication Required」。 我的機器上安裝了Visual Studio 2012和2015。以下是postsharp日誌文件中的跟蹤。任何建議都會有幫助。 PostSharp.HQ.v3.0.exe Information: 0 : Registry key HKCU\Softwar

    0熱度

    1回答

    看點看起來像這樣 [Serializable] [IntroduceInterface(typeof(ISomeMethod), OverrideAction = InterfaceOverrideAction.Ignore)] public class MyAspect: InstanceLevelAspect, ISomeMethod { [IntroduceMember(Is

    1熱度

    2回答

    我在我的代碼中的幾個方法上使用[Log]屬性。這很適合記錄每種方法的進入和退出以及打印輸入參數的詳細信息。 但是,當輸入參數是一個通用列表時,日誌細節並不是非常有用。 例如: [Log] public List<InventoryResponse> GetInventory(List<InventoryRequest> request) { ... 這將輸出以下日誌文​​件: En

    0熱度

    1回答

    我使用後急劇運行時版本 - V2.0.50727版 - 4.2.20.0,我不能夠能夠使用OnMethodInvocationAspect。我在這裏做錯了什麼? Csharp的運行庫版本 - v4.0.30319 http://www.postsharp.net/blog/post/async

    3熱度

    1回答

    我在我的項目中使用了postharp。當我正在嘗試構建解決方案時,我遇到了以下錯誤。 「The "PostSharp.MSBuild.PostSharp30DetectNativeFrameworkVersion" task could not be loaded from the assembly C:\ProgramData\PostSharp\3.1.49\bin.Release\PostS

    0熱度

    1回答

    我將Postharp實施到使用MVVM-Light製作的現有項目中。我定義我的視圖模型屬性如下: public WindowState WindowState { get { return windowState; } set { if(windowState != value) { windo

    0熱度

    1回答

    比方說,我有這個類的RaiseProperyChanged屬性從PostSharp: [NotifyPropertyChanged] public class MainViewModel { public int RandInt { get; set; } public MainViewModel() { RandInt = 10; ne