Roslyn Cookbook

Manish Vasani

  • 出版商: Packt Publishing
  • 出版日期: 2017-07-27
  • 售價: $1,460
  • 貴賓價: 9.5$1,387
  • 語言: 英文
  • 頁數: 350
  • 裝訂: Paperback
  • ISBN: 1787286835
  • ISBN-13: 9781787286832
  • 相關分類: .NETC#Visual Studio
  • 立即出貨 (庫存=1)

買這商品的人也買了...

商品描述

Use Roslyn as a service to write powerful extensions and tools and use them in Visual Studio to improve code quality and maintain your source code more ffectively.

About This Book

  • Use Roslyn extensions and tools in Visual Studio to enforce "house rules" on code and fix security and performance vulnerabilities in your code.
  • Write Roslyn extensions using the Roslyn service API to help developers enforce conventions and design idioms.
  • Improve developer productivity by using Roslyn-based agile development features in Visual Studio, such as live unit testing, C# interactive and scripting.
  • Contribute to the C# language and compiler tool chain to analyze and edit code.

Who This Book Is For

.NET Developers and architects, who are interested in taking full advantage of the Roslyn based extensions and tools to improve the development processes, will find this book useful. Roslyn contributors, i.e. the producers and C# community developers, will also find this book useful

What You Will Learn

  • Write extensions to analyze source code and report warnings and errors.
  • Edit C# source code to fix compiler/analyzer diagnostics or refactor source code.
  • Improve code maintenance and readability by using analyzers and code fixes.
  • Catch security and performance issues by using PUMA scan analyzers and FxCop analyzers.
  • Perform Live Unit tests in Visual Studio.
  • Use C# interactive and scripting in Visual Studio.
  • Design a new C# language feature and implement various compiler phases for a new language feature.
  • Write command line tools to analyze and edit C# code.

商品描述(中文翻譯)

使用 Roslyn 作為服務,撰寫強大的擴充和工具,並在 Visual Studio 中使用它們,以提高程式碼品質,更有效地維護原始碼。

關於本書

- 在 Visual Studio 中使用 Roslyn 擴充和工具,強制執行程式碼的「內部規則」,並修復程式碼中的安全性和效能漏洞。
- 使用 Roslyn 服務 API 撰寫 Roslyn 擴充,以幫助開發人員執行慣例和設計範例。
- 通過使用基於 Roslyn 的敏捷開發功能,如即時單元測試、C# 互動和腳本編寫,提高開發人員的生產力。
- 貢獻於 C# 語言和編譯器工具鏈,以分析和編輯程式碼。

本書適合對 Roslyn 擴充和工具有興趣,以改善開發流程的 .NET 開發人員和架構師。同時,Roslyn 的貢獻者,即製造商和 C# 社區開發人員,也會發現本書有用。

你將學到什麼

- 撰寫擴充來分析原始碼並報告警告和錯誤。
- 編輯 C# 原始碼以修復編譯器/分析器診斷或重構原始碼。
- 通過使用分析器和程式碼修復工具,改善程式碼的維護性和可讀性。
- 使用 PUMA 掃描分析器和 FxCop 分析器來檢測安全性和效能問題。
- 在 Visual Studio 中執行即時單元測試。
- 在 Visual Studio 中使用 C# 互動和腳本編寫。
- 設計一個新的 C# 語言功能,並為新的語言功能實現各種編譯器階段。
- 撰寫命令行工具來分析和編輯 C# 程式碼。