visual-studio

how to implement regions/code collapse in javascript

How can you implement regions a.k.a. code collapse for JavaScript in Visual Studio? If there are hundreds of lines in javascript, it'll be more understandable using code folding with regions as in vb/C#. #region My Code #endregion ...

RDLC will be broken when publishing a web site with Visual Studio...

Hi, I've a large web application solution in Visual Studio. This solution contains some RDLC (client report files) in its folders. Whenever I publish it using Visual Studio, all *.rdlc files breaks. Indeed they convert to files with 1 KB size. Why this happens and how can I fix it? ...

Visual Studio - how to get rid of output window?

I've just started using VS2005, mostly I've stuck to VS6 as up till now it did everything I wanted. I like to maximize the space available and remove clutter so I only want to see the source window and files-in-project list (oddly named "solution explorer" here). So when the output window appears, I want to be able to quickly remove it ...

Visual studio project/solution compilation with only .net SDK (without installed VS)

Is it possible? And if possible, is it possible to compile created in VS azure cloud project, having only .net35 and azure SDKs installed, also without VS? ...

See substring in debug watch

Is it possible to see a substring of a string when looking a string in the Watch window during a debugging session? ...

Are there any free alternatives to VisualSVN?

Are there any free alternatives to VisualSVN (a Visual Studio 2008 plugin for subversion control)? Visual Studio Express 2008 support would be great. ...

Unable to copy file to server on build. Access to path is denied.

I have a solution in Visual Studio that is comprised of 5 projects. The projects build to assemblies (.dll). I have the output path of each project set to \my-web-server\wwwroot\bin, which works fine on one project. In the properties for all of my projects, I have the output path set to the same directory, but when I try building all but...

How to improve code folding in Visual Studio?

I want some automatic code folding for if(),try() etc. It should be some code editor feature (like one in VS for methods, etc). If I have this: - public frmMain() | { | InitializeComponent(); | if (true) | { | try () | { | } | catch...

Virtual machine file access performance

My coding environment (Visual Studio) is in a virtual machine (Parallels on OS X). Which method of file access would be faster? Put the files on the VM's disk. (Can the VM manipulate files faster if it's all internal?) Put the files on the host machine. (Would file access be faster without the additional layer of abstraction?) For th...

WPF - Static Linking of DLLs

I have a WPF app that I want to send to others so they can use it. I have several 3rd party dlls that it uses. For ease of installation I would like to have one exe that just runs. Is there a way with WPF apps (and C#.NET in general) to say "Link in the DLL files"? (I am using visual Studio 2008 SP1.) ...

Missing Project Templates in Visual Studio (after reinstall)

I uninstalled VS2008 Pro and installed VS2008 Team Suite. Now I missing all the Windows Project types. Console, WinForm, and WPF. These projects are missing for C# and VB.NET. I choose Full install. I still have templates for Silverlight and MBUnit (I assume from Silverlight SDK and Gallio installs) Before I do a simple uninstall / re...

Need Some Advice on Asp.Net deployment

Currently, I'm maintaining an older ASP.NET website. In the solution, there exists 5 C# projects which build to assemblies as well as the development server's web directory. Normally, I do whatever work needs to be done (adding pages, making changes to existing projects, etc), build the projects (the current output path is my development...

Write to console and visual studios output?

In Winform Apps Console.WriteLine() writes to the IDE output tab. In a console app it writes to the console and not to the IDE output tab. For debugging reasons i find it easier if i can have i have a copy of the Console output (ATM i only use stdout) in my IDE. Is there an option to have Console.WriteLine() appear in both? I use visual...

How to start a process and then pause it immediately?

Dear All, I would like to know if there is any command or tool that can be used to start a process and then pause it immediately. I need this function so that I can have time to attach a debugger to it. I have tried visual studio's /debugexe feature, but the behavior of the program seemed changed. So I need to find other way to attach i...

.net 4.0 GAC can't refer

I have installed VS 2010 and builded a project and added the assembly in GAC 4.0. But How to refer this assembly in a application. I have created new application and going to add -> reference I couldn't find the assembly which i was installed. But its their if we seen thro' the physical path of the GAC. ...

"I'm busy please wait" window - no buttons.

I want to pop up a window to show that a program is busy with a particular time consuming task. But I don't want any buttons on it. I just want to pop it up, do the task, then remove it. I'm not sure what such a window is called and so don't know what to search for in MSDN etc. Is there some ready made API for this kind of thing or do I ...

Naming: solution, projects, namespaces and assemblies

Hello everyone. I'm working on naming guidelines for solutions, projects, their default namespaces and asseblies (Visual Sudio). Now it looks like that: For example, we have a company named "Company" and a project named "Project". The project has business logic in separate dll, UI (WPF/WinForms) and a web part. There are names of things...

Does anyone know an addin or macro to allow nesting files (dependentupon) from within VS?

As per this thread: http://social.msdn.microsoft.com/forums/en-US/csharpide/thread/f33c32df-14e4-4636-8c8e-c96f66666cb5/ "I can modify a C# project using notepad to make a file DependentUpon another file, but is there a way to do this in the IDE?" All the links in the thread are dead. Anyone know something similar that can be used? ...

How to convert Visual Studio 2005/2008 project to Visual Studio 6

Is there any tool to convert Visual Studio 2005/2008 project to Visual Studio 6? Thanks. ...

Visual Studio different colour for constants, function names etc. ?

I know that you can change text editor colours but all the things I want to customized in one group "Identifiers". Is there a way to break that group into "Variables","Constants","Functions" and things like that so I can customize colours for those things separately? ...