visual-studio-2008

Whats the best way to store a version number in a Visual Studio 2008 project?

I would like to programmaticly get a stored major version number for a C# project in both Debug and Release builds. Where could I store this version number and how do i access it? ...

Why doesn't Edit & Continue work for me in VS2008 with a legacy C++ win32 project?

If I create a new win32 C++ project in VS2008 I can use Edit & Continue with it just fine, but with this legacy project I'm working with my attempts to use / enable it have failed. Here are things I've checked: Tools -> Options -> Debugging -> Edit and Continue -> Enable Edit and Continue is ON. Debug Information Format: Program Data...

VS2008: Disable asking whether to reload files changed outside the IDE

Hi, I have a Visual Studio 2008 project where some code files are generated with each build (a parser, integrated via MSBuild aka editing the *.csproj file). VS does not know about the generated nature of these files (i.e. they are not the result of a "Custom Tool). So they "change" with every build, naturally. And VS2008 asks me after...

Visual Studio 2008 Testing A Method?

Now this might be a dumb question, but I'm still new to using Visual Studio 2008 but I was wondering if there is a feature like this (I'm using webforms ASP.NET C#). I create a new method, highlight it in the editor and was wondering if there was a run/test method feature? Where it would exectute the method and prompt me via a UI for a...

c# excel add in as dll

hi i am using vs2008+vsto to create excel add in (ribbon)... is it possible to make it a dll, like myaddin.dll so that users will have to only add this dll... and use, or can you suggest any better approach, thanks a lot! ...

Add HTTP GET method to C# web service

I want to access one of my web service methods via HTTP GET, I've seen it done before but I can't figure out how to allow this access protocol on a VS2008 web service project. I guess you have to change the web.config file but not sure what to. Does anyone know? ...

Inserting Variable into Inline XML in VS2008

so i have some inline XML Dim x As XElement = _ <parent> <child></child> </parent> what I want to do is get some variables that have been set into that xml Dim v as string = "Blah" Dim x As XElement = _ <parent> <child>{v}</child> </parent> Is this possible? I...

Tabbed documents in Visual Studio - possible to show more detail than the file name?

I have a solution where I'm repeating various class names within three different projects (a WCF service project, a unit testing project and a BL project). Also partial classes have been used to spread these classes across multiple files. The net result is that I've got 5 different file names that are repeated across three different pro...

What Other TFS clients exist ?

Team explorer is a real pain to use for some simple tasks, and is very slow. I'd like another solution to access my TFS repository. I really like SvnBridge, but I cannot attach a TFS work item when I check-in with tortoise. Does somebody know some alternatives ? Update From what I've seen, the integration of TFS with the windows Explo...

Why does VB.NET Jet 4.0 app crash if Office not installed?

Hi all I'm working on a VB2008 project that references two Access databases using Provider=Microsoft.Jet.OLEDB.4.0; It would seem if the user does not have MSOffice on their machine, the program crashes with a "XXX stopped working" on startup on Vista and Win7. I thought that Windows had XP and above had Jet functionality built in? Do...

Versioning Build numbers with TortoiseSVN

Multiple duplicates: http://stackoverflow.com/search?q=svnversion I'm using TortoiseSVN with SVN Service running as a service on a windows server. I would like the version / build number in the project to be updated as or after the project is committed. So that the correct version / build on the project will be reflected in several ...

Disable Debugging symbols in VS2008

How to disable debugging symbols in VS2008. I'd unchecked "load symbols ..." in Tools -> Options -> Debugging -> Symbols but directories as ".pdb" and file pingme.txt still appear in my project folders. ...

Strange performance increase in projects compiled in VS 2008 comparing with VS2005

I have a 3rd party library and a simple benchmark test that I write by myself to test this library for performance. 3rd party library is C++/CLI .NET library and most code there is unmanaged. This library is assembled for .NET Framework 2.0. My benchmark test is managed C# code that adds little overhead to the library, only simple calls ...

Disable Resharper on a Project/Namespace level?

I don't want resharper to analyze my Test Project which has all my unit tests and mspec specs... It doesn't like them? Is there a way to turn off resharper on a project/namespace level? ...

Can Hudson export/set/use my environment variables for the msbuild task?

I am running hudson on Vista and calling MSBuild for C++ solutions (VS 2008). I have not been able to find a way to export the existing user or system environment variables. I can manually set env variables via hudson, but I prefer not to do that - I want to use the existing ones that are already set. Is there a way to do this? E...

Editor Control in asp.net?

Is there any editor control in asp.net like the one above? The one above was created in javascript in asp but I want something similar in asp.net. ...

Visual Studio Unit Test - DELETE permission denied

I am running a Sql statement similar to the following inside of a cleanup method of a unit test in Visual Studio 2008: DELETE FROM MyTable WHERE EmployeeID = @EmployeeID AND UserID = @UserID ... @EmployeeID & @UserID are assigned appropriate values via parameters in an SqlCommand and ExecuteScalar() is called to execute the statement. ...

Why does Visual Studio (2008) create all these *.vsmdi files

Why does Visual Studio (2008) unit testing create all these *.vsmdi files? Can it be turned off? ...

ReportViewer change language toolbars Windows Forms....

I need change language toolbars reportviewer.Buttons:Print,Find,Export ...is possible? I'm using Visual Studio 2008. ...

Nested Loop scenario, getting values before exception in debug mode - Visual Studio

If I have a nested loop scenario and I am stepping into it in debug mode. Ex: for (int i = 0; i < listTest.Count; i++) { for (int j = 0; j < anotherList.Count; j++) { //Some logic that throws an exception } } Is there a way for me to know the values of i, j, listTest[i] and anotherLIst[j] just before the exception occur...