visual-studio

ASP.NET remote debugging using Visual Studio 2008

Im having issues getting this to work, maybe its not even possible? I have a PUBLIC Server http://publicserver.com I want to debug using my laptop from my home (for instance) I run msvsmon.exe on the public server, it starts up fine. On my local machine, i have my code open and in VS, i choose Debug->Attach for Qualifier i enter publi...

Visual studio debug console sometimes stays open and is impossible to close

Hey, EDIT #3 : Microsoft has released a 'fix' to this problem which is available here. I haven't had the time to test it, but I those who want to are welcome to leave their feedback here ! Sometimes when I run an application from Visual Studio and it crashes or I stop it using the stop button in the debug menu (Debug->Stop Debugging (S...

Solving the multiple CRT problem

I know there are a few similar questions, but I don't think they really have the same requirements as mine. Our DLL is compiled with Visual Studio 2005 and must link with a specific version of the CRT, due to installation constraints. This is absolute, recompiling it with the latest version is not a solution. We recently updated our Bo...

What port(s) is used for VS2008 remote debugging

What port(s) needs to be open on the remote machine hosting msvsmon.exe? ...

Are there any tools in IDEs to automatically fix comment formatting?

/* Suppose I have a multi-line comment with hard line-breaks * that are roughly uniform on the right side of the text, * and I want to add text to a line in order to make the * comment a bit more descriptive. */ Now, most unfortunately, I need to add text to one of the top lines. /* Suppose I have a multi-line comment with hard li...

C# equivalent of the C++ custom project Wizard

Hi., I have an existing wizard template created for VC++ from year back, ported to VS2008. It uses the custom wizard jscript/html templating system and DTE object. I've used this successfully for years, but now I want to create an entry for a standard C# project, I see there's no way to customise the C# project settings - the methods a...

Getting value from field in DataTable when column name has spaces

I have tried: ObjDTOleDBNFeIntegra.Rows(I)("[Cnpj Cpf]").ToString() //with brackets ObjDTOleDBNFeIntegra.Rows(I)("'Cnpj Cpf'").ToString() //with apostrophe ObjDTOleDBNFeIntegra.Rows(I)("Cnpj Cpf").ToString() //without anything I'm using VB.NET, but comments with apostrophes in here don't seem to be identified. And I get the exc...

CharacterType/ConfigurationType in vsprops

Hi, I've been using Visual Studio's property sheets for building my code and I have a useful hierarchy of sheets controlling the build settings, rather than having them in the vcproj files. This is great except for one thing. I can't seem to set properties in the Project Defaults section such as CharacterType and ConfigurationType. I...

How do I get the Threads window in VisualStudio2008?

How do you get this window in VisualStudio 2008: I am especially looking at the "View" menu. It's just not there. I have a non-Express version of VisualStudio 2008. I found the above screenshot via google..that's the window I need. Any way to make that window open? ...

How should I organize SharePoint Event Receivers in Visual Studio?

We have several custom lists, each of which has several event receivers associated with it (although only a couple have actually been written as of now). This event receivers handle a mish-mash of individual events and perform various bits of functionality. My question is how to organize them in a Visual Studio solution/project in a way ...

C1083 WIN32 No such file or directory

Hello, Visual Studio C++ 2008 I have downloaded a sample project. I converted the project from VS 7 to VS 9. However, when I compile I get this error: c1xx : fatal error C1083: Cannot open source file: 'WIN32': No such file or directory Under project properties > preprocessor definitions. I have WIN32 defined there. I have never ...

C#: Accessing image added to project folder

Hi, I would like to know following: I added the folder "Graphics" into my project and stuck a BMP in it. Now I would like to load the image from my code, but I cannot figure out how. I know its simple with resources but is there a way without adding the image into resources? Thanks ...

How do I retrieve Specific Column from dataset table without using loop. VS 2005 c#

How do I retrieve specific column with values from dataset table with x no of columns without using loop? Any Help? ...

Does anybody have a zenburn colour theme for VS2010 RC?

I can't get the VS 2008 settings with the Zenburn colours to import into VS 2010 RC, and wondered if anybody had the theme working and could make the settings available. ...

How to validate DataReader is actually closed using FxCop custom rule?

I have written couple of custom rules in for FxCop 1.36. I have written code to find weather an opened DataReader is closed or not. But it does not check which DataReader object is calling the Close() method so I can't be sure if all opened DataReader objects are closed!! 2nd: If I am a DataReader in an 'if/else' like if 1=2 dr = cmd...

Integrate help in Visual Studio 2008

I have been using Sandcastle Help File Builder to produce help files (HTML 1.0) and it's working pretty descent. However, Sandcastle Help File Builder gives you the opportunity to generate HTML 2.0 output, which is what is used in Visual Studio help system. But what I haven't figured out is how can I integrate the HTML 2.0 help produced...

The problem with NUnit and app.config

When i run a simple test on connection to DB check i receive an error in NUnit: [Test] public void TestConn() { string connectionString = ConfigurationManager.ConnectionStrings["FertigungRead"].ConnectionString; SqlConnection connection = new SqlConnection(connectionString); connection.Open(); Assert.AreEqual(Connectio...

changing project name in visual studio team foundation suite

ON tfs 2010 once i create a project i want to be able to change the name with out having to create a new project and copying over all the files? Any Idea?? ...

Safely move Microsoft SDKs folder

I have a folder on my hard drive, C:\Program Files\Microsoft SDKs, and I was wondering if it is safe to move it to an external drive. Does Visual Studio or any other tool depend on this particular folder? ...

msbuild custom task

I have a custom MSBuild task that takes in a set of JavaScript files, minifies them, and outputs them, with the extension .min.js. When I do a normal build through Visual Studio, it works perfectly and the .min.js files are output to the same directory as the original files. When I try to deploy using the Publish feature in Visual Studio...