postsharp / postsharp.samples Goto Github PK
View Code? Open in Web Editor NEWPostSharp Samples
Home Page: https://samples.postsharp.net/
License: The Unlicense
PostSharp Samples
Home Page: https://samples.postsharp.net/
License: The Unlicense
This may be late, but since I didn't find samples of PostSharp in Blazor I assume that there isn't support at all. I recently read about MVVM Support in Blazor and noticed that with PostSharp we can have (finally) a stable version after a long waiting. Here is the link I read https://blog.jeremylikness.com/blog/2019-01-04_mvvm-support-in-blazor/.
Hi there
You've got a sample project at, "Blazor/PostSharp.Samples.Blazor.AutoRetry/PostSharp.Samples.Blazor.AutoRetry.csproj".
This project was originally running .NET 6 and was working with no issues - I could see the output of the Aspect in the browser developer tool console window.
I then updated the .NET version to 8.0, the "Microsoft.AspNetCore.Components.WebAssembly" and "Microsoft.AspNetCore.Components.WebAssembly.DevServer" NuGet package refs to version 8.0.2 the PostSharp package ref version to 2024.0.5. After the upgrades, PostSharp no longer seems to inject the aspect behaviour - I see no Aspect output in the console window anymore.
I want to use PostSharp in my Web Assembly project but I have no intention of rolling back to a previous version of .NET just to support your (commercial) product.
Am I missing something in the upgrade? Everything else within the Blazor app seems to be working as expected.
The code samples for explaining, "Consuming Dependencies from an Aspect", are all missing from the "PostSharp.Samples" solution. All of these are great examples to follow in real practical projects for something as simple as creating a detailed physical log file within PostSharp Aspects.
This section presents several ways to consume dependencies from an aspect:
I want to tell user a friendly message to replace not catched excetpion.
The documentation on this subject is incomplete, and while looking for a solution or hint in this sample, one can discover that it does not compile for the same reason:
Severity Code Description Project File Line Suppression State
Error License error. No valid license key has been installed. To register a license key, see https://doc.postsharp.net/deploying-keys. PostSharp.Samples.Authorization
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.