visual-studio

Access the project file structure within the Visual Studio Properties property grid?

I'm making a Component that will be used in a VS drag and drop designer. One of the properties on this component needs to be the pack URI of a file within the project. I'd like to make things a little easy and, from within the property editor the PropertyGrid uses for my type's property, examine the solution, construct the Uris and pre...

Generate .webtest files without using Visual Studio

We have business users that we'd like to get involved writing webtests for our project, but purchasing full Visual Studio licenses just for this purpose seems like overkill. Are there any open source or third-party tools that can be used to produce webtests that can be read by Visual Studio? I would prefer a tool that integrates into ...

Visual Studio - Resource (CSS/JS/Images) sharing between web projects

Hi there. I'm looking to share a common pool of web resources (css/js/images) across multiple web projects. What I'm hoping to do, is create one project file for the resources, e.g.: Common.WebResources, and include it in the Visual Studio solutions for Site1 & Site2. The part I'm looking to solve is setting it up to work with the VS D...

Visual Studio: Setup Project - !Condition

In a visual studio setup project, how do I get the inverse of a condition? Specifically, I am looking to run a script if a file does not exist (ie the Exists condition is false). ...

How can I write a Visual Studio macro to perform an Extract Class refactoring?

I'm trying to build a macro for Visual Studio 2008 that behaves thusly: (Extract Class Macro) I highlight some text in the currently open document and call the Macro (using a keybinding or whatever). The macro runs "Project.AddClass" for the current active project, allowing me to specify the Class name. The macro adds the text I origi...

Replacement of Delphi IDE "Sync Edit" in Visual Studio

There is a feature in Delphi IDE (Borland Developer Studio 2006) which allows to edit some variable in "sync mode". For example if you have a code snippet like this: 2qdo8sz.png You can select the text you want to modify (in this case the complete procedure) and start editing a variable name. It will be edited at all the places (except ...

How to cross-compile 64bit DLL with VS 2005 on 32bit computer?

Using Visual Studio 2005, I wrote a simple DLL in C that uses the Windows API to send UDP datagrams and that is hooked into a third-party program. On a 64 bit machine, it does not work at all, as the third-party code was compiled for 64 bit in this case. So I need to ship two versions of the same DLL - one for 32 bit, one for 64 bit. Ho...

Using Copies of an Excel Workbook that has VSTO Customization

I am creating a customized Excel 2007 Workbook using VS 2008 and .Net 3.5 using an Excel 2007 Workbook project (C#). I have a desire to use the custom workbook as a data editor which is attached to a Windows Forms application. The Forms application creates project data stores in Access 2007 and places the store into a project directory...

Linked Braces in Visual Studio 2008

Hello, How can I, create a vertical line between the open brace and close brace in Visual Studio 2008 (C#), if you can't understand about what I'm talking, there's a following picture(Pic1). [Pic1 - I want to do this with the braces] http://www.hanselman.com/blog/content/binary/vsbeforefonts.png Thanks. ...

Copying a DLL's dependencies in Visual Studio

How can I set up a project in Visual Studio to copy the third-party DLLs that one of the project's references depends on? I have a main application project and a class library DLL. The main application references the class library DLL, and the DLL itself references some third-party DLLs. When I compile the main application, it automatic...

Problem "F5" Debugging ASP.NET Web Application Project with VS2008 on Vista

Greetings! I'm working with a .NET3.5 Web Application project in Visual Studio 2008 on Vista Ultimate. I'd rather use IIS7 than Cassini as my local test web server. I have the website setup in II7 and every thing is served with no problems. However, I'd like to use the VS debugger hooked up to F5 instead of manually attaching to the ...

VS 2003 reference problem

We have inherited a vb.net 2003 web project, it seems to reference another web site. I am not sure how this was done. I cannot delete the reference (there is no properties and will not respond to pressing the delete key). The reference looks like a folder with a pic of the world on it. Any ideas how to get rid of it? Thanks ...

How do you disallow DebuggerNonUserCodeAttribute from being placed on the code generated by the dataset designer?

Hey I would like to step thru dataset designer code in an ASP.NET project, how can i ensure that this: [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] is not included on the code it generates? ...

Visual Studio 2005: How to speed up builds when a VSMDI is open?

Hi, Using Visual Studio 2005, if I open tests in a VSMDI and try running tests, it sometimes re-builds projects. However, these builds go extremely slow. The CPU is 99% idle and the output window shows VS clunking along compiling things. Is there any way to fix this? It makes no sense. Upgrading isn't necessarily a viable option for tho...

Datalist line break when records with same ID detected

Kinda hard to explain, but i'll try. I have a datalist that is populated by a call to a stored procedure. The thing is, when rows with the same ID is detected i want it to break and add it under the first record and so on.... Illustration -- > Stack [23,45,566,676,787,878,23,23] (these represent record ID's) 23 23 23 45 and...

Why does not Visual Studio display warnings generated by the #warning directive (CS1030)?

Edit: I reported this as a bug on the Microsoft Connect site here. Edit 2: Microsoft will not fix this bug (at least not in VS2010). User defined warnings are only shown in the Error List window for one file per project. So if you put the #warning directive in several files of your project, you will not see any warnings after build for...

c++ compilation error.

Following code is giving compilation error in visual studio 2009. #include <iterator> #include <vector> template <class T1, class T2 > class A { public: typename std::vector<std::pair<T1,T2> >::iterator iterator; std::pair<iterator, bool > foo(const std::pair<T1 ,T2> &value_in); }; can anyone throw some light on it? Here is ...

Visual Studio change date format

When working in Visual Studio 2005/2008 the dates are shown in mm/dd/yyyy hh:MM:ss format. Is there a way to change it to yyyy/mm/dd hh:MM:ss ?? ...

Most important feature in Visual Studio 2010

What is the most important or awaited feature in Visual Studio 2010?? ...

Is there any method to clean the website unused resources

Is there any method to clean the website unused resources like... CSS that are no more used in the website skins that are no more than in the website images that are no more than in the website Javascript function that are no more used in the website this thing require, when website is completed and ready for deployment. ...