visual-studio-2008

"LNK2022: metadata operation failed" driving me insane

I have a big solution with lots of projects, using VS2008 SP1, and at least once a day I encounter the LNK2022 error. If I do a full rebuild of the solution it builds fine, but this is not fun. It happens when a dependent DLL is changed 'insignificantly' (i.e. without changing any methods or classes), and the referencing project is late...

TFS customization - Team Foundation Server question

We have a process where when the developers change or add a database script and check it into the project. At the time of deployment the release manager needs to know what work items have database script checked in against it. Is there a way where we can query or create a custom report in TFS to get a list of work items that have a file ...

Opening C# 2008 in 2005

I have Visual C# 2008 on my home computer but 2005 on my computer at school. Is there a patch or something I can download to be able to run 2008 files on 2005? ...

Force a reference to be absolute using Visual Studio

When adding a reference to a web application project in VS (2008 in this case), the "hintpath" in the csproj file is being created as a relative reference. Is there a way (using the GUI, not manually editing the file) to make this an absolute reference (i.e. C:\Temp\DllName.dll)? The issue I am running into is when seperate build machi...

Using MSTest with MFC

Is there anybody using MSTest to test MFC code? I created a managed C++ Test project and and can write unit tests within it but once I #include <afxwin.h> then I have problems. The code will compile and when it gets to running the tests, the UI hangs and none of the symbols will load. You cannot debug the tests either. If I remove the ...

Why does VS 2008 sp1 install abort on Win7 RC?

What can you do if you get the following error when installing Visual Studio 2008 sp1 in Windows 7 RC? Operation Aborted ...

How to specify the location a Mvc view will be created for a Mvc controller?

Important Update Since the release of MVC 2.0 Preview 1 this feature has been implemented as the part of the actual framework itself in the form of Areas. More details available on Phil Haack's blog here I have a controller called ListManagerController. This controller contain an ActionResult method called Index(). When I right ci...

Sending code to the F# interactive console

Hello! It is possible to send highlighted code directly to the F# interactive console in Visual Studio 2008 by pressing Alt+Enter on the keyboard, which is indeed very useful. Is it possible to in a similar fashion send the contents of one, several or all files in a project to the F# interactive console at the same time? My intent is t...

Tools / Tips for refactoring Visual Studio projects

Hello All Similar to the way Resharper makes copying or moving a type to another file and adjust all of your using statements, I'd love to be able to refactor a VS project, and know all of my references, assembly names, and file locations will be properly adjusted. Does Resharper or any other tools make project level refactoring easy? ...

VS 2008 - Publish Web Site - Exclude App_Data

How do I prevent Visual Studio 2008 (standard edition) from publishing the App_Data folder? I can't have the contents of App_Data published because it ruthlessly overwrites the production data. ...

Visual Studio - New Filter instead of New Folder when using Create Project From Existing Source Wizard

I used the Create Project From Existing Code Wizard for Visual Studio 2008, but apparently projects created this way do not allow you to create virtual solution folders, and instead only allow you to create actual system folders. I would like to have the standard project setup of Header Files, Resource Files, and Sources Files, but I see...

fast add user/custom control from solution to designer

I need to add my user control from solution explorer to current design window of another control. There are 2 solutions that i don't like 1. There is AutoToolboxPopulate function in visual studio, but it doesn't work sometimes. 2. When 1 is not working, i have to make 'Choose items...' operation from toolbox context menu, manually choos...

How do you get a custom msbuild task to work properly?

I have a VS 2008 solution with 2 projects. Project A builds into an assembly that is used by Project B (MVC project). I have created a custom task in Project A, which I call when building Project B. I have come across 2 issues: If my AssemblyFile property points to Project A's bin directory, everything works well. But when I want t...

How to log stuff in console in Visual Studio C++

Hi everybody, I'm working on a little C++-Game in Visual Studio 2008. I want to see the content of a vector after a couple of seconds or after I pressed some buttons. Breakpoints are useless in this case, because they stop me at every call of the gameloop (~60 times per second). How do I debug in this case? Thanks! ...

Is anybody experiencing slowness when using Visual Studio 2008?

Is anybody experiencing extreme slowness when using Visual Studio 2008? I have a fairly beefy machine so I don't think hardware is the issue, and I didn't have these issues with 2005. Basically everything that I do is slow, from opening a new project, to opening code, to saving files. All of my Windows Updates are up, I have VS2008 SP...

How do I offer automatic updates for my program in Visual Basic 2008?

How do I set up automatic updates for my program in Visual Basic 2008? I would like the user to be able install the program from a setup.exe file then run the auto update function within the program. How do I do this in Visual Basic 2008? ...

Device emulator and FTP, inside a c# mobile application project

Hi guys, For my c# mobile application developed with visual studio 2008, i am trying to use the FTP. FTP works fine from the real device, but it does not work when i use the device emulator: the connection is successful, but it failed when attenpting to retrieve data. Both use windows mobile 5. Did some of you already had this problem ...

Visual Studio 2008 CSS Validation Level

I'm validating my CSS to level 2.1 in Visual Studio 08 Is there a way to change the level you validate to? I can't find one ...

using Visual Studio to copy files?

Hello everyone, I want to create a Visual Studio (I am using VSTS 2008) project which simply does file copy work, in more details, I will add some files to this project and this project copy files (included in this project) to some destination location when I build the project. Any ideas how to do this in VSTS? BTW: I heard using proj...

Is it possible to develop ASP.NET MVC with MS Visual C# 2008 Express Edition and IIS?

Is it possible to develop ASP.NET MVC with MS Visual C# 2008 Express Edition and IIS? The tutorial states that 'Visual Studio 2008 or Visual Web Developer 2008 Express' are required. ...