visual-studio

Very long build time in Visual Studio.

I've a solution with 15 projects (14 class libraries and one web application). Each class library has corresponding test project (i.e. if I have MyApp.Services project there exists MyApp.Services.Tests -- using NUnit). Everything is written in VB.NET. The problem is that when VS tries to compile any of *.Tests project it stops responding...

ASP.NET MVC RequireHttps in Production Only

I want to use the RequireHttpsAttribute to prevent unsecured HTTP requests from being sent to an action method. C# [RequireHttps] //apply to all actions in controller public class SomeController { [RequireHttps] //apply to this action only public ActionResult SomeAction() { ... } } VB <RequireHttps()> _ Publ...

LINQ to XSD in Visual Studio 2010 Beta2

I've been looking around and I was wondering if this is available in VS10 beta2. So far all I've seen is the Linq to XSD alpha 0.2 preview that works for VS 2008 ...

Visual Studio 2008 Css 3 support

Hello, Visual Studio 2008 supports CSS 1.0, 2.0 and 2.1 only. If I try to add sth. like text-shadow property to a class then it is outlined as invalid. Is there a Css definition or something that I can download and make vs recognize those new properties? ...

how to see stacktrace of.net application

Hi, I have a .net Windows application in the production that has no access to Visual Studio(standard edition), and the only thing they can install is the express edition, which does not have the Just-In-Time Debugging option (the one which has debug button when it crashes). So I was just wondering if there is a window application debug...

Trouble with Visual Studio --> Localhost --> Web Deployment Tool

I am looking to deploy an ASP.NET MVC application using the Web Deployment Tool along the lines of this post. The way I've gotten that to work is by getting everything first working on localhost. But there's one catch. The way I've gotten things to run on local IIS is via the Visual Studio web tab, which requires setting up a Virtual ...

Measuring total solution build time in Visual Studio

Does any know if there is any native mechanism to report on the total solution build time in Visual Studio 2008? You can change the build verbosity to report build times per project as discussed here or report total build time from msbuild but I’d like to see this in the IDE across an entire solution containing many projects. Short of c...

Remote Debugging Fail - No suitable logon session

Receive this error message: Error while trying to run project: Unable to start debugging. Unable to start program "D:\xxx.exe". There appears to be no suitable logon session on the server. Please verify that you are logged on to the server through Terminal Services or that someone is logged into the server locally. This is the 1st ti...

'The report you requested requires further information' error using SqlDataSource with Crystal Reports

I have followed the Microsoft tutorial here to create a Crystal Report (with v12.0) within Visual Studio and attach it to a web form using a CrystalReportViewer, CrystalReportSource and SqlDataSource as I wish it to read data from my SQL Server instance. The report will load fine once (this appears to be snapshot data though saved embed...

Why is there a pdb file in my Release directory?

When I build a release version of a project in Visual Studio 2008, it creates a .pdb file, e.g. for a simple WPF project it generates a .exe and .pdb file. I've always understood .pdb files to be for debugging, so I would expect them to be in the Debug folder but not the Release folder. And looking around at other StackOverflow questio...

Can we install only MTLM for certain machines in the team?

Is there a way, where in some testers install only Microsoft Test and Lab Manager (MTLM) instead of installing the whole of VSTS 2010? ...

How to add a debug test item to the visual studio context menu?

When i right click the menu when on a Test Class i want be able to Debug Tests as well. Debug Tests is not in the default list. Does anyone know where i can find the options to set this? ...

How to set Visual Studio to Publish pdf files

Is there a way to set visual studio to publish all pdf files? I know that you can set each indivdual pdf file in a project with the "Copy to Outpub Directory" property. But that means doing the same thing 100's of times for my current project, is there a way to change a global setting to do the same thing? ...

No templates available when creating a new project in Visual Studio

"No template information found. See the application log in Event Viewer for more details. To open Event Viewer, click Start, click Control Panel, double-click Administrative Tools, and then double-click Event Viewer." That's the error message I get when I try to create a new project or solution. How can this be resolved? ...

Inspecting &x in debugger (C#)

Hi, Doing this in a console program: object x = new string(new char[0]); If one set a breakpoint rigt after x's assignment and bring up the quick watch window, what is the debugger displaying for &x? I was expecting x's address but it looks like I'm wrong? EDIT: I'm asking this because of another thread, which was pointing out tha...

Adding libraries to Visual Studio problem

Can someone link me a good guide for using libraries in a c or c++ project? Right now I'm trying to add OpenCV to a newly created project. I've added all the directories I can think of in "Project and Solutions -> VC++ Directories" and to make sure I've dragged and dropped all the .lib and .dll files into the project. The project buil...

Visual Studio 2008 and 2010 on one machine

Possible Duplicate: Will installing Visual Studio 2010 Beta side by side with VS2008 cause problems? Hi, Do you have any experience in having two different visuals(2008 and 2010) on one computer? I'm not sure if there wont be any problems with framework 4? I still want to develop some apps using 3.5 framework and vs 2008 Thanks...

Destruction of singleton in DLL

I’m trying to create a simple Win32 DLL. As interface between DLL and EXE I use C functions, but inside of DLL i use C++ singleton object. Following is an example of my DLL implementation: // MyDLLInterface.cpp file -------------------- #include "stdafx.h" #include <memory> #include "MyDLLInterface.h" class MySingleton { friend ...

Binding time to a textbox

I am using a Masked Editor which is great and simple to use, but I was wondering. Is there a way to bind the time to a textbox that has a masked editor and cause the AM or PM to show up? I know if you type an A or P AM and PM will show up, but how to you get it to appear to a bound textbox of time? <asp:TextBox ID="txttime" runat="serv...

How to undo Visual Studio's obsession with recreating the .designer.cs file of my DBML?

This is driving me nuts. I think it is because of some connection string mismatching across the app (using MVC) but Visual Studio constantly takes my .designer.cs file and recreates it adding a '1' at the end (or 2 if it already did this before argh!). My question is two-fold: Is there a way to stop VS from doing this? But more important...