visual-studio

Ignore #pragma comment(lib, ...) ?

I'm attempting to perform a link of previously generated .obj files (using the latest version of MSVC). When those .obj's were created, the source code specified: #pragma comment(lib, ...) As such, the linker is attempting to link against static libraries specified in the source. Is there a way to instruct the linker to ignore these...

Building Opensource QT for Visual Studio 2005/2008

Does anyone have instructions on building the opensource version of QT? Now that the repository is opened up, I'm trying to build for VS2008 but I'm getting errors when it tries to build qmake. I found the question http://stackoverflow.com/questions/74521/im-looking-to-use-visual-studio-to-write-and-compile-using-the-open-source-versi b...

What refactoring tools do you use for .NET?

Do you use any of the refactoring tools like DevExpress' Refactor Pro? Which tool do you use and why? I'm looking for recommendations. Ideally I'd like open source tool that works with VB and C# inside VS2005 and VS2008. If I had to narrow down my list of ideals, I would purchase something for VS2008. Not sure on the language choice, pr...

What's the cheapest way to get a Visual Studio 2008 Standard Edition license?

I know I can purchase it for $299.00, but my primary reason for upgrading from the Express version is I want to be able to use ReSharper, which is an additional expense. Are there any ways I can get a VS copy for less than off-the-shelf price? Any special programs I can join, or is there a special "developer" version :) (kind of redundan...

Is it possible to have version-independent DLL references in a class?

I would like to create a class that compiles into a single DLL. This DLL would add functionality to an existing product. To make this work, the custom class references DLLs contained in the underlying product. These references are needed to compile. Everything works fine here and the custom class compiles. I can drop the DLL produ...

Visual Studio Regex help

I am using regex in Find/Replace in VS IDE. I need to replace the string message="My message" in all aspx files with an empty string. The html looks like this <input id="test" message="My message"/> I am trying to use the regex to find for message="{.*}" but it doesn't work. ...

How to Mix different compiler versions programs in visualstudio:?

HI our total project had Built on vs2003.earlier they have used SQLDMO in teheir project.Now we have palnned to use SQLSMO instead which must have .NETFRAMEWORK 2.0.But as of my knowledge vs2003 runs under .netframework1.1. Now my question is how to mix these two. my thinking is in my machine i have alresdy .NETFRAMEWORK 2.0 inst...

How to create a Visual Studio Setup Project registry value with the application install path?

I have a very simple application installer that needs to add an action to the shell menu of all files (HKCR*\shell), and I've run into a brick wall: how do I insert the installed path of the application into a registry value? I've tried everything I can think of: [Path] [ApplicationFolder] [ApplicationPath] [InstallPath] [InstallRoot]...

Please explain what an outlook add-in is

Can someone give me a quick explanation of when I would use Visual Studio 2008 Outlook 2007 Ad-In project type? and how would that compare to developing a bunch of outlook macros directly in outlook? Basically, I want to have some sort of application read email (with attachments) from a pop3 email box, do some filtering/editing/validati...

QuickWatch window intellisense problem

Hi, I use ReSharper but I cannot use intellisense on the QuickWatch window. Resharper disables this feature. Do you know any solution? Thank you. ...

Copying winforms between projects in Visual Studio

What is the best way to copy or cut/past a form from one Project to another Project within a Solution in Visual Studio? Whenever I try it, using the solution explorer (drag and drop or right clicking cut and past), it only copies the underlying C# code and not the necessary 'bits and pieces' that help you visualise the form via the form...

Measure performance bottlenecks in a library

In my website I have a rather complicated business logic part encapsulated in a single DLL. Because CPU usage hits the roof when I call certain methods of it I need to measure and optimize. I know about the performance profiler, but I don't know how to set it up for a library. Furthermore I don't seem to find any usefull resources about ...

Getting the path of the current assembly

How do I get the path of the current assembly? I need to get data from some paths relative to the location of hte current assembly (.dll). I thought someone told me to use the reflection namespace but I can't find anything in there. Thanks, Scott ...

WPF Package Load Failure?

Package Load Failure Package 'Microsoft.VisualStudio.Xaml' has failed tot load properly. . . yadda, yadda, yadda. So now what? This package is somewhat important since I was hoping to do some WPF stuff this afternoon. Tried running without it and my XAML design view is gone. I already tried "devenv /resetsettings" from the command pro...

Visual Studio Auto Copy File On Save

Is there a way to have visual studio automatically copy files I save in a project to another location? I'm not looking for source control functionality, more along the lines of "automatic deployment". I work on my local machine but I want the files to automatically be tossed onto my dev box every time I edit them. Is there a way to do th...

VS Setup Project: Add Start Menu link to a file in a Merge Module

I have created a new Visual Studio Setup Project that uses the output of another Merge Module project. The Merge Module contains files that will be installed into the "x:\program files\\Documentation". One of these files is "documentation.pdf". I would like to add a link to the Start Menu in the Setup Project to the documentation PDF. Th...

Generating Symbols in release binaries with Visual Studio

Update: I posted a comment on John Robbins blog about the. He wrote a response here: http://www.wintellect.com/CS/blogs/jrobbins/archive/2009/06/19/do-pdb-files-affect-performance.aspx The project I am working on does not build symbols for its release binaries, and I would like to change this. Some info: Mostly C++ code base, some C...

Unlocking asp.net mvc templates in VS 2008

Ok so i downloaded the asp.net mvc through the web platform installer. Rebooted the machine and fired up VS 2008 express. Lo and behold there were no website/project templates that could setup an mvc project. I did a little research and found out they would not show up in the express version. No matter - i got team suite edition too so i...

How to use environment variables within Visual Studio 2008 project properties?

For example, is it possible to set the Output path to your app folder within Program Files? %ProgramFiles%\MyCompany\MyApp\ does not work. ...

How can I stop Internet Explorer from creating new instances?

Is it a way to stop IE to create a new instance everytime it encounters a popup window? I'm debugging two Silverlight applications at the same time. The first one creates new popup window with the second one. Debugging works fine in FireFox because it does not create a separate process. But IE creates new instance and of course Visual St...