visual-studio

"Could not load" error whenever I click a work item.

I have recently installed Team Explorer on one of my machines that has Visual Studio 2008 SP1 installed. But know whenever I click a work item or trying to open a team query I get the following error: Could not load type 'Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemTypeDeniedOrNotExistException' from assembly 'Microsoft.Tea...

How do I determine which service pack Visual Studio is running?

How do I determine which service pack (if any) Visual Studio is running? Right now I'm trying to determine if a machine is running VS2008 or VS2008 SP1. ...

Visual Studio 2008 SP1 Redistributable

Does anyone know where to download the Visual Studio 2008 SP1 Redistributable? I sure would like to have it so I don't have to download the service pack for every install. ...

Problem with dynamic loading of a dll into my program.

I'm trying to add plugins to my program, and this looks good, except that I can't cast the correct type from the dll. I Have a solution with several projects on it. One of the project is a country Layer, that actually holds a CountryBase (defined as public abstract class CountryBase : CountryLayers.ICountryBase ) The Interface (public i...

How does intellisense work in Visual Studio?

I hope this is a valid question: how does intellisense work in VS2008? I'm after what is known about the algorithm it uses to find the suggestions, when exactly it pops up (the "." is just one obvious trigger), how its behavior can be modified if at all possible, etc. To put this question into context: The main issue I'm trying to reso...

Visual Studio and LINQ: placing the DBML file in separate directory in the project

My strategy was to keep the project's layout clean. Given that this is a datalayer project, and I'll have a class file for each concerned entity, I thought I would put the .dbml into its own directory. It turns out that locating your .dbml file within a subdirectory turns it into a lower level namespace of sorts. This is a C# class libr...

.Net Build Automation

Hi Everyone, I'm looking for some resources on build automation with VS2005 (VS2008 soon). I'd like to do things like delete all my files in my output folder, move all my build output to one folder, etc. I think this stuff is pretty basic but I don't know where to get started. Thanks! ...

What is the best source control product for Visual Studio development?

I work in a Visual Studio/.NET shop which is still using VSS 2005 for source control. We are looking to upgrade to VS Team Foundation Server and use it's source control system, but I'm curious if that's really the best option. The creators of StackOverflow use Subversion but comment that it's a pain to merge code forks back into the main...

Visual Studio 2008 freezing when editing aspx/master pages

Visual Studio freezes up continually when I'm editing master pages or aspx files. Here's what I've tried that have not helped: restarting VS only working with few files open at a time Disabled all addins (resharper etc.) deleted .suo and .user files changed default editor from Web Form Editor and Master Page Editor to HTML Editor inst...

"Go To Definition" in Visual Studio only brings up the Metadata

I am working in a Web Project in Visual Studio 2008. When I hit F12 (or right-click and select Go To Definition) Visual Studio is consistently going to the Meta data file instead of going to the source. Some Points: All the source code is C#, there is no VB.Net All the projects are in the same solution Yes, everything is a project re...

debugging Intel's TBB containers

Recently we have started working with Intel's TBB and found that when debugging containers we cannot really watch the elements and their data. Is there a flag setting, a plugin or a tricky way to enable this? (maybe a script snipit for Visual to work with) ...

VirtualPath setting on Visual Studio 2005

I changed the virtualpath setting on the website properties from '/sitename' to '/'. Index.aspx page on the root folder correctly points to http://localhost:4144/sitename/Index.aspx. But, hyperlink for the image button on every page in the subfolder points to http://localhost:4144/Subfolder/Page1.aspx instead of http://localhost:4144/si...

Visual Studio jQuery IntelliSense fix KB958502 does not recognize visual studio 2008 install on windows server 2008 x64.

So just this week I had the opportunity to re-build my development machine and I opted to use Windows Server 2008 x64 version for my operating system. I re-installed Visual Studio 2008 along with all of my other development tools. I surprised to see that the KB958502 hot fix did not recognize my installation of Visual Studio 2008. I wond...

Setting the TabIndex property of many form controls in Visual Studio?

What is the most efficient way to set/re-order the TabIndex properties of many form controls in Visual Studio? When I change the layout on a large form, or even on initial design, I often wonder if there's a faster way than clicking each individual control then setting the TabIndex in the properties window. ...

Is there a shortcut in VS for "next statement in current thread" ?

When debugging multi threaded .NET apps in VS (2008) I frequently want to step through code. When I press F10 quite often I find VS jumping to a statement in another thread. Its really confusing and always throws me off. I can work around it by chucking in a million breakpoints. Is there a cleaner way of asking VS debugger to go to t...

CListControl selection (MFC)

Hi, In report view in a CListCtrl in MFC, how do I detect if there is no current highlighted selection? Using GetFirstSelectedItemPosition doesn't work because if an item was previously selected and then clicked somewhere else on the list control, GetFirstSelectedItemPosition still reports the last position selected instead of NULL, h...

how to change source file encoding in csharp project (visual studio / msbuild machine)?

Hello, I'm working on a winapp csproject using Visual Studio 2008 on Vista (polish locale) The problem appears when I build project on Win Server 2003 (english locale) - then polish diacritic is gone. I investigated that the issue is caused by improper source file encoding. It looks that source files aren't in UTF-8. Is there a way to...

Windows Explorer - Dynamic Icons For Same File Extensions

For Visual Studio .sln files, Window Explorer is doing something "clever" to figure out whether to display the v8 or v9 icons. Now when it comes to double-clicking/launching the icon, I know that it goes through a "Visual Studio Launcher" app which looks at the version info in the sln file and selectively runs VS2005 or VS2008 But any...

Using Visual Studio 2005 for buliding LynxOS applications

Hi, I am trying to build application for LynxOS (Hard Real time OS). The best method so far is to use an add on called VisualLynx which attach itself to VS 6.0 and replaces its make system with its on cross compiler linker etc. VS 6.0 is a real pain to use, so I wanted to use VS 2005 but it seems there is no add on for VS 2005. Is there ...

Macros/Environment variable in .sln and .vcproj files for Visual studio

Hello I have two similar problems: a) I have a solution which includes several projects and I want to be able easily switch project location by setting some environment variable/macro. As example this project can be located in \SolutionDir\Dir1\ or \SolutionDir\Dir2\ So, I want to specify that it should be located in \SolutionDir\$(Var...