Hi, .NET assemblies often have some dependencies. You can use .NET reflection tolist the dependencies: $ASM=[Reflection.Assembly]::LoadFile("C:\temp\webdriver\lib\netstandard2.0\WebDriver.dll") $ASM.GetReferencedAssemblies() Version Name ------- ---- 2.0.0.0 netstandard 8.0.0.0 System.Text.Json...
This post is for the C# developers out there and takes a look at the interesting conjunction of [CallerArgumentExpression] and static extension methods – a mix that at first seems too convenient to pass up. A quick recap: [CallerArgumentExpression] landed as part of the C# 10.0 language update and...
The Behavior of C# Nested Static Classes# 26 July 2018 C#, .NET, Experimental, Documentation While working on a code review, I found a nested static class that I needed to verify the validity of. I had three questions: Does the CLR create new instances when the containing class is instantiated?...
Reading an HTTP Request Response Body from Exceptions# 16 April 2015 C#, .NET, HTTP, Debugging Every so often I need to read the response body of a failed HTTP request while debugging a .NET application in Visual Studio. It’s not immediately obvious how you can do this, so here’s a quick way to...
Speech Synthesis on Windows Phone 8.1# 7 December 2014 C#, .NET, Windows-Phone, Speech I recently wrote an application to make my phone report current Los Angeles traffic conditions. I used the Windows.Media.SpeechSynthesis namespace to read in either a plain-text string, or an SSML-formatted...
Running Entity Framework Migrations on Application Start# 28 November 2014 C#, Entity Framework, ASP.NET, .NET Entity Framework is an ORM developed by Microsoft. It has a useful set of tools and conventions for automatically managing database schema changes called Code First Migrations. My only...