visual-studio

Which version(s) of VSTS for .dbproj files?

With which version(s) of VS2008/VSTS can I work with .dbproj files? ...

Rules of thumb for adding references between C# projects?

I've got a question about references between projects in a solution. Most of my previous applications have just had one or two projects in the Solution, but this time I want to divide the application further. I'm starting a new Solution in Visual Studio 2008 now, and have created several underlying projects to divide the separate parts...

Using different Web.config in development and production environment

I need to use different database connection string and SMTP server address in my ASP.NET application depending on it is run in development or production environment. The application reads settings from Web.config file via WebConfigurationManager.AppSettings property. I use Build/Publish command to deploy the application to production ...

What is the easiest way to determine the dependencies of a .NET assembly.

Considering a large system with hundreds of assemblies, what is the easiest way to determine which other projects in the large system depend on a specific assembly when there isn't any way to create a single visual studio solution that contains all the projects? ...

How to get back a file my SVN client deleted?

I just updated from SVN, and one of my files has now disappeared... of course it wasn't committed because I knew I needed to update+merge first. I think maybe the guy renamed the file which means my SVN client deleted my file. I'm using VC++ 2008 & Visual SVN. Help... and for reference how is this kind of thing supposed to be avoided? ...

How do I get the Visual Studio Load Test Agent to use the servers second CPU

I am running a Visual Studio Load Test using an Agent on one of our servers. This server has two CPU and I have a licence for the Test Agent to use both. My question is how do I configure the Test Agent service to use the second cpu? ...

Add a common namespace reference by default to all pages in a project

Is there any easy way to add a using statement to every class I create in a project without having to write using SomeNamespace; in every file? [edit] I could add a template I realise but I'm talking about doing it for every file in an existing project. ...

VS2008 Missing C/C++ Header Files

So, I'm working on some network programming in C, and it would seem that I am missing a bunch of standard C/C++ header files. For example, sys/socket.h is not there. A few otheres are missing too like netdb.h, and unistd.h. Is there a pack I need to install to get these on windows? Thanks ...

Complex builds in Visual Studio

I have a few things that I cannot find a good way to perform in Visual Studio: Pre-build step invokes a code generator that generates some source files which are later compiled. This can be solved to a limited extent by adding blank files to the project (which are later replaced with real generated files), but it does not work if I don...

.NET Copy Third Party Libraries to Bin\Release

Hi All, We use Microsoft Smart client, Enterprise Library, Composite Application Block and Infragistics and some more third party libraries. In the project, we added references to the libraries in the Visual Studio 'Add Reference' and selecting from .NET component lists. How to make sure all the DLLs shall be copied to the deployment...

Setting file version number in Visual Studio 2005 C++

Can anyone point me in the right direction how to configure Visual Studio 2005 with our C++ console project how we can include a 'File Version' in the details section of the file properties. I've tried resource files without any luck. This is with a C++ project just for clarification, and big thank you for the guys you responded with C#...

Why are circular references in Visual Studio a bad practice?

Why are circular references in Visual Studio a bad practice? First, I will describe an example of how this can happen using C# in Visual Studio, since VS will typically inform you if you have a circular reference and prevent it. First, a Utilities class is created relying only on the code given to you by Visual Studio and .Net. Then, a...

Visual Studio themes with Resharper support?

Does anyone have any good font and colour themes for Visual Studio that will give me nice support for Resharper? The majority of themes out there don't support Resharper, and as such all the extra R# highlighting looks rubbish... Cheers! Matt ...

How to stop visual studio from going to program.cs on (Break All) the pause button.

It is really annoying. Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new mainForm()); <-- pausing visual studio breaks here. Thanks guys. ...

Debug and Release Assembly Refrences in XAML

In a XAML namespace declaration, is there a way to disambiguate differently named assemblies depending on your current configuration? I'm in the process of reworking a projects build system. The old system had the debug and release assemblies building to seperate directories, which meant the following (roughly) would work fine at the t...

VS 2008 Issue ->>Unable to start program

Ok I have a web application in 2005,. net 2.0 , I converted it to 2008 .net 3.5. when i attempt to run it in VS 2008 either debug or release I get the above mentioned error: Unable to start program http:\localhost\MyWebApp no other message just this. I can access my program directly thru iis and it runs. It runs on another dev m...

How to automatically position the cursor BETWEEN method braces after typing the closing brace in C#?

Whenever I create a method signature in VS 2008 (C#), I type the two braces: public void Something() {} This leaves the cursor to the right of the closing brace. Then I have to use the arrow keys to reposition the cursor in between the braces. Is there a better way to do this without using the arrow keys? I'd expect it to place the ...

What is the best alternative IDE to Visual Studio 2008

Hi guys, At home and work I use VS2008. As I've only ever used Visual Studio for .NET development, I would like to expand my horizons and see what else there is on offer as an alternative to it. So what in your opinion is the best alternative to Visual Studio? Is there a viable alternative? ...

Why does Microsoft Visual C# 2008 Express Edition debugger randomly exit?

I am writing a multi-threaded Windows application in Microsoft Visual C# 2008 Express Edition. Recently, the debugger has been acting strangely. While I am Stepping Over lines of code using the F10, sometimes it will interpret my Step Over (F10) command just like a Continue command (F5) and then the program will resume running and the ...

What's the best way to develop local using PHP and Visual Studio?

I am taking my first foray into PHP programming and need to configure the environment for the first time. Can I use PHP with the built in VS web server or do I need to (and I hope not) use IIS locally? In addition, any pointers on pitfalls to be avoided would be great. Many thanks. Update: I should have made the question more explicit...