visual-studio

Annoying Visual Studio IDE Highlighting Question...

In Visual Studio 2010 I have applied a different color scheme and installed a productivity tool (Teleriks JustCode)... now where every my cursor is the background color of the entire line is light gray. It's really annoying and I'm not sure what is causing it. Has anyone seen this? If so do you know how to turn it off? ...

In Team foundation server what is build agent and controller ?

Hi all, I am unable to grasp the concept of build server in Team foundation. Can anybody explain ? Also what is the build agent and controller in the foundation server ? ...

Visual Studio 2010 foundation server - do I need a domain controller

As a solo developer, I don't really need team foundation server, but I own a copy so I wanted to try it out and see if I like it better for source control. I have small network of windows severs (most 2008), but don't use a domain controller as most machines run in isolation and the number of users are very small (max 5 people). I in...

How do I add a collection e.g. dynamic array as a property of a custom asp.net control?

I'm trying to add a dynamically expandable property to a composite control that I can drop on the designer surface. I've tried this with a String Array, a List, and an ArrayList. All with similar results. I'm missing something and I don't know what. Here is what I think is the relevant code: [DesignerSerializationVisibility(Desig...

Building C# solutions from command line with Visual Studio 2010

Hi, I want to automate the build process for my C# solutions. How can I build C# solutions from command line so that I don't have to care for dependencies manually? ...

Renaming a Visual Studio .NET 2008 C++ project

I didn't think too hard when initially naming my Visual Studio C++ project and now want to rename it. I'd love to avoid doing a replace all on the name of the project (and renaming all files in the project directory), because this would be error prone and tedious. Is there a way to rename the project within Visual Studio? Thanks, Eri...

Is there a simple way to switch between a project and it's dll

We often have a set of common core libraries that for some of our development we want to think of them as dll references and thus just reference the dlls and not include the project file. Other times we need all projects for an intimate debugging session. I can't just have Uber.sln and Core.sln as the references are in the project file...

Using RockScroll v1 with Visual Studio 2010 problem.

I knew about RockScroll at this blog, I downloaded it to run on Visual Studio 2010, but it doesn't seem to work with VS 2010. What might be the problem? Doesn't RockScroll v1 work with VS 2010? If so, what would be an alternative? If not, what might be wrong? ...

Restarting normal Threads

Let's say that what I want to do is to validate one million strings, and each validation takes a couple of seconds. My approach: I have an array of threads declared like this: Thread[] workers = new Thread[50]; I don't have all strings in an array, they are got through some calculations, then I don't have all of them when I start th...

How do I include a SQLite DLL in my C++ project?

I'm trying to add SQLite to my project via a DLL. I downloaded SQLiteDLL-3 from the download page, extracted its contents (a DLL and a .h file), and ran lib.exe on it to produce a .lib file. I then set the directory containing the .lib and the .dll files to be an Additional Library Directory, in the project settings, under Linker >> Gen...

Is there any tool which would tell me how efficient my code is in terms of Big Oh notation?

Hi, Is there any tool which would tell me how efficient my code is in terms of Big Oh notation? It can either be a tool for Visual Studio (2010) or standalone. Thanks ...

VS IDE Conditional Break Points

I'm using VS 2k8 SP1 (on Win2k8 x64 server), and I notice that a breakpoint with a condition set can produce quite flaky behavior, depending on how deep in the call stack the conditioned-breakpoint is found. So if I place it on a routine deep in my code, the program execution breaks at the right time (I can tell because of console outpu...

Visual Studio 2010- a target schema that allows "anything"

Some background: I'm investigating porting our existing WebForms project to ASP.NET MVC coupled with client-side XSL manipulation to hopefully reduce our bandwidth usage and, y'know, not use WebForms. As a result of this, my .aspx files are actually outputting XML rather than HTML, and I get a huge load of validation errors. I know I c...

Change the text cursor/caret in Visual Studio 2010

Hello, I've accidentally changed the text cursor/caret in Visual Studio 2010 from the line to the one with the box that highlights the entire character and cannot find out how to change it back. Can anyone tell me how? Thanks! ...

Consume locally hosted REST from Silverlight?

I'm building a Silverlight / Windows Azure app. I'm trying to read some simple data from a REST API exposed from the web role. private void MainPage_Loaded(object sender, RoutedEventArgs args) { // ... WebClient data = new WebClient(); data.DownloadStringCompleted += new DownloadStringCompletedEventHand...

Package Manager Console issues

I installed Asp.net MVC 3 beta which also installs NuPack, but when I open a project in Visual Studio 2010 Express, the Package Manager Console gives me this error message: System.TypeLoadException: Could not load type 'System.Management.Automation.Runspaces.InitialSessionState' from assembly 'System.Management.Automation, Version=1.0....

Creating and using dll's: __declspec(dllimport) vs. GetProcAddress

Imagine we have a solution with 2 projects: MakeDll (a dll app), which creates a dll, and UseDll (an exe app), which uses the dll. Now I know there are basically two ways, one is pleasant, other is not. The pleasant way is that UseDll link statically to MakeDll.lib, and just dllimports functions and classes and uses them. The unpleasant ...

Error in xmlnode fuction

Hi, i am stuck with this small problem in my code. I am trying to make small console application which will write into xml document. I have used xmldocument and xmlnode concept. ERROR i am getting is; *An object reference is required for the non-static field, method, or property 'Write_xml.Program.give_node(System.Xml.XmlDocument)' ...

Windows Phone 7 Dev Tools: cannot see menu for device emulator

I have installed the dev tools. I have both visual studio 2010 and Visual Studio C# Express. After install it launched VStudio, I create a windows phone app, when running it says "Error 1 Zune software is not installed. Install the latest version of Zune software." I saw on the internet that I had to connect to emulator in tools men...

run native(unmanaged) exe from memory in C#

hello i have some c program that use from those in my c# program. i dont want send those c exe to client. that mean i dont want user can see those exe. i want to load those byte to memory and run its from memory. how i can do that. thanks a lot. ...