visual-studio

Run Custom Tool for entire solution

Is there a way to 'Run Custom Tool' for an entire solution? Why? The custom tool is under development and when changes are made I need to refresh all the items that use it to make sure nothing breaks. ...

Resharper Power toy Zen Coding

I have tried Resharper Power toy Zen Coding and found it can only generate code in one line, can it generate formatted code. for example i type in ul>li*3 it generate: <ul><li></li><li></li><li></li></ul> i want it format to: <ul> <li></li> <li></li> <li></li> </ul> ...

Place DLLs in GAC on Solution Build in Debug

We have a couple of DLLs that need to be put in the GAC at compile time only in Debug mode as this is what developers use locally. Release mode will be the Continuous Integration server build and we will not want to put any dlls in the GAC. We used to do something similar with post build events on a project, but if a post build event ...

How can I create a Visual Studio Setup Project MSI that can be installed unattended via AD Group Policy?

if i want to install a MSI, created by Visual Studio 2005, via Active Directory Group Policy: What requirements must be met by the Setup Project? How can I specify the installation path? Is this a part of the Group Policy setting? Or do I have to create a special "silent install" version of the MSI? Thanks! ...

Change the Target Framework for all my projects in a Visual Studio 2008 to 3.5

I have a just converted a Visual Studio project from 2005 to 2008 to take advantage of the .NET 3.5 Framework features. My solution contains approximately 80 projects and I want to set the Target Framework to .NET Framework 3.5 for all of them. Is there a way I can do this without manually going in and changing them one-by-one in Propert...

Getting Web Site Name from Web Project Setup

I'm creating a setup project for WCF net-tcp service. One thing I came across is that I need to change "Web Site->Manage Application->Advanced settings->Enabled Protocols". It can be also done using command line: %windir%\system32\inetsrv\appcmd.exe set app "[Web Site Name]/[Applicaiton Name]" /enabledProtocols:http,net.tcp The proble...

VS 2008 MSI Installer: Context.Parameters["TARGETSITE"] empty when repairing

Hey folks, i created a web setup project in vs 2008 and added some custom actions. While installing i get the default forms (apppool, appname, website), some pre-defined custom forms and some selfmade custom forms. Now while installation i add some data in the registry. I have only one problem: TARGETSITE property. This property is fil...

Permanent node in DSL explorer

In my custom DSL tool I want a node in its Explorer which cannot be removed. Other than that, I want it to be like a regular node. Basically what I want is a node like the Xml Serialization Behavior in the DSL Explorer: Through using Reflector on the XmlSerializationDefinitionSerializer class in the Microsoft.VisualStudio.Modeling.Sdk...

C# XmlTextWriter class and VisualStudio

Hi, I'm trying to use the XmlTextWriter class in C# but it only works if I give the complete path to the file (as in "C:\file.xml"). If I try to use relative path (as in "file.xml"), it creates the file (in the same folder that contais the cs file) but it doesn't show any contents. Is there any property in the project tree in VS I have t...

Why does ReSharper's "Rename" only sometimes display a prompt?

When I rename a variable using ReSharper 4.5 (VS2008), the rename is performed inline (I specify the new variable name in the editor itself) or via a prompt (a popup window where I specify the new variable name). I'm hoping someone can tell me what determines which approach is used? ...

C# class does not implement inherited abstract member

Hi, I am sorry if I am asking something stupid but I am completely a newbie in C# and ASP.NET. I am having an error in my code and I don't understand it. I am working on Visual Studio 2008. In this line of code: public class SQLFAQProvider : DBFAQProvider I am getting this error: Moby.Commerce.DataAccess.FAQ.SQLFAQProvider'does ...

How to enable Line Number Shown in Visual Studio Build Output?

Running Visual Studio 2008 express, notice that the output windows there it doesn't show the number such as: (example) while compiling, (even though running a project with multiple solution inside) 1 > adsfgafkgja;l 1 > asdfafas 1 > asdfaf ... 2 > asdfasf 2 > safas trid a fresh installation, wonder why it isn't displaying the line num...

Can I open VS 2008 Project in VS 2010 Beta

I was hoping there would an option somewhere that would just let me open my VS 2008 projects and continue working in .Net 3.5 - while using some of the neat new VS UI enhancements. ...

Visual Studio and Windbg: which one is better to debug large scale managed application

Visual Studio seems is very native to debug the C# project but when the scale is up seems it is not very convenient to debug, for example when the project contains some code that is calling in/out of native code... I wanna to know if there is any evidence that windbg is better over VS.Net when we are debugging large/serious project. An...

Visual Assist X: curly braces are moving during refactoring

I use Visual Assist X, build from 05.01.2009, but the same problem occurred in the previous releases as well. (I run it on MSVS 2005) When I do some refactoring (like extracting a method), everything's fine, but all the curly braces move forward. For example, before refactoring the code looked like this: while (expr) { doSmth(); } ...

Detecting recursive properties

Does anyone know if there is some option in VS2010 or some third party tool that I can use to detect recursive properties such as: private string name; public string Name { get{ return this.Name; } } The above is obviously an error, but the compiler offers no warnings. I can appreciate that, in general, recursive methods are perf...

Visual Studio Error: You are not logged into Windows Live Messenger

Does anyone know why visual studio does this? ...

IronPython: how could I make VS2008 create IronPython project?

Hi folks: As title described, what things I need to install to enable VS2008 to create IronPython project? Thanks. ...

VS 2010 Editor Behavior

Using Beta 2 of Visual Studio 2010. I'm using C# and have always enabled Virtual Space. A notable difference in this version between past versions is that when I'm at the beginning of a line in the .cs file and I hit the left arrow, the cursor jumps to the line above. Previous versions of Visual Studio would perform no action (i.e. st...

Redgate Visual Studio addin

Hi there, I realise that this may be subjective (and would appreciate not being voted down on this one XD), but I would like some advice from other developers out there who have used RedGate's .Net productivity addins - ANTS Performance Profiler Pro, ANTS Memory Profiler, and Excpetion Hunter. Its quite pricey, and basically, does anyo...