visual-studio

Compile error when trying to debug a Visual Studio integration project

I'm currently working on a Visual Studio integration project for VS2010 (a custom highlighter) I'm using Irony and the LanguageServiceTemplate from this Code project article. However that template is build for 2008 and the changes made in VS2010 when it comes to integrating breaks the template. When I try to compile I get the following...

Application test recommendation

I never use unitests in my apps . I know that exists many technologies for testing .NET based application. (For example NUnit). Which of this tools more comfortable and more understandable to use. Please can you show the good articles where can I find information about unitests and understand key situation where I must use them? ...

Visual Studio 2010 - WPF - Background-Image scaling problems

Hi. I experienced a Problem in Visual Studio 2010 and i dont know if its a bug or i just did somehting wrong. I have 6 Images(Icons) that all have the same size (50x60px), are of same type(png), made with same program(gimp), saved with same options. I want to use these icons as backgrounds for buttons. But the Images are scaled differe...

How to File Transfer client to Server?

i try to recieve a file from server but give me error on server.Start() ERROR : In a manner not permitted by the access permissions to access a socket was attempted to How can i solve it? private void btn_Recieve_Click(object sender, EventArgs e) { TcpListener server = null; // Set the TcpListener on ...

New projects not built when target platform is set explicitly

I create a new solution with one project, and then change the target platform from "Any CPU" to "x86". After this new projects added doesn't get built by default, and their target platform doesn't follow the global settings. Why?! Looking at the configuration manager new projects added are not checked to "Build", and they get target pl...

Satisfying indirect references at runtime.

I'm using C# and VS2010. I have a dll that I reference in my project (as a dll reference not a project reference). That dll (a.dll) references another dll that my project doesn't directly use, let's call it b.dll. None of these are in the GAC. My project compiles fine, but when I run it from Visual Studio, I get an exception that b.dll...

VS2010 Load Testing - Restricting ports

As per the trouble shooting guide for VS2010 Load Testing (http://social.msdn.microsoft.com/Forums/en/vststest/thread/df043823-ffcf-46a4-9e47-1c4b8854ca13), I'm trying to restrict the range of ports used for client-controller communication. HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\VisualStudio\10.0\EnterpriseTools\QualityTools\ListenPor...

C++ snippet support in visual studio?

I'm writing code in native C++ (not C++/CLR). I know that there is no built-in support for C++ with regards to the snippet manager and snipper picker interfaces, however I found a utility called "snippy" which supposedly can generate C++ snippets. Here is a c++ snippet that the program generated: <?xml version="1.0" encoding="utf-8"?> <...

ReSharper breaks keyboard shortcuts for "Find" and "Find in Files"

I have been using ReSharper for some time and since I can remember every time I install Resharper, it's default keyboard shortcuts override Visual Studio's CTRL + F and CTRL + SHIFT + F for "Find" and "File in Files". It happend with R#3, 4, 5 in VS 2005, 2008 and 2010. I don't have any ideas why would that be a good idea, but if this ...

Problems referencing build output from TFS Build and Visual Studio

Here's what I'm trying to do: I have two solutions - one for my main application and its associated projects and another for my database (VS .dbproj) and its associated projects. What I'd like to do is include the output from the database project (a .dbschema and some SQL scripts) in my WiX installer (which exists in the main application...

Visual Studio 2008 project configuration changes by platform/configuration

I've got about two dozen projects here in one solution that need changes to the include paths. I can go through and change each one, but what's really annoying me right now is that it looks like I have to change each one four times (debug vs. release, win32 vs. x64). Is there an easier way to do this than changing the include paths abo...

TCP Client/Server Image Transfer

Hi all, I'm trying to send an image using a TCP socket. The client connects to the server without any problems and start to receive the data. The problem is when I try to convert the stream to an image using FromStream() method, I get an OutOfMemory Exception. Can anyone help me out? Really important!! Here is the code; client snippet ...

How to determine at runtime when your C++ application has the visual studio debugger attached?

How do you determine at runtime whether the visual studio debugger is attached to your process. I've seen instructions for how to do this in .NET, but my process is a native C++ process. Support for detecting Just-in-time debugging would be nice but not a strict requirement. ...

Visual Studio HTML Cursor-within-HTML-Element Syntax-highlighting color

I can't, for the life of me, figure out how to change grey highlight color in the screenshot below to something that will make the text a little more legible. Does anyone know what the "Display Item" name is that I need to change? To get to the "theme editor" select Tools => Options => Environment => Fonts and Colors. I can't find what ...

How to change color of selected references

Visual Studio 2010 highlights all references to the same variable (or class) when your cursor is placed over it. with the theme I use highlighted references are white on white - making them virtually impossible to read. what is the name of "display item" in Options-> Environment Fonts and Colors that is responsible for that color? chan...

How does one use OpenFileDialog in C# in visual Studio 2010

I have written a custom dialog (form) that I can use in a C# program that behaves much like a "File - Open" menu command and brings up a window where a user can select a file or directory. The question I have is this. It has "My Computer" as its root. How can I have it so that it searches on a Network? If the file or directory is loc...

Is Visual Studio Development Server producing log files?

If so, where? (running against win7) thx ...

Debugging Visual Studio 2010 Unit Test and WCF Service in one IDE instance

I have created a WCF service in Visual Studio 2010 along with some supporting assemblies. I have also created a test project which contains multiple unit tests for the service and the supporting assemblies. Right now I have them all in one solution with the Test project having a service reference (http) to the WCF service. If I debug th...

If I have Both Visual Studio 2008 and 2010, do have I have to keep both.

I recently downloaded VS 2010 trial, the new version is more easy to use. I have VS 2008 installed, If i decide to use VS 2010 in the future, do I still have to keep VS 2008? Is there any compatibility issue with it? ...

How to deploy and register a VSPackage supporting multiple versions of Visual Studio (2005, 2008, 2010)?

I have an open source VSPackage that I would like to release with support for Visual Studio 2005, Visual Studio 2008, and Visual Studio 2010. I'm trying to figure out how to create the installer and how to perform the package registration with each edition of Visual Studio. The deployment research I've done indicates my best bet for an...