visual-studio-2010

Timeout.bas equivalent for Visual Basic using Visual Studio 2010

Are there any Timeout.bas equivalents for Visual Basic using Visual Studio 2010 I have this file called timeout.bas that I could add to projects in earlier versions of visual basic that basically let me use the code: Timeout .5 I'm trying to get the same kind of file for Visual Studio 2010 So I can write code such as: Label1.text =...

Can't reference an assembly in a T4 template.

I have the following code in a tester class in my main assembly, PocoGenerator. This assembly is supposed to use a T4 template to generate POCO's based on L2S entities in a referenced assembly (a project reference), DataObjects. var assemblyName = "DataObjects"; var dataObjects = AppDomain.CurrentDomain.Load(new AssemblyName(assemblyNa...

Can't access method in same assembly as my T4 template.

I've tried to resolve assembly reference pains in my T4 template by moving code out into a helper method in the same assembly and namespace as my template, but T4 refuses to find my helper method. The helper method: namespace PocoGenerator { public class EntityReflector { public static IEnumerable<PropertyInfo> GetPrope...

Visual C++ 2010 compatibility with VC 2008

I am compiling a program with Visual C++ 2010 but I don't want everyone to have to download the redistributable package to run my programs. Most people that will be using my program already have the VC++ 2008 redistributable package though, so is there a way I can compile it with compatibility with VC 2008? Or is there a place I can down...

How to keep reference between two projects when making a template in Visual Studio 2010

I have a solution with 3 projects and i have a reference between two of the projects and a reference to a .dll from a project in all 3 projects. The project are in Silverlight. I want to make a multi-project template and when i create a new project from that template the references doesn't work anymore. It make the modification to the na...

How to locate a file in Solution Explorer in Visual Studio 2010?

I have a huge solution with multiple projects. Sometime I need to navigate to a file in Solution Explorer. Using the VS 2010 Navigate To feature I can open any file by name in Visual Studio 2010 but I want to be able to select the file in Solution Explorer as well? ...

Cannot install MSVS 2010 C# Express - Prerequisites x64 don't install

On Windows 7 64bit, have had the 2010 beta installed previously (first one if my memory serves me) http://i300.photobucket.com/albums/nn24/BlamBear93/MSVS2010csharpinstallerror.png What seems to happen is this: It installs the first thing it needs to fine, then it gets to this, the bar goes all the way up and then it prompts me to rebo...

Visual Studio IDE Customisation - Breakpoint string highlighting

I'm trying to make my IDE fonts and colours more visible, but I'm stuck on one last detail: the string highlighting for selected breakpoints. Given the following example: Session["mySessionVar"] = someValue; The text for "mySessionVar" - including the quote marks - has (in my case) yellow text on a bright pink background - almost imp...

Updating JScript intellisense hangs VS 2010

I have a web application and whenever I load it in VS 2010 RTM, the left hand corner of VS says "updating JScript intellisense" which never completes. When I click anywhere in the editor (becuase the solution has finished loading), I see a balloon on the right hand corner saying Visual studio is performing an internal operation...) and ...

WindowsXP VS2010 error code -2146232576 (0x80131700)

I'm trying to convert a large C++, C# project from VS2008 to Vs2010. I got an error "The program 'App.exe : Native' has exited with code -2146232576 (0x80131700)." may be somebody know a reason for this code. Thanks Faina ...

View the work flow in VS 2010

i want to view the functions being called one after the other when i click on some web page ... obviously i have the code running on my local machine.. i have used Visual studio 2010 for the development.... is there a tool to do that where i can see which function is calling the other in VS 2010???? Apart from using breakpoints .... ...

Using windbg from Visual Studio

Is it possible to use windbg commands like !locks and .loadby sos mscorwks from the Visual Studio command window (in a debug session)? I've noticed I can use eg k to print a stack trace, so I was wondering if there is some way to get access to the other commands. ...

Why are my WPF styles not shown in the designer?

I've created a WPF application using Visual Studio 2010, converted App.xaml to a Page and added a call to InitializeComponent in the constructor. I've then created a new window called "LoginWindow" and added the following to the App.xaml.cs: [STAThread] public static void Main() { var app = new App(); app.Run...

How to make a visual reuasable class in C#?(Visual Studio 2010)

i have this class for example: class labeledtext { private TextBox tb; private Label l; public labeledtext(Form frm) { tb = new TextBox(); l = new Label(); frm.Controls.Add(tb); frm.Controls.Add(l); } public void SetCaption(string cpt) { l.Text = cpt; } public s...

Missing Public Assemblies folder

Several articles and blogs I have read suggest placing assemblies I wish to make available to T4 in the Visual Studio Public Assemblies folder. This is supposed to be located at C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies, but I have no PublicAssemblies' folder there, onlyPrivateAssemblies. Creating...

Having MVC 2 with both VS 2008 and VS 2010

I had VS 2010, which gave me MVC 2 out of the box. Then, I installed VS 2008 Professional Edition. I wanted to do MVC 2 with VS 2008. I had to download MVC 2 for VS 2008 SP1, which I did. Now, when I try to install MVC 2 for VS 2008 SP1, it tells me that I already have MVC 2 installed in another location and I must remove that first. I ...

How to include external files in multi-project .vstemplate?

Hello, I'm creating a VS2010 multi project template and I'm trying to make add a file (.hgignore) to the solution (not into a project) from the vstemplate. I tried this but it doesn't work : < VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="ProjectGroup"> < TemplateData>...< /TemplateDa...

How can I automate placement of header text (copyright notice, etc) in C# files?

What is the best way to automatically place copyright notices, disclaimers, etc. in all of our C# files? Yes, we could copy & paste but is there a more automatic way? Any macros that would place them? Edit: This is for all new files only. We are not concerned about existing stuff as they will be updated as necessary on a case by case ba...

Using VS2005 assemblies in VS2010 projects

I have a number of assemblies which were built with VS2005 (.Net 2.0). I would like to reference them in a VS2010 project. Do they need to be rebuilt in VS2010 to execute in the .Net 4.0 framework or will they continue to execute in the .Net 2.0 Framework? ...

True Type Courier font

Is there a True Type version of the good ol' Courier (not Courier New!) font? AFAIK, VS 2010 doesn't support non-tt fonts anymore, but Courier New (and Consolas) is just not what I want to see every day. ...