visual-studio

T4 not working in Visual Studio 2008

Hi, I have to machines setup to run Visual Studio 2008 (SP1) & NET Framework 3.5 (SP1). If I create a .tt file in a console appliaction on machine #1 it automatically creates the sub .cs file for me, however if I do the exact same on machine #2 then no sub .cs file is created. I have tried toggeling the "Show All Files" option, restart...

Uninstall Windows Service from Deployment package

Hi, I know that you can install your Windows Service via the VS deployment system which I've done. But how do you deploy updates after that? Each time I deploy a new version, it says that the service already exists and exits. I tried to add a little DOS CMD file with the following: net stop [ServiceName] sc delete [ServiceName] It wo...

.NET Install Package Sometimes Not Completely Removing Previous Versions

I distribute my application using a VS2008 install package, which normally works great. When I create new versions of the app, I go in and increment the Version property on the install package and verify the RemovePreviousVersions property is set to True. This works just fine most of the time - I just run the install package for the ne...

Service.Controller Status / Polling

I'm having a problem with a administrative app I'm working on. I'm build an interface for stopping, starting and querying various services across 40 or so servers. I'm looking at service.controller and have been successful in stopping and starting various services with button events but now I'm trying to figure out a way to return th...

Windows Forms Error: "A strongly-named assembly is required"

I have a Windows forms project (VS 2005, .net 2.0). The solution has references to 9 projects. Everything works and compiles fine on one of my computers. When I move it to a second computer, 8 out of the 9 project compile with no problem. When I try to compile the 9th project (the main project for the application - produces the .exe file...

How to make Visual Studio's Settings view show lists better?

Currently , Visual Studio (2005 and 2008) can handle strings, numbers, connections, color, etc in their designer view a String collection can also be entered there. however, the default view shows the XML source, instead of the strings (when editing it, it is displayed OK) is there a way to have the string list display correctly? ...

How to Export/Import Toolbars in Visual Studio

I export my settings in Visual Studio and if I ever move to a new machine or have problems, I use those backed up settings to restore Visual Studio to the way I like it. It also allows me to maintain a consistent development environment between the various machines that I use. This works great for keybindings, syntax highlighting, user ...

XML - Data At Root Level is Invalid

I have an XSD file that is encoded in UTF-8, and any text editor I run it through doesn't show any character at the beginning of the file, but when I pull it up in Visual Studio's debugger, I clearly see an empty box in front of the file. I also get the error: Data at the root level is invalid. Line 1, position 1. Anyone know w...

Is the jQuery intellisense plugin available for Visual Studio now?

Is the jQuery intellisense plugin available for Visual Studio now? ...

Contextual code generation in Visual C# 2008?

I type ArrayList memberNames = new ArrayList() { "Jim", "John", "George" }; and Visual Studio tells me "ArrayList" cannot be found so I have to manually go to the top of the file and type using System.Collections; Is there a way to get Visual Studio to do this automatically? In FlashDevelop, for instance, you press CTRL-SHIFT-1 a...

Opening a VS 2003 C++ project in VS 2008

Found some old code, circa VS 2003. Now I have just VS 2008 (SP1) installed. When I try opening the *.sln file, it tries converting the projects. The report notifies me it was done successfully, but the solution is empty, marked with "project file was unloaded". VS 2008 doesn't even include opening a *.vcproj file. Does anyone have any ...

Solution with 2 projects - sharing Properties.Resources

In Visual C# 2008, I have a solution with two projects. First project contains Form1 that displays one Label with Text set to a string from Properties.Resources, like this: label1.Text = Properties.Resources.MY_TEXT; In the second project, I "Add as link" this Form1 from the first project. I want to show this form, so it displays the...

What's Your Biggest Visual Studio 2008 Annoyance?

I love Visual Studio about 90% of the time, but that last 10% it is such a PITA it makes me want to launch my monitor off the desk. My latest annoyances: It won't remember my toolbar settings. I don't want any toolbars, ever. Quit popping open the CSS editor or XML editor or text editor everytime I open a file. Doesn't remember which ...

Why do so few .NET languages integrate into Visual Studio (specifically VS2008)?

The "core" .NET languages are integrated into VS2008 - C#, VB.NET, and C++. I'm not sure about current support for J# and JScript. But there are a number of other .NET languages out there - A#, Boo, Oxygene, F#, IronLisp/IronScheme, IronPython, IronRuby, Nemerle, Phalanger, P#, PowerShell, and more. Of these, I have only found VS suppor...

Why Isn't My C Code Being Compiled To An EXE

I'm just starting out writing trying to write a simple program in C and I am using Visual Studios to do so. I heard that it does compile C as well as C++. And I know that it does because it says it compiles. The only problem is that when I go to the output directory, there isn't a .exe file in the directory! It has the following: Build...

MSVCR90.DLL was not found.

I know a question like this was already asked, but the situation is a little different, and all the answers on that problem didn't work for me. I'm trying to compile some C code in VS2008 and it doesn't create an exe. Also, when I try to run it with f5, I get: This application has failed to start because MSVCR90.DLL was not found....

Project dependency diagram in Visio

I'm looking for a tool that will generate an assembly/project dependency diagram in Visio (or as close as possible) to assist me with breaking up some of our system into more manageable trunks. The ability to include/exclude non-project dependencies is a must (i.e. include/exclude System. assemblies). ...

Is there a way to specify outlining defaults in Visual Studio so that a file opens up with members collapsed by default?

What I would like to do is have VS2008, when I open a code file, collapse all members of the classes/interfaces in the file by default (including, crucially, any XML documentation and comments). I do not want to use regions, at all. I would also like to be able to use the ctrl+m, ctrl+l chord to toggle all member outlining (for example...

How can I fix Visual Studio 2005 unresponsiveness?

My VS 2005 goes unresponsive all the time. I have tried all of the optimization tricks that have been listed on StackOverflow. I am running with Resharper 4.1. (not sure if that could cause this). What other ways could I try to isolate the root issue here? Is it possible upgrading to VS 2008 might help me? More details: - scrolling u...

Is there a GhostDoc like plug-in for CodeRush or ReSharper?

I have noticed that GhostDoc hasn't been updated in a long while. So I am curious if there is a plug-in for Resharper or CodeRush that will accomplish the same thing? Or even if this type of functionality is built in to one of the tools that would be great too. ...