visual-studio

Debugging MS SQL Stored Procedure

I have a problem getting Stored Procedure debugging to work in Visual Studio 2008: When I start debugging, I get these success messages in the output window, however the actual stored procedure windows does not show up. Auto-attach to process '[1640] [SQL] stagsql' on machine 'stagsql' succeeded. The thread 'stagsql [67]' (0xf80) has ex...

How to link .NET 2.0 f/w environment for vs2003

Hi vs2003 runs under 1.1 framework.Now install 2.0 framework.Now how can i link .NET 2.0 libraries such that VS2003 has intellisence of 2.0 libraries.How can i do this?? Is it possible if yes how can i do this ...

Why Visual Studio doesn't create a public class by default?

In Visual Studio when you add a new class, it always created with no modifiers and that makes class internal. class MyClass { } I would prefer that my class by default is created as public one. Why is it internal by default? What would you prefer? ...

How can I load an image saved in database to Visual Studio ReportViewer 2008?

Hi!! Does anyone know how can I get ai image saved in database and show it on ReportViewer 2008? Thanks!! ...

ClickOnce Deployment for a C++/CLI Project using Visual Studio 2008

How do I publish a C++/CLI Windows Forms project for ClickOnce deployment? The properties window for C++/CLI projects does not include a "Publish" tab (like in the C# projects). ...

How to debug mbunit/Gallio unit tests in visual studio

I am trying to figure out how I can hit breakpoints in my unit tests that are written with MbUnit/Gallio. I tried running Gallio.Icarus, attaching vs debugger to it, the breakpoints weren't hit. Next I tried to start Gallio.Echo from project properties, but I was getting an error message, after supplying the dll, saying only .exe's can b...

Flowcharting tool/add-in for Visual Studio

A 2 part question: Are flow-charts, as tool to analyze source-code, no longer considered useful? The reason I ask this question is that if you Google for source-code to flowchart tools for Visual Studio, there are no relevant results. Also, Microsoft does not seem to have a tool for this purpose. Are people just not using flowcharts th...

Correct way of integrating SVN source control and Visual Studio .NET 2005/2008?

What is the best-practice for maintaining a source code repository that automatically (or, at least, by default) rejects the inclusion of /bin, /obj, *.suo, etc. files? Should each developer be required to set a "global ignore" pattern list for their SVN client installation? [This seems too broad of an exclusion.] Or, should the sourc...

OrderedTest- Not keeping valuse from previous Test. - visualstudio208 - Unit Testing.

Hi, I am trying to Unit Test the application using VSTS 2008 unit Testing. My Problem is: I want to invoke two test case in an order. I am using the ordered Test case feature of VSTS 2008 for this. Problem i facing is I increment the value of one variable(X) in TestA and on the basis of that value i am chekcing something in TestB. But wh...

Visual Studio Data Generation Plan Schema Update

I'm new to Data Generation Plans in Visual Studio, but I googled a bit and can't find the answer to this question. I've made modifications to my schema on the database side (changed the size of an NVARCHAR field) based on data that was generated by a Data Generation Plan (a procedure broke because the field was too large), and now I want...

System.BadImageFormatException: How to fix .NET version mismatch?

I wrote a dll in VS 2005 that will be loaded by another program that was developed in VS 2003. When that program tries to load my dll, it throws a System.BadImageFormatException: The format of the file 'Foo.dll' is invalid. I searched SO and Google, and it seems that the different version of .NET is the culprit. My question is: How do I...

How to have an auto incrementing version number (Visual Studio)?

I want to store a set of integers that get auto incremented at build time: int MajorVersion = 0; int MinorVersion = 1; int Revision = 92; When I compile, it would auto-increment Revision. When I build the setup project, it would increment MinorVersion (I'm OK with doing this manually). MajorVersion would only be incremented manually. ...

How do I show how many lines of code my project contains in Visual Studio?

How can I show the code metrics window in Visual Studio 2008 Professional SP1? I'm looking to see how many total lines of code my project is for school and I can't find it. The help file said to go to View->Other Windows->Code Metrics, but this option is not available to me. I also tried right-clicking the project in the Solution Expl...

How do you handle VS.net sln and proj files in source control?

I hope this qualifies as programming related since it involves how to structure a project. Because I've always used the web site model with VS.net I never had solution and project files and putting everything into source control worked great. I knew that everything I had in my web site directory was all I needed for the web site. Now ...

Problem with an MSI distribution

So I am continuing testing and releasing changes to my app and I have come across a pain point that I am unsure how to deal with. First off, my app uses a SQL Server CE database to store information and I need to be able to make changes to this db so I've created an internally updating process that runs whenever the application runs to ...

Is there a Visual Studio plugin that spellchecks strings and comments?

Is there a Visual Studio plugin that spellchecks strings and comments? Duplicate of http://stackoverflow.com/questions/30947/visual-studio-08-spell-check-addin ...

MS nmake equivalent of $(MAKECMDGOALS)

I'm using a (somewhat outdated) Microsoft version of nmake, which is usually packaged with visual studio 6.0. (If there's a relevant answer for newer nmake - do let me know, I might consider upgrading). I wish to alter existing makefile, so that it would not include the dependency list if it is ran with the nmake dpndfull goal, which sh...

How can I insert from multiple tables into one?

I have a table for users (username, password .. etc) and another one for products (product name, price, quantity, username .. etc) I want the username from the first table to be inserted (with the rest of the product info) into the product table when the user put it for sale. How can I do this? I'm using visual web developer 2008 expr...

fatal error LNK1104 cannot open file C:\users\user\documents\visual.obj

Hello All, I get a "fatal error LNK1104 cannot open file C:\users\user\documents\visual.obj" whenever I want to compile my project on Visual Studio 2008. my project uses a .lib file that I created. can anyone help me out ? ...

What are Microsoft's public symbol servers useful for?

Hi, Until now I've always used the ASP.NET MVC framework source for debugging ASP.NET MVC. On my laptop I just tried a different approach, namely bringing up the "Modules" window in VS while I am debugging and right-clicking System.Web.Mvc, then select "Load Symbols From" > "Microsoft Symbol Servers". VS seemed to actually load someth...