Scope: This seems to happen only on .NET framework 4.8 projects (YMMV) Problem: A combination of assembly loading results in different grant sets Workaround: Create a new DWORD registry value called LoaderOptimization as below: [ see also 1 ] [ see also 2 ]
Category: Programming
TF30063 Error – You Are Not Authorized To Access Team Foundation Service Error
Working with multiple TFS servers is prone to problems with cached credentials when switching accounts, especially on laptop systems that suspend/resume across domain authentication. Clear the TFS cache by deleting all files to remove cached credentials, and force re-authentication.
Add Class not available in template list
Problem: The option to add a class to visual studio is present in the menu, but the add class template is missing from the list. Cause: This is caused by an incompatibility between Visual Studio 2019 version 16.6.X and Dev Express control suite version 20.1.3 Resolution: Upgrade Dev express control suites to version 20.1.4, or […]
Re-activating the create unit test function in Visual Studio 2012
Visual studio 2010 had a quick rightclick context menu to create unit test which has disappeared in VS2012, to move to a more general approach that isnt directly tied in with the MS unit testing system. It is possible however to re-enable the menu function or use a keyboard shortcut. full writeup source: http://serena-yeoh.blogspot.nl/2013/02/visual-studio-2012-create-unit-test.htmlhttp://blogs.msdn.com/b/malaysia/archive/2013/02/20/right-click-create-unit-tests.aspx Your […]
NUGET not available as a package source after VS update
After installing or updating to Visual Studio 2015, you may only have “Microsoft and .NET” as package source in the nuget package manager. To re-add the nu-get repository go to Tools/Options/NuGet Package/Manager and re-add the following under “Package Sources”: Name: nuget.org Source: https://api.nuget.org/v3/index.json
Code smells
Within classes Comments Putting comments inside your code risks obscuring the code, instead of making things more clear. Comment the class and the methods you expose. Keep comments out of the code itself. Only place the WHY in comments, never the WHAT. Long methods A shorter method is better readable, easier to understand en easier […]