Visual Studio/TFS

Resharper setting to show method usage expanded.

During code analysis my favorite key is Shift-F12 to show usage of method/variable. And after this I needed to expand the list to show each line of usage. Recently my collegue showed me that the results may be expended by default, which is very convenient. To set it select Resharper menu->Options->Search & Navigation->Expand search Results Tree by Default. I wourd suggest to Resharper to enable this setting by default...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Message during Edit and Continue doesn't give an option to edit.

During my Edit and Continue session I received a message --------------------------- Microsoft Visual Studio --------------------------- Modifying a catch handler around an active statement will prevent the debug session from continuing while Edit and Continue is enabled. --------------------------- OK --------------------------- I would expect that Visual Studio give me option to edit, but stop Edit and Continue or Cancel, but it only disallow edit . I've posted the suggestion to MS Connect Related...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Generated tests assign enums to enum constructor

When Visual Studio generates tests, for initial value for enums it uses enum constructor. MyClass.TracingMode tracingMode = new MyClass.TracingMode(); // TODO: Initialize to an appropriate value It looks strange. Is it worth to suggest in MS Connect to change the default...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Visual Studio:"The following breakpoint cannot be set" message

In Visual Studio I’ve started the application with debugging(F5) and then tried to click url in one of the source code comments. After opening URL within VS I suddently start to receive dosens of messages like the following for each breakpoint that I have: --------------------------- Microsoft Visual Studio --------------------------- The following breakpoint cannot be set: At MyClass.cs, line 836 character 6 ('Namespace.MyClass.MyFunct... line 17) Unknown error. --------------------------- OK...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

TFS: how to find checked out files in different workspace

My machine crashed and I wanted to find which files were checked out by me on that machine. It wasn't obvious, but finally I found, that I can search for user. You need to have installed Team Foundation Server Power Tools In Visual Studio- select menu File-Source Control Explorer - Find in Source Control- specify username and it will show all workspaces...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

VS 2010 snippet manager and quickCode

During the last few years I've used QuickCode and it was very helpful. Visual Studio 2010 has Code Snippets Manager that MS finally made quite convenient to use, so I will use it in a future. I will need to convert my QuickCode commands to VS snippets. I am sure I will miss Alt-Q hotkey for some time. Code snippets links: MSDN:Creating Code Snippets TIP:Create New Code Snippets from Existing Ones CodePlex Snippet Editor Codeplex Snippet Designer...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

TFS work items tips

We started using TFS to track requests using Work items. 1. Telerik's TFS Work Item Manager (beta version for TFS 2010 is available) that could be interesting to use instead of standard VS2010, especially for someone who doesn’t want to have VS installed on their machine.(thanks to dimarzionist who pointed to the tool).See also TFS Project Dashboard 2.Visual Studio TFS work item attachments Tab I've found that Outlook emails can be dropped to TFS work item attachments. Just open TFS work item attachment...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Comment in JavaScript code doesn't comment the server command

Comment in JS code doesn't comment the server command. It is correct, but can be visually confusing. I had the following line in markup ASCX file. // var trs = document.getElementById('&l... %>').getElementsByTagNam... Visual Studio showed it as green comment. However when server control pnlOutsideSearch was renamed, the errors were generated, and it took me some time to realize, what wrong with the line, tha it was look like just comment...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

"The project type is not supported by this installation" for Workflow project

Download from ActivityExecutionContext in Workflows caused "The project type is not supported by this installation" when opened the solution. On my machine I have Workflow only for VS 2008, but not for VS 2005, but the download solution was in 2005 format. I've explicitely started VS 2008 and then converted solution from 2005 to 2008. Error disappeared. Similar problem with Moral: If you are trying to develop with .NET 3.0 maybe it’s a good idea to check that .NET 3.0 is installed first... described...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Understand Project dependency Hierarchy in VS solution

I have a huge VS solution(with more than 60 projects) and for some projects order of references is not obvious. If you do not understand the hierarchy,you will get circular dependency":Adding this project as a reference would cause a circular dependency." Unfortunately, Visual Studio doesn't create diagram to show projects hierarchy. Open Source Project dependency graph generator didn't help me, because it created only 2 levels of hierarchy for my huge solution. Also for project with . in the name(e.g....
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Attempt to get Visio Class Diagrams from VS XSD files.

I wanted to have a diagram from .Net Dataset (stored as XSD) and include elements from XSD generated from WCF service. I found that is not supported by MS tools. Dataset Designer doesn't have any export facility.XSD files generated from WCF service, do not have any graphical interface at all. I ended up with manually drawing in Visio objects used by WCF service and merge PrintScreens from VS Dataset Designer and Visio Class Diagram in Paint.Not a nice solution. I've posted a suggestion "Ability to...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

TFS Source Control Explorer -no commands shown

We needed to setup TFS for a new user and he had a problem: When open TFS Source Control Explorer , he can see folders, but was unable to run any commands , e.g Get Latest. Trying to find a reason, we gave the new user different security permissions, but it didn't help. Finally I suggested to check in VS Tools/Options/Source Control/Current Source Control Plug-in. and ensure that VS TFS is specified. It fixed the problem...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Issues converting Visual Studio 2005 Projects to Visual Studio 2008.

Previously I wrote about Problems after Installing VS 2008 side-by-side with VS 2005 and that Visual studio conversion wizard opens each time for converted 2008 solution. There were a few Web Application Projects that failed to convert without any reason. The Upgrade file was just like this: <?xml-stylesheet type='text/xsl' href='_UpgradeReport_Files/... <UpgradeLog> <Event ErrorLevel="3" Project="TSA.Testing.Assemb... Source="main\TSA\Testing\TS...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Use WCF Message Logging

The post based on How to enable WCF tracing article Open WCF Service Configuration Editor under VS 2008 Tools menu or directly from installation folder (typically C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin\SvcCo... - subfolder v6.0 can be different depending on which version of Windows SDK has been installed) To enable WCF message logging Click the Diagnostics node, and expand it. Enable Message Logging on the right Tab To edit Message Logging settings, click the Message Logging...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

My experience with upgrading TFS 2005 to TFS 2008

I can describe my feeling of mgration from TFS 2005 to TFS 2008 in one word-NIGHTMARE. Summary of recommendations. 1.Create combined TFS 2008+SP1 setup as described in http://www.woodwardweb.com/... and in the latest Team Foundation Installation Guide 2. Read Team Foundation Installation Guide ,Upgrade TFS 2005 to 2008 , Tips for upgrading from TFS2005 to TFS2008 3. If you are using fully-qualified domain names (FQDN, e.g., tfsserver.mycompany.com) , replace the FQDN with NetBios...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Select "Both Relation and Foreign Key Constraint" when creating relationship in VS Dataset designer.

MS VS Dataset Designer allows to create a relationship (a DataRelation object) that maintains information about parent-child records in two data tables in a dataset using Relation Dialog Box. It has option to specify type of relationship: Both Relation and Foreign Key Constraint Creates both a relation and foreign key constraint (see below for descriptions). Foreign Key Constraint Only A ForeignKeyConstraint restricts the action performed when a value in a column (or columns) is either deleted or...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Shortkey Alt-B,U is ambiguous in Visual Studio 2008 team edition

In Visual Studio I like to use shortkey Alt-B,U to start build of the current project. However in VS 2008 team edition it doesn't start the build, but just opens menu and waits for extra "Enter" click. The reason is that on the Build menu,there is extra "Queue new build" menu item with the same u shortcut, which conflicts with "Build Project" menu item. The issue reported to MS Connect and they told, that it is fixed in a future release. Is it possible to change alt shortkeys for standard menu items?...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

QuickCode.Net 2008 new TAB shortcut key

QuickCode.Net has a new free 2008 version. UPDATE: in a new release 3.0.6. it's possible to assign any shortcut key. In VS 2008 Customise keyboard I've selected command QuickCode2008.AddIn.Replace... and assigned a shortcut key Alt-Q. It uses <TAB> instead of previously assigned Alt-Q hotkey. <TAB> is consistent with standard VS snippets. If you press the TAB key after your QuickCode, e.g. tc<TAB> the QuickCode will expand. If the same pattern exists in snippets and QuickCode,...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Visual studio 2008 "Build action" properties: Shadow and CodeAnalysisDictionary

I've noticed that in Visual Studio 2008 files have additional "Build action" properties: Shadow and CodeAnalysisDictionary. I've tried to find their meaning on Google but without success. Does anyone know,what they suppose to do...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Visual studio conversion wizard opens each time for converted 2008 solution

I have a big solution in VS 2005 that I converted to VS 2008. However each time when I closing and then re-opening solution, the Conversion Wizard opens again, runs for some time and shows that conversion completed successfully. UPDATE: I finally found the reason of re-running of Conversion Wizard. My solution had some UNLOADED projects, that were in VS 2005 format and failed to be converted. I expected that unloaded projetcs will be ignored , but Conversion Wizard each time tried to convert them....
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Full Visual Studio/TFS Archive

«February»
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910