visual-studio

MS Test error when running all tests

I am currently working on a project that is using MS Test for unit testing. When I do a "Run All Tests" I get the following error for about 1/3 of the tests: Test method [Test Method] threw exception System.IO.FileLoadException, but exception System.InvalidOperationException was expected. Exception message: System.IO.FileLoadException...

Where is Visual Studio autocomplete for JQuery 1.4?

I can't find the Visual Studio autocomplete file for JQuery 1.4. Googling for jquery-1.4-vsdoc or jquery-1.4.min-vsdoc turns up nothing. ...

How do I edit the Visual Studio templates for new C# class/interface?

I find myself removing the following import statements in nearly every C# file I create Visual Studio: using System.Collections.Generic; using System.Linq; using System.Text; Of course its really easy to do this with Resharper, but I really should not have to. There must be a few template (class, interface) somewhere in the VS direct...

VS2008 Setup Project: Uninstalling the previous MSI

I have a VS2008 setup project, which creates a setup.msi which installs a WinForms application (C#). Every time I update the version number, the users first have to uninstall the previous version before they can install the new one. Otherwise we get the dreaded "Another version of this product is already installed" message. This is wha...

Import Visual Studio TFS workspaces

Is there a way to import Visual Studio TFS workspace, I have over 30 workspace and I need to import them to a TFS on new machine. Thanks ...

Telerik Spell Check

I'm attempting to use Telerik Spell Checking for the first time for a textbox, but I keep getting the "Spell Check handler Server Error:500" "No dictionary loaded. Set the Dictionary Path property from the spell checker settings or copy the dictionaries to....." How do i accomplish this?? <td align="left"> ...

Question on debugging a Silverlight app in VS2008

Im trying to debug my first Silverligt 3 app. I have it linked to a web project. The problem is that if an exception occurs, I get a popup that tells me to choose a debugger, and after doing so says something like "There is already a debugger attached". Im used to WinForms where, if an exception is thrown VS breaks at that point and s...

Conditional image in datagrid

I have a datagrid in asp.net and vb.net, and i'd like to show the status of the item of a certain row with two possible icons. What would be the easiest way of doing so? I have a function that checks validation and returns a boolean value that uses some fields of the datagrid. (you can answer in c#) ...

Generate csharp project using CMake

I'm trying to generate c# project within an existing c++ CMake code base on Windows. After some search I could find just two projects that built their own csharp compilers for cmake: gdcm and kde. I tried both of them and unfortunately the first one failed to generate a c# project, instead it created vs c++ project with cs files in it....

show "Save as" window

How can i show a Save as window in asp.net and C#... This is similar to the one that opens for uploading but that window is the open file... I am not looking to save only one file...like Response.AddHeader("Content-Disposition", "attachment; filename=" + myfile.Name); can i make it ung ajax... please help... samples or suggestions....

Is it OK to edit the project paths in a Visual Studio solution (.sln) file without updating the GUIDs?

I have a solution that links to several library projects located elsewhere on my hard drive (outside my solution folder). I would like to change things so that these project folders are now inside my solution folder. So far, I have copied the project folders into my solution folder. Taking a look at the .sln file for my project, I noti...

How can I deploy a WPF application with ClickOnce that accesses a local MDF database file?

I made a simple WPF application in Visual Studio. It accesses its own database file in its own directory with this connection string: System.Environment.CurrentDirectory + @"\Data\" + databaseFileName; I clicked Publish and basically accepted all the defaults (CD/DVD publishing, no online updates). I copied the setup folder to anoth...

Keeping all Visual Studio projects in sync with a library

Scenario I have a Library that contains Projects A, B, and C. I have two solutions. Solution 1 includes a copy of Project A, and Solution 2 includes a copy of Projects A and B. When I build Solution 1, here's what should happen: When I build Solution 2, here's what should happen: How can I do this? Is this something I cou...

If I Develop a C++ (native) DLL with VS2010 will I need MSVCRT100.dll to be also deployed?

I'm not using any features of the MSVCRT100.dll (I don't even know if there are new features). ...

Open a dialog box from a DLL

I have a Visual Studio 2008 solution with two projects: a C# Windows Forms application and a C++ DLL. The DLL opens a custom CFileDialog. Here is a toy version that demonstrates the problem, where the C# app is just a button to launch the dialog and a label to show its result: DialogApp.cs: ... public partial class Form1 : Form { ....

VS2008 how to change from Web Developer to C# Developer settings

I just reinstalled vs2008 and accidentally selected Web Developer instead of C# Developer the first time it ran and now all my key bindings that I was used to are wrong. How do I change it to C# Developer? I tried devenv /resetsettings, but it only reset my fonts and other settings. ...

Initializiation confusion

Not sure of the appropriate title, but it stems from this discussion: http://stackoverflow.com/questions/620137/syntax-of-new/620402#620402 On Visual Studio 2008, when I run the following code: struct Stan { float man; }; int main() { Stan *s1 = new Stan; Stan *s2 = new Stan(); } Examining the locals, s1 has an uniniti...

How to print the return type of a function in Visual Studio 2008 (C++)?

Imagine you have a function, if you hover over it with the mouse in visual studio you'll get the function prototype. Is it possible to print to the screen the return type of this function ? This is a practical question, not a programming one. Does the functionality exist in VS ? ...

How to stop Visual to put web.config when I compile web site project

Hi, In my web application (Dotnetnuke 5) site, for development purposes I made a virtual directory under the main website. As a result, in my solution I have the main Web site as well as the virtual directory website which is actually a folder inside this main web site. Now I want to have this as a virtual directory because I want to ...

Visual Studio 2008 Create new Smart Device project option not available

I have installed Visual Studio 2008 (also tried with 2010 beta) and cannot see the option to start a new smart device project (for windows mobile) I have tried multiple websites - I appears I have to install windows mobile 6 SDK but when I try to install that it says I need to have visual studio 2005 installed. Am I missing something r...