visual-studio-2010

What is the difference between intellitrace and moving to a previous line of code when stepping through?

I read a description of how intellitrace in VS2010 Ultimate is like going back in time, in the execution of your application. However, this sounds just like moving the line marker to a previous line (that yellow arrow in the breakpoints margin to the left of the code, when you are stepping through code). Thanks ...

WCF Not Binding to TCP Port (checking via netstat -a)

Okay, I'll try to make this as straight forward as possible. I'm using VB.Net in VS2010, I'm attempting to self-host a WCF service. (It's actually in a windows service, but I'm trying to do this via a simple console app. Below is the code in question, the TCP/IP addresses are injected directly here. The WCF service itself is simply a ...

Unable to set a reference to System.Data.dll in a Silverlight client project

I created my first Silverlight application. In the client project, I want to define a Dataset object. To do so, I figured I first need to reference the System.Data namespace in the dll of the same name. When I add a reference to the dll, I get a msg that "it was successfully added," I see thje dll in copied to the bin folder, and then ...

Crystal Reports not chaging the server programatically

I'm developing a local app with friends and we're using svn, but we have crystal reports, but it saves the last server used by one of my friends when doing the commit. I tried changing the server programatically using this piece of code, but it didn't work :S *UPDATE: it seems that the .rpt keeps a history of the server names, and some...

VS2010 code repository options

I am a sole developer currently backing up my source code to .zip files on an external drive. Is it worthwhile for me to start looking at code repositories? What's the simplest, cheapest option for me? (ie. There is no need for lots of fancy features as the repository is just as a backup and not for sharing with a team). ... Forgot to m...

Using SQL Server 2008 R2 with Visual Studio Express

I want to create either "LINQ to SQL" classes or use "Entity Framework" from Visual Studio Express 2010. When I attempt to add a data source my only options are: "Microsoft Access Database File" "Microsoft SQL Server Compact 3.5" "Microsoft SQL Server Database File" Do I need VS2010 Pro to use LINQ to SQL or EF? I thought I could d...

how do i shot stdafx.h?

I am using Visual Studio 2010 to make a 3D model in C++ and OpenGL. I started a project on my home pc, and then decided to put it in a repository, so that I could get the code for development on my laptop and not have to keep transferring files between the two computers (and also just to get some practice at using source control). The p...

Visual Studio 2010 keeps changing my default browser

Opera is my browser of choice, so it's set as system default browser. But for debugging web apps in Visual Studio I prefer IE so I set it as default in File-Browse With... What's weird here is that Visual Studio 2010 keeps changing its default browser to system default in an unknown manner (VS restart is one of the situations). Is there ...

Count non-whitespace characters for selection in Visual Studio 2010

Hi, does anyone know of a tool or extension to Visual Studio 2010 to count non-whitespace (e.g. all characters but not spaces, new lines etc.) for current selection in a document? Nice to have for code golfing :) I have a command line tool, but an integrated tool would be very nice. Also I would prefer something to evaluate current sel...

Strange issue with the VS2010 debugger

Hi, I've installed visual studio 2010. When unhandled exception is thrown, nothing happen... I created new windows form application and wrote 1 line in the form_load function: private void Form1_Load(object sender, EventArgs e) { throw new Exception(""); } And still nothing happen. The only thing I can see is th...

Mobile phone project not opening Visual Studio 2010?

Hello, I just downloaded one sample from this link :- http://msdn.microsoft.com/en-us/library/ff431744%28v=VS.92%29.aspx But when i try to run in my Visual Studio 2010 i get some error as This type of project is not supported in Visual Studio 2010 Why am i getting this error? ...

Debug/Run unittest-project in visual studio

I have some unit-tests within a Visual Studio project with the attributes: [TestMethod] [ExpectedException(typeof(..Exception))] When I run the tests from 'Test View' they pass because the exception is thrown. When I debug the project (F5 or start new instance) the tests are started and when the first exception is thrown the debugger ...

VS2010 Schema Compare bug

I'm using VS2010 Schema Compare to compare two databases - let's call them 'PerfectDB' and 'DodgyDB'. I want DodgyDB to have its schema altered to match PerfectDB. I select PerfectDB as the source and DodgyDB as the target, and compare. When I hit the Write Updates button, I am getting the following error: SQL01268: .Net SqlClient...

How can I get VS2010 to use the 3.0 C# compiler instead of 4.0?

How can I get VS2010 to use the 3.5 C# compiler instead of 4.0? It it even possible, or do I need to have a separate VS2008 solution file to coerce compilation with the 3.0 compiler? (updated to fix compiler version #) Update: My motivation is to get the productivity of developing in VS2010, but it needs to run on a build server that ...

Crystal Reports 2008 / Visual Studio 2010

I've created a number of Crystal 2008 reports that are running in InfoView. This isn't working out too well, and I'd like to create my own Crystal Reports report viewer application in VS 2010. I'm too familiar with hosting Crystal reports inside a C# application. So I guess a couple basic questions. 1) Does VS 2010 contain a Crystal Re...

How to develop Add-In/Extensions for Visual Studio 2010 [Source / Reference]

I'm thinking of developing a tool that runs under Visual Studio 2010 and am struggling to find sample applications, source codes, and especially handouts that help in this journey. I wonder if anyone would have any recommendation of material, or website. Thanks ...

Hidden Features of Visual Studio 2010

Having spent the last couple of months playing with Visual Studio 2010 and enjoying all its benefits; I only just noticed a great new feature that I haven’t seen published anywhere and would probably never know about unless I had just happened to stumble on it like I did. So it has got me thinking, there are probably a ton of new "littl...

How do I restore the previous behavior when double-clicking on a floating tool windows in Visual Studio 2010?

With Visual Stuido 2010's multi-monitor support, I like the support for code windows, but the support for tool windows is seriously lacking. For instance, I want to restore the behavior when double-clicking on a floating tool windows to "docked", not "maximize". How do I restore the previous behavior when double-clicking on a floating ...

VS2010 & SourceSafe 2005 - Logging into SourceSafe from the command line?

Hi, I have a custom application which brings together several resources and builds a Visual Studio project into an exe file I can then use to upgrade my company's website and database. This custom app uses System.Diagnostics.Process in a couple of places to access SourceSafe, I use the command SS ... -Y, to log into SourceSafe and proce...

How can I make Enterprise Templates available Visual Studio 2010?

How can I get Enterprise Templates option enabled in Visual Studio 2010? Is there something I need to setup? I have Ultimate Edition 2010 installed. I read this and it tells me that I should see Under Other Projects / Enterprise Template Projects / when I try to create a new project. I am unable to see this in my installation. What cou...