Friday, October 31, 2008
"Microsoft.CSharp.targets" was not found
After the conversion failure, Visual Studio became unresponsive, and the build for the solution failed. To resolve the problem, I attempted to unload and reload the solution.
When loading the message appeared: "C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.CSharp.targets" was not found."
A quick check found that the target build file for C# had been removed from the framework folder, without the build definition file for C#, projects cannot seem to reload (let alone build correctly).
To resolve the problem, I copied the file from another machine into the folder, and reloaded the solution.
Problem solved.
Resources:
MSBuild .Targets Files
TFS Build Problem - Custom Property not getting passed to recursive imports.
Thursday, August 28, 2008
PowerCommands for Visual Studio 2008
The product is available from code.mdsn.microsoft.com, and is available via the Microsoft Public License (Ms-PL)
My favorite command is Collapse Projects
The description from the PowerCommands home page describes it as: "This command collapses a project or projects in the Solution Explorer starting from the root selected node. Collapsing a project can increase the readability of the solution. This command can be executed from three different places: solution, solution folders and project nodes respectively."
However the commands "Close All" and the "Remove and Sort Usings" features are a close second and third.
At the time of this post, the current version was 1.1. You can get a complete list of functionality in the product from the ReadMe file here.
Here is the link to PowerCommands on http://code.msdn.microsoft.com/:
Power Commands on MSDNTuesday, August 26, 2008
Xml Comments and GhostDoc
If your already using Xml Comments, I would recommend taking a few minutes and trying out GhostDoc from Roland Weigelt.
According to the GhostDoc site, the product is described as GhostDoc is a free add-in for Visual Studio that automatically generates XML documentation comments for C#. Either by using existing documentation inheritedfrom base classes or implemented interfaces, or by deducing comments fromname and type of e.g. methods, properties or parameters.
GhostDoc allows for automation of the generation of the Xml comment syntax, and also attempts to complete the comment itself, allowing you to skip most of the redundant entry that drives so many developers away from proper documentation.
You can get more information on GhostDoc, or download the install for Visual Studio here:
http://www.roland-weigelt.de/ghostdoc/
I use it, it's a great tool, and it's free.
Friday, August 22, 2008
Code Snippet Manager in Visual Studio
You can use the hot key command to open the menu. By default the hotkey command is Ctrl+K, Ctrl+B to open the Code Snippet Manager.
Or you can add the command to the menu via the Tools/Customize, select the Commands Tab, then Tools Menu, and add the Code Snippets Manager.