Trevor Sullivan's Tech Room

Minding the gap between administration and development

Posts Tagged ‘microsoft .net’

PowerShell: List Strongly Typed Names in Global Assembly Cache

Posted by Trevor Sullivan on 2011/12/30


I dislike using deprecated commands or APIs when I know that there’s a more modern method of performing an action. I also generally prefer to use Windows PowerShell as a .NET scripting language, rather than constantly relying on cmdlets. To be sure, I use a balance of both concepts, since cmdlets can save a whole lot of coding a lot of the time.

Every time I want to load an assembly into PowerShell, the first thing that pops into my mind is:

[Reflection.Assembly]::LoadWithPartialName();

Unfortunately Microsoft recommends against using that static method, and recommends use of other methods like:

[Reflection.Assembly]::Load(StronglyTypedAssemblyName);

In the interest of not breaking my conscience, I would like to use this method, but the problem then becomes that I have to constantly figure out what the strongly-typed name of the assembly I want is. To help solve this problem, I decided to write a PowerShell script that extracts information from the .NET assemblies in the Global Assembly Cache (GAC), since those are generally the most common ones I’ll need to reference.

Read the rest of this entry »

Advertisements

Posted in .NET, powershell, scripting, tools | Tagged: , , , , , , , | 6 Comments »

Links to Interesting Stuff

Posted by Trevor Sullivan on 2011/07/23


Updated on 2011-08-03

Here are some links to interesting blogs, software, and other random tidbits!

Read the rest of this entry »

Posted in Uncategorized | Tagged: , , , , , | Leave a Comment »

Links to Interesting Stuff

Posted by Trevor Sullivan on 2010/11/01


Updated on 2010-11-01

http://powerscripting.wordpress.com – A weekly Podcast with topics revolving around Microsoft PowerShell

http://blogs.technet.com/b/heyscriptingguy/ – The official Microsoft Scripting Guys blog

Software

BitKinex – FTP, SFTP, WebDAV client for Windows XP/Vista/7

NuPack – NuPack is a free, open source developer focused package management system for the .NET platform intent on simplifying the process of incorporating third party libraries into a .NET application during development.

PowerGUI VSX – Visual Studio Extensions for PowerShell

PHP Manager for IIS – PHP Manager for IIS is a tool for managing one or many PHP installations on IIS 7 and IIS 7.5 servers.

http://www.growlforwindows.com – A free system monitor I happened across

http://www.alastria.com/index.php?p=software-7s – A cool Windows 7 taskbar enhancement. Allows you to create stacks of programs to launch from the taskbar.

http://www.powerwf.com – A PowerShell-based Workflow tool

http://polymonrt.codeplex.com – A somewhat outdated, but cool and free PowerShell monitoring utility

http://pscx.codeplex.com – PowerShell Community Extensions. Adds a number of useful cmdlets to PowerShell.

http://code.msdn.microsoft.com/PowerShellPack – Available as part of the Windows 7 Resource Kit, the PowerShell Pack contains 10 modules to help you do more with PowerShell

http://www.powergui.org – A free PowerShell integrated development environment (IDE) from Quest Software

Free .NET Libraries

oauth-dot-net – A .NET library which provides full OAuth consumer and provider support.

Twitterizer – A .NET library for Twitter folk. Implements OAuth. Requires .NET 3.5+

DNS Client .NET – Perform simple as well as advanced DNS lookups from .NET code against any DNS server.

Punycode / IDN .NET – Punycode (and de-code) domain names containing international (non-english) characters in .NET code.

Packet.Net – High performance .Net assembly for dissecting and constructing network packets such as ethernet, ip, tcp, udp etc.

SharpPcap – SharpPcap is a cross-platform packet capture framework for the .NET environment, based on the famous pcap / WinPcap libraries

Pcap.Net – Pcap.Net is a .NET wrapper for WinPcap written in C++/CLI and C#.

DotNetOpenAuth – DotNetOpenAuth is a C# library that adds OpenID 2.0 Provider and Relying Party, OAuth Consumer and Service Provider, and InfoCard Selector support to your web site

OpenTK – The Open Toolkit is an advanced, low-level C# library that wraps OpenGL, OpenCL and OpenAL.

Visifire – A free, animated charting library for Microsoft .NET

Dundas Charts – A very powerful .NET charting solution

dot-net-transitions – A library for animated UI transitions for .NET

HTML Agility Pack – A .NET code library that allows you to parse "out of the web" HTML files.

Blogs

http://blogs.msdn.com/powershell – The official Windows PowerShell blog

http://blogs.msdn.com/wmi – The Windows Management Infrastructure blog

http://poshoholic.com/ – Excellent PowerShell blog (Kirk Munro)

http://halr9000.com/ – Hal Rottenberg’s blog (MVP)

http://richardsiddaway.spaces.live.com – Richard Siddaway’s blog (MVP)

http://get-powershell.com – A PowerShell blog by Andy Schneider

http://keithhill.spaces.live.com – Keith Hill’s blog (MVP)

http://www.verboon.info – Alex Verboon’s blog – Interesting posts about IT

http://blogs.microsoft.co.il/blogs/ScriptFanatic – Shay Levy’s blog (PowerShell MVP)

http://karlprosser.com/coder/ – Karl Prosser’s PowerShell blog (MVP)

http://unlockpowershell.wordpress.com/ – Karl Mitschke’s PowerShell blog

http://dennisdel.com/ – Dennis Delimarsky’s developer blog

http://slipsec.com – Anonymous PowerShell blog

http://www.withinwindows.com/ – Cool coding blog (Rafael Rivera)

Posted in scripting, tools | Tagged: , , , , , | Leave a Comment »