Archive for the ‘Visual Studio 2013’ Category
Posted by jpluimers on 2016/02/25
Not sure yet why, but every now and then I get a failure like this in Visual Studio (at least in 2013 and up):
2>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(4548,5): error MSB3073: The command "copy /Y "C:\SomePath\SomeProjectName\bin\Debug\SomeProjectName.dll" "C:\SomePath\Shared Assemblies\"" exited with code 1.
2>Done executing task "Exec" -- FAILED.
Most of the times it is me at fault: some process still is using it.
But sometimes, it is devenv.exe (Visual Studio itself) that keeps it locked, even though nothing is running (in fact it can happen right after you loaded the project in Visual Studio 2013).
I found this out by using “Process Explorer Search” (Ctrl+F or Find Handle or DLL).
Not sure why yet.
–jeroen
Posted in .NET, C#, C# 4.0, Development, Software Development, Visual Studio 2013, Visual Studio and tools | Leave a Comment »
Posted by jpluimers on 2016/02/10
Thanks User Josh Close – Stack Overflow. for answering the below on Stack Overflow: it got my Resharper Alt-Enter key workign again.
Re-apply Visual Studio keyboard scheme:
- (VS2013 latest ReSharper)
- ReSharper > Options > Environment > Keyboard & Menus > ReSharper Platform keyboard scheme: Visual Studio > Apply Scheme > Save.
- This will reset the shortcut keys for ReSharper.
- (older versions)
- ReSharper > Options > Environment > General > Visual Studio Integration > Apply
–jeroen
via: visual studio – Resharper Alt Enter not working – Stack Overflow.
Posted in .NET, C#, Development, Keyboards and Keyboard Shortcuts, Power User, Software Development, Visual Studio 2013, Visual Studio and tools | Leave a Comment »
Posted by jpluimers on 2016/01/27
Duh: same for VS2013
It is still available, you just need to add it back to the View menu. Tools + Customize, Commands tab, Menu bar = View. Select the menu item in Controls where you want to insert it, say the bottom one. Then Add Command, Category = View, Commands = Tab Order.
Source: winforms – Where is the Tab Order Assignment dialog in Visual Studio 2012? – Stack Overflow
–jeroen
Posted in .NET, .NET 4.0, .NET 4.5, C#, C# 3.0, C# 4.0, C# 5.0, Development, Software Development, Visual Studio 2012, Visual Studio 2013, Visual Studio 2014, Visual Studio 2015, Visual Studio and tools | Leave a Comment »
Posted by jpluimers on 2016/01/18
Still a great book. I love the chapter Threading in C# – Free E-book which you also can get as a PDF download.
It’s a chapter from C# 56/5/… in a Nutshell by Joseph Albahari. Great book!
Don’t forget to read these as well: Jon Skeet: Multi-threading in .NET: Introduction and suggestions (printable) Multi-threading in .NET: Introduction and suggestions (browseable)
--jeroen
Posted in .NET, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, C#, C# 2.0, C# 3.0, C# 4.0, C# 5.0, C# 6 (Roslyn), Development, Jon Skeet, Software Development, Visual Studio 2008, Visual Studio 2010, Visual Studio 2012, Visual Studio 2013, Visual Studio 2014, Visual Studio 2015, Visual Studio and tools | Leave a Comment »
Posted by jpluimers on 2015/10/21
It’s not reproducible yet, so I need to find out why under some rare circumstances, devenv.exe (the Visual Studio IDE) generated build.force files. Sometimes the build then fails, most of the times it succeeds.
Hopefully this has to to with non-project references.
Research links:
–jeroen
Posted in .NET, Development, Software Development, Visual Studio 2013, Visual Studio and tools | Leave a Comment »
Posted by jpluimers on 2015/09/30
ReSharper has a whole set of nice keyboard shortcuts, which includes Ctrl + Shift + , for View Recent Edits.
This overwrites the Zoom Out half of the default Visual Studio zoom keyboard shortcuts (thanks Carlos Muñoz):
Ctrl + Shift + . to zoom in and Ctrl + Shift + , to zoom out.
They don’t keep an alternative for Zoom Out, and unlike most tools I know that allow for zooming, there is no keyboard accessible menu entry for Zoom Out in Visual Studio.
So you have to use your mouse to go in the lower left of your editor window in order to Zoom Out (thanks ashteele for putting that in an SO question):

Or you can reconfigure the old shortcut (thanks Aaron Ransley):
through Tools -> Options -> Environment -> Keyboard and map “View.ZoomIn” and “View.ZoomOut“
–jeroen
Posted in .NET, Development, Software Development, Visual Studio 11, Visual Studio 2010, Visual Studio 2013, Visual Studio 2014, Visual Studio and tools | Leave a Comment »
Posted by jpluimers on 2015/09/23
Visual Studio 2013 syntax highlighting: watch the closing curly brace.
Console.WriteLine(“URL IS : http://localhost/:{0}”, portnumber);
–jeroen

Posted in .NET, C#, C# 2.0, C# 3.0, C# 4.0, C# 5.0, Development, Software Development, Visual Studio 2013, Visual Studio and tools | Leave a Comment »
Posted by jpluimers on 2015/07/28
Shelving work into a shelveset is easy in Visual Studio. Until Visual Studio 2010 it was easy to find the shelveset.
As of Visual Studio 2012 this is much more difficult. To get the shelveset back in Visual Studio 2012 and up:
- Go to the “Team Explorer” pane
- Click the “Home” icon
- Choose “Pending Changes”
- Click the topmost “Actions” item
- In the pop-up menu, click “Find Shelvesets”
- Type a search phrase
–jeroen
via: Can anybody find the TFS “Unshelve” option in Visual Studio 2012? – Stack Overflow.
Posted in .NET, Development, Software Development, Visual Studio 11, Visual Studio 2010, Visual Studio 2013, Visual Studio 2014, Visual Studio and tools | Leave a Comment »
Posted by jpluimers on 2015/06/02
Interesting:
Shared Projects
Shared Projects are a new feature of Visual Studio 2013 Update 2. It was initially created to support universal apps apps for both Windows Phone RT and Windows RT, and that’s what most people know about it.
However there is also this genius Visual Studio extension that allows Shared Projects on any .NET project. It means that you can create a project shproj that contains a list of C# files. This file can be referenced by any project and will be included at compile time.
With Shared Projects you are always able to debug through any references code. This makes it very easy to find and fix issues or test new features.
Note that in Visual Studio 2015, this is an official feature: Shared Project : An Impressive Feature of Visual Studio 2015 Preview.
Thanks Matthijs ter Woord for noticing that.
–jeroen
via: The unknown beauty of shared projects in .NETGeert van Horrik.
Posted in .NET, .NET 4.0, .NET 4.5, C#, C# 4.0, C# 5.0, Development, Software Development, Visual Studio 2013, Visual Studio and tools | Leave a Comment »