Reed Copsey, Jr. Thoughts on F#, C#, WPF, .NET, and programming for Scientific Visualization Home About Series Talks Contact Me Setting useLegacyV2RuntimeActivationPolicy At Runtime Posted by Reed on September 15, 2011 · 38 Comments Version 4.0 of the .NET Framework included a new CLR which is almost entirely backwards compatible with the 2.0 version of the CLR. However, by default, mixed-mode assemblies targeting .NET 3.5sp1 and earlier will fail to load in a .NET 4 application. Fixing this requires setting useLegacyV2RuntimeActivationPolicy in your app.Config for the application. While there are many good reasons for this decision, there are times when this is extremely frustrating, especially when writing a library. As such, there are (rare) times when it would be beneficial to set this in code, at runtime, as well as verify that itâ€™s running correctly prior to receiving a FileLoadException. Read more FILED UNDER .NET, C# · TAGGED WITH .NET, .NET 4, C# 4, INTEROP Performance and Optimization Isn’t Evil Posted by Reed on September 9, 2011 · 5 Comments Donald Knuth is a fairly amazing guy. I consider him one of the most influential contributors to computer science of all time. Unfortunately, most of the time I hear his name, I cringe. This is because itâ€™s typically somebody quoting a small portion of one of his famous statements on optimization: â€œpremature optimization is the root of all evil.â€ I mention that this is only a portion of the entire quote, and, as such, I feel that Knuth is being quoted out of context. Optimization is important. It is a critical part of every software development effort, and should never be ignored. A developer who ignores optimization is not a professional. Every developer should understand optimization â€“ know what to optimize, when to optimize it, and how to think about code in a way that is intelligent and productive from day one. Read more FILED UNDER ALGORITHMS, PERFORMANCE · TAGGED WITH OPTIMIZATION, PERFORMANCE Search for: Categories Categories Select Category .NET (73) C# (67) F# (4) MVVM (15) WPF (19) Algorithms (34) Async (7) Parallelism (22) C Tech (1) C++ (3) Community (3) F# Software Foundation (1) Gjallarhorn (1) Performance (2) Professional (4) Uncategorized (5) Meta Log in Entries feed Comments feed WordPress.org Tags .NET .NET 4 .NET 4.5 Algorithms Async C# C# 4 C# 5 Charity Community F# F# Software Foundation FSSF GiveCamp IDisposable Interop MEF MVP MVVM Optimization Parallelism Performance PLINQ Programming Windows Forms WPF WPF Gjallarhorn F# StackOverflow Reed Copsey 530,914 ●7272 gold badges●11031103 silver badges Archives December 2020 December 2019 December 2018 December 2017 December 2016 December 2015 December 2014 October 2013 November 2011 October 2011 September 2011 August 2011 April 2011 January 2011 December 2010 October 2010 July 2010 April 2010 March 2010 February 2010 January 2010 December 2009 November 2009 October 2009 September 2009 August 2009 July 2009 May 2009 April 2009 March 2009 Twitter Feed META Log in Entries feed Comments feed WordPress.org CAREER C Tech RECENT POSTS F# Basics – Result<'a>: or How I Learned to Stop Worrying and Love the Bind F# Basics – From loops to folds 2018 Christmas Trees – Cross Platform Edition using Avalonia CATEGORIES .NET Algorithms Async C Tech C# C++ Community F# F# Software Foundation Gjallarhorn MVVM Parallelism Performance Professional Uncategorized WPF © 2021 REED COPSEY, JR. · SHADES OF BLUE THEME BY STUDIOPRESS · WORDPRESS · LOG IN