visual-studio

Vista Schedule Task From Setup

I'm deploying a C# application using the Setup Wizard project in Visual Studio 2008. What is the simplest way for me to have Windows schedule my application to run at regular intervals (e.g. every 8 hours)? I prefer if this scheduling would happen during the application's installation to simplify setup for the end-user. Thanks! ...

Installing - microsoft visual c++ 2003 redistributable package - Getting Error

When I'm trying to install "microsoft visual c++ 2003 redistributable package" getting an error "The upgrade patch cannot be installed by the windows installer service because the program to be upgraded may be missing,....." error message. How can I solve it? ...

Visual Studio Console App - Prevent window from closing.

This is a probably an embarasing question as no doubt the answer is blindingly obvious. I've used Visual Studio for years, but this is the first time I've done any 'Console Application' development. When I run my application the console window pops up, the program output appears and then the window closes as the application exits. Is ...

Visual studio postbuild - changing to the solution drive

In Visual Studio postbuild, I need to run a batch file. The solution is potentially on a different drive to that which Visual Studio is running from. In postbuild, how do I determine the drive letter that the solution is running from so I can change to that drive before running the batch file? At the moment, all I have is this: CD $(Pro...

how to make visual studio copy dll to output directory?

Hi! I have a Visual Studio C++ project that relies on an external dll file. How can I make Visual Studio copy this dll automatically into the output directory (debug/release) when i build the project? Thanks! ...

In a VS Setup project, how can I exclude the dependencies of a project from the MSI?

I'm working in C#. I have a small VS Solution with 4 projects: a DLL an EXE that references the DLL a merge project, that does nothing more than ILMerge on the assemblies from the prior two steps a setup project, that packages the .EXE output of the Merge project. (I've added the "Primary Output of a Project" to the setup, specify...

Configure Visual Studio Errors Messages (should be referenced)

Hello, is there a way to disable certain error messages from Visual Studio. Currently the most annoying one is related to multi-targeting. The main problem, resharpers nice "errors in solution" becomes useless if it shows all these "not existing" errors. See screenshot for details: http://img81.imageshack.us/img81/729/20091121203416.p...

Does VisualHG work with Visual Studio 2010 beta 2?

Since I installed it on my Visual Studio 2010 beta 2 I couldn't make it work. I don't know if it is because it is incompatible or it is because I don't know how to use it. ...

Visual Studio weirdness

Hi guys, I have no one else to count unless this fantastic community, I know this is a non-programmer question but I can't figure it out why this is happening. To a client I developed, using 960.GS a layout with a simple login user page / choose product / register products using .NET (ASP.NET 3.5) and all was ok, they agreed and I star...

VC++ 'Generating Code', what does it mean?

WHen compiling in visual studio the compiler outputs this at what seems to be its own discretion: 1>Generating Code... what is it doing here exactly? ...

Visual C++ Team Test problems

I am trying to get some unit tests for native C++ running with Visual Studio Test Suite. I have just a single, simple class named "Shape". I followed a tutorial and did the following steps: Created a "ref class" wrapper called "MShape" for the native class I want to test Changed configuration type to .dll Changed CLR support to /CLR Se...

What is the VC Accelerator Editor in Visual Studio 2008

Is this for C++? Is this for C#? What are Accelerator Editors in general? EDIT It seems that Accelerators are Keyboard Shortcuts. So now I really just want to now if VC is C# or C++? ...

Visual Studio local project setting best-practices?

How do people commonly store local .settings files for their projects? For example, I have a solution for a web project in Mercurial. I have a data project containing my entities and repositories. My connection string is stored in Settings.settings and I'd like to have different sources depending on my location. I was thinking I could s...

Are there any layout comparison / vssetting sharing places?

Well, I reinstalled Visual Studio 2008 and did not have a backup of my vssetting file. I did not think it was that important as I had barely customised it, however it just doesn't feel right! The general windows feel correct but When I switch between views (source code, Windows forms, web editor), all the toolbars get muddled up. In th...

Writing a visual studio plugin?

I'm looking for resources on writing a visual studio 2008/2010 plugin, preferably a book of some sort. ...

Prebuild Event only on Build Solution/Project not on F5(Debug)

As the tittle says I need a prebuild command CONDITION that executes an exe on build solution/project and passes when i use F5. I found "$(ConfigurationName)" as a possible solution on some websites but it only works if you change each time the configuration type manually. Anybody knows the trick?? ...

Embedding a XAP file into a class library

This might be a bit tricky setup but... I have this Silverlight project that builds into a XAP, which is all fine. Next we have this set of class libraries we add to an existing application which then unfolds into small "applications" inside the existing one. The problem here is... I want my XAP to be embedded into the class library ...

how to do a "Move type to another file to match its name" accross a complete solution

Hi does anyone know of a way to split all classes in one solution into multiple files? The point here is that I've inherited a project in which a few hundred files contain a thousand or so classes... I'd like to be able to get to a 1 file per class approach.. Using resharper I can easily do this manually, but I'm guessing there must b...

How do I decide whether having more that one VC++ CRT state is a problem for my application?

This MSDN article says that if my application loads VC++ runtime multiple times because either it or some DLLs it depends on are statically linked against VC++ runtime then the application will have multiple CRT states and this can lead to undefined behaviour. How exactly do I decide if this is a problem for me? For example in this MSDN...

Debuging Classic ASP causes Visual Studio 2008 to Crash - How To Fix?

I'm debugging classic asp code using VS 2008 sp1 on windows 7. Everything works great, I attach to the process and can debug. However, If I stop debugging visual studio will crash. I read the recycling the app pool would help, but it has not helped me end a debugging session with out crashing. I have hunted through Google and stack o...