#postsharp
Explore tagged Tumblr posts
Link
SharpCrafters PostSharp v6.6.10 Enterprise
PostSharp is the #1 pattern-aware extension to C# and VB. It allows developers to eradicate boilerplate by offloading repeating work from humans to machines. PostSharp contains ready-made implementations of the most common patterns and gives you the tools to build automation for your own patterns. Developers usually think in terms of design patterns, but with conventional programming languages, they end up writing boilerplate code. PostSharp extends the C# and VB languages with a notion of pattern. The result: shorter, cleaner code that’s easier to write and understand, contains fewer defects and is less expensive to maintain.
https://developer.team/dotnet/28243-sharpcrafters-postsharp-v6610-enterprise.html
1 note
·
View note
Photo

PostSharp Diagnostics with 1 Year of Maintenance(QUANTITY: 5) -The no-brainer instrumentation toolbox for .NET and .NET Core #PostSharp #Diagnostics #開發 #軟體工程 #軟件 #優化 The no-brainer instrumentation toolbox for .NET and .NET Core. Add extensive logging to your application in minutes and direct it to any logging framework. Your way, faster than hand-written code http://www.pcstore.com.tw/cheerchain/M32254800.htm
0 notes
Text
Pack .NET program to a single .exe file
PostSharp has just released PostSharp.Community.Packer, a free and open-source tool that you can use to pack your .NET Framework application into a single .exe file for distribution. By the way, if you are looking for a documentation apps, there is another post.
The basic idea as well as much of the code itself come from Costura.Fody, an add-in to Fody, which has the same effect. We mostly differ only in the architecture we use to apply our changes to the build process. Like Costura, Packer is released under MIT.
You can find instructions on how to add Packer to your project on the Packer GitHub page.
When I first encountered Costura.Fody, I was amazed. Before I discovered it, I needed to use an installer or complex tools like ILMerge/ILRepack, but Costura.Fody proved that you can have a self-contained .exe by adding a NuGet package, and it just works. So now we have that, too.
Why should I distribute my application as a single .exe file?
When you distribute an application, you want to make it as easy as possible for the end-user to download and start your application. The easier this process is, the more likely the user is to run your application.
Traditionally on Windows, you distribute applications using installers. But installers are heavyweight and represent a barrier themselves: users may not be as willing to install your application, especially if it’s small, but they may be more willing to just run it.
Another common way to distribute an application is as a .zip file that the user needs to extract. But in this case, the user needs to have enough computer skills to know that they must extract rather than run directly from the .zip file (in which case your project would probably silently crash) and they must be able to identify the correct .exe file to run from possibly many files that are in the .zip file. This is a problem especially because the .dll files that you depend on are normally all in the same directory as your main .exe file.
Updating is also harder with a .zip file where the user must remember where they kept your application when they extract the update… and you’d better hope that the possible extra files that are no longer required don’t mess the application up.
Finally, there’s the matter of aesthetics. A single file just looks so much cleaner than a folder with the main .exe file hiding among dozens of libraries!
Distributing your application as single .exe file allows the user to download only a small file and immediately run it. It doesn’t clutter their computer as an installer would, and it doesn’t have the risk that they won’t be able to open it as a .zip file would.
Can’t .NET Core 3 already do this on its own?
That is true. However, this would require you to use .NET Core.
Since .NET Framework is installed on every Windows machine, you can expect your small single-file .exe program to work everywhere. (If you want to be sure about older versions of Windows, you need to choose an older version of .NET Framework.) This means that your final .exe file can be even 1 MB or 2 MB in size. What is more, our telemetry data shows that, despite the hype .NET Core and .NET 5 are receiving, a majority of developers still target .NET Framework.
On the other hand, with .NET Core 3, you cannot usually expect the end-user to have .NET Core installed on their machine, and so you must include the runtime with your application, which means an extra 30–70 MB that the user needs to download and that can’t be shared among applications.
How does Packer work?
Packer has two components: one works at build time and one at runtime.
At build time, Packer runs in the build process after the main compilation completes. It reads from the disk all assemblies that you have set as “Copy to output folder” which includes most referenced assemblies outside the .NET Framework itself. It also includes assemblies from NuGet packages. Then it puts the content of those assemblies as resources into your .exe file, optionally compressed.
At runtime, Packer registers itself as an assembly loader so that whenever the .NET Framework runtime fails to load a required assembly, it gives a chance to Packer to load it, and Packer will then uncompress the data in your application’s resources and return that as the required assembly to the runtime.
How can I add Packer to my project?
It is very easy:
Install the NuGet package PostSharp.Community.Packer.
Get a free PostSharp Community license at https://www.postsharp.net/essentials (When you compile for the first time, you may be asked to enter the license key.)
Add [assembly: Packer] somewhere in your code.
Then build your project and to test that everything is working, copy your resulting .exe file into a standalone folder and run it.
The post Pack .NET program to a single .exe file appeared first on PureSourceCode.
from WordPress https://www.puresourcecode.com/tools/pack-net-program-to-a-single-exe-file/
0 notes
Text
なるほどですね
(全 40 件)
1. 素晴らしいことに、任天堂の岩田聡さんは「人間を説得して動かすのも、プログラミングと同じこと」と考えていた。
2. AWS WAFのレートベース制限で管理者ページへの接続を制限する
3. ngrokを使ってローカル開発中のVueアプリをHTTPSで公開する
4. MITがソーラー発電機能を備えたIoTセンサーを開発!室内照明もエネルギーに変える
5. 「デジタル窓」の発想はSF映画!? 未来の窓“Atmoph Window”が与えてくれる「癒し」と「冒険心」
6. 今の時代にこそ、ラグビーが必要だったのかもしれない
7. WebSocket で Amazon Transcribe を使用して、リアルタイムで音声をテキストに文字起こしする
8. 解き放たれた、新しい DDoS 攻撃ベクトル 35 Gbps の WSD 攻撃
9. Vue.jsで作ったSPAだけどアプリケーションの更新をお知らせしたい!|ハンズラボエンジニアブログ|ハンズラボ株式会社
10. Load balance read replicas using ProxySQL in Azure Database for MySQL
11. 「Windows Virtual Desktop」正式サービスとして提供開始、マイクロソフト純正のVDI環境。Azureの東西日本リージョンからも利用可能に
12. Built-in Jupyter notebooks in Azure Cosmos DB are now available
13. 【牛乳vs牛肉】筋トレの効果を最大にする食品について知っておこう! - リハビリmemo
14. GAEアプリの開発フローにCloud BuildでのCI/CDをいい感じに組み込む
15. 500回充電できるリチウム二酸化炭素電池のプロトタイプを米大学が開発
16. Summer InternshipでSpannerのSQLパーサ・型チェッカを作りました!
17. トヨタの「C-HR」に出力をアップしたハイブリッド登場! 新マルチメディアシステムも搭載
18. Announcing PostSharp 6.3 RC: Support for Linux, Improved VSX Performance, and More
19. メガネをかければ目の前にスクリーンが!MRスマートサングラス「GLOW」
20. どこでも大画面! 短焦点4Kレーザープロジェクター「Edge Vision」は最大300インチ投射
21. 音のカギでロック解除する「JIIPKEY」がWiFiなしでも使えて頭いい!
22. Managed Identity と RBAC を使って Azure Storage をアクセスキー無しで扱ってみる
23. ASP.NET Core / Azure Functions で App Configuration と Key Vault を使って設定を一元化する
24. Running async tasks on app startup in ASP.NET Core 3.0 Exploring ASP.NET Core 3.0 - Part 4
25. SQL Database に対して Private Link で接続をしてみる
26. 筋トレ後の水風呂が筋肥大の効果を減少させる?【最新トピックス】 - リハビリmemo
27. VRの世界でよりリアリティが増す効果も?人が”しっとり感”を感じるメカニズムが解明される
28. また初心者にプログラミングを教える機会があった
29. Monitor Java memory management with runtime metrics, APM, and logs
30. Microsoft Event 2019.10.02
31. 「DtoC」の普及と「OtoO」の流れ。リテール業界における逆行するトレンドの背景を、株式会社スペースエンジンの野口氏に聞いてきた
32. 見通し100kmでも通信可能なIoT向けLPWA「ELTRES」、ソニーなどが商用サービス開始
33. 新機能 – Step Functions が動的並列処理をサポート
34. 【悲報】米オライリー、DRMフリー電子書籍の取扱いを中止してた
35. 性別が720種類で、脳がなくても学習!? 謎の生物「ブロブ」にまつわる、5つの疑問|WIRED.jp
36. Windows Sandbox
37. How Microsoft Edge's hidden WDAG browser lets you surf the web securely
38. Windows Sandbox: How to use Microsoft's simple virtual Windows PC to secure your digital life
39. Microsoft unveils Windows Sandbox: Run any app in a disposable virtual machine
40. Docker社、WSL2に最適化した次期「Docker Desktop」でKuberntesサポートなど、さらなる機能強化を表明
0 notes
Text
How to validate method parameters using PostSharp in C#
https://koliasa.com/how-to-validate-method-parameters-using-postsharp-in-c/ How to validate method parameters using PostSharp in C# - https://koliasa.com/how-to-validate-method-parameters-using-postsharp-in-c/ You might often want to validate parameters in your methods ...
0 notes
Text
IDG Contributor Network: How to measure the execution time using PostSharp
http://dlvr.it/NjdRrl http://goo.gl/f7t6ue
0 notes
Link
PostSharp Ultimate 5.0.44
PostSharp is the #1 pattern-aware extension to C# and VB. It allows developers to eradicate boilerplate by offloading repeating work from humans to machines. PostSharp contains ready-made implementations of the most common patterns and gives you the tools to build automation for your own patterns. Developers usually think in terms of design patterns, but with conventional programming languages, they end up writing boilerplate code. PostSharp extends the C# and VB languages with a notion of pattern. The result: shorter, cleaner code that’s easier to write and understand, contains fewer defects and is less expensive to maintain.
https://developer.team/22356-postsharp-ultimate-5044.html
0 notes
Link
Mehfuz shows off PostSharp and JustMock working together. If you need mocks in your tests for an aspect-oriented project, these two are the way to go.
50 notes
·
View notes
Photo

PostSharp Threading with 1 Year of Maintenance 商業單機下載版-The pragmatic way to write machine-verified, thread-safe code! #PostSharp #Threading-The pragmatic way to write machine-verified, thread-safe code. Address #multithreading at the right level of abstraction with #threading models, #deadlock #detection, and #declarative thread #dispatching. #VS2017 #AOP #Devs http://www.pcstore.com.tw/cheerchain/M32252537.htm
0 notes
Text
Pack .NET program to a single .exe file
Pack .NET program to a single .exe file
PostSharp has just released PostSharp.Community.Packer, a free and open-source tool that you can use to pack your .NET Framework application into a single .exe file for distribution. By the way, if you are looking for a documentation apps, there is another post.
The basic idea as well as much of the code itself come from Costura.Fody, an add-in to Fody, which has the same effect. We mostly…
View On WordPress
0 notes
Text
なるほどですね
(全 11 件)
1. ビジネスマナーとしての電話はアリかナシか ——「電話は時間を奪う」アンチ派が台頭
2. 超高速無線LAN 802.11adを比較���証、その実力が明らかに!
3. Apache Struts 2 の脆弱性 (S2-048) に関する注意喚起
4. Microsoftの新しい入力デバイス「Surface Dial」を自作Windowsアプリで使うには
5. 顧客管理の重要性について改めて思うこと - ボクココ
6. Accelerate websites with Azure CDN using Dynamic Site Acceleration
7. Linux and Windows networking performance enhancements | Accelerated Networking
8. Announcing PostSharp 5.0 RTM
9. モニターをPCに変えてしまうミニコンピューター内蔵型キーボード「PC-K2」が画期的
10. 深層学習を理解する鍵は複雑系…かもしれない : 情熱のミーム 清水亮
11. ハッカーの系譜(11)スタートアップ養成する「Yコンビネーター」 (13) システムで「世界を変える」Airbnb
0 notes
Text
ReturnOnException Aspect (postsharp)
public static class ExceptionHandler
{
[Serializable] public class ReturnOnException : OnExceptionAspect { public ReturnOnException(object objectToReturn) { _objectToReturn = objectToReturn; } object _objectToReturn; public override void OnException(MethodExecutionEventArgs eventArgs) { string message = eventArgs.Exception.Message; eventArgs.FlowBehavior = FlowBehavior.Return; eventArgs.ReturnValue = _objectToReturn; } }
}
Usage:
//returns -1 on any error
[ExceptionHandler.ReturnOnException(-1)]
public int DivideBy(int number, int dividedby) { return number / dividedby; }
29 notes
·
View notes
Link
PostSharp Ultimate 5.0.31
PostSharp is the #1 pattern-aware extension to C# and VB. It allows developers to eradicate boilerplate by offloading repeating work from humans to machines. PostSharp contains ready-made implementations of the most common patterns and gives you the tools to build automation for your own patterns. Developers usually think in terms of design patterns, but with conventional programming languages, they end up writing boilerplate code. PostSharp extends the C# and VB languages with a notion of pattern. The result: shorter, cleaner code that’s easier to write and understand, contains fewer defects and is less expensive to maintain.
https://developer.team/dot-net/20317-postsharp-ultimate-5031.html
0 notes