My Technical Notes

Friday, 17 June 2016

PowerShell: Add-Type for System.Xml.Linq DLL/namespace


Add-Type -AssemblyName 'System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

To generate the `AssemblyName`, we can use C#:


var asm = typeof(System.Xml.Linq.XDocument).Assembly;
var name = asm.FullName;

No comments: