Cool .NET tools, techniques and libraries
Transcript of Cool .NET tools, techniques and libraries
Cool .NET Tools, Techniques and Libraries
aka. More .NET Stuff that Doesn’t Suck
Presented byGregory M. Sohl
PDF Merge (and split too)
GIOS PDF Split / Merge Open Source License: LGPL http://www.paologios.com/products/Default2.aspx?type=src
Easily Expose Unmanaged Interface
DLLExport Automated tool for exposing .NET static methods as an
unmanaged interface Uses Cecil to rewrite the IL after compile NuGet: https://www.nuget.org/packages/UnmanagedExports/ Project Info:
https://sites.google.com/site/robertgiesecke/Home/uploads/unmanagedexports
Using NuGet Safely
Open Source LicensesNuGet.org Trust issuesUse of feeds / repositoriesReview the Package Contents
Open Source Licenses
They’re not all created equalWhat’s your policy?
NuGet Trust Issues
No true author identificationNo package signingMany non-official packagesReference Phil Haack – http://bit.ly/haack-trust NuGet Goals - http://bit.ly/NuGet-Goals
Use of Feeds & Repositories
NuGet.orgMicrosoft Curated FeedSelf-Hosted RepositorySet up Visual Studio to use repositories in this order Self-Hosted Repo Microsoft Curated NuGet.org
Review the Package Contents
PowerShell Executes on install
Init.ps1 - runs the first time a package is installed in a solutionInstall.ps1 runs when a package is installed in a project
Executes on uninstallUninstall.ps1 runs every time a package is uninstalled
Source Code Embedded "other" 3rd party source - Check it's license too No Source? Review the DLL with disassembler
Compare .NET Objects
Kellerman Software - .NET Object Comparison Open Source License: Microsoft Public License (Ms-PL) Produced by Kellerman Software Provides type-independent deep comparison
Good control for special conditions https://comparenetobjects.codeplex.com/ We use it in serialization unit tests
View / Filter Large FilesTextAnalysisTool.NET Opens huge files Provides filtering by plain text and regex
Multiple filters, toggle on and off http://textanalysistool.github.io/ https://github.com/TextAnalysisTool Run It Other tools
Log Parser - https://technet.microsoft.com/en-us/scriptcenter/dd919274.aspxLog Fusion - http://www.logfusion.ca/
Questions
@gregsohl http://cwi-websoft.com