visual-studio

Visual Studio keeps crashing

Hi there, Visual studio team system 2008 keeps crashing on me. Sometimes it just freezes, or certain parts of the UI get messed up or a weird popup box saying something about unable to load parameters or saying something else about memory or any other number of things. it usually happens when I do a "complex" task like go into debug mo...

Visual Studio compiles assemblies I want to be content

I have duplicate assemblies with different versions. I cannot recompile projects that use old versions of the assembly, so I manually copy the assemblies into a sub directory of my bin folder, then update the web.config with assemblybinding's. This works fine, but now I am trying to add the old assemblies to the visual studio project so...

Best practices for database development in Visual Studio 2010?

I'm starting a new, large server based project using .Net 4 and Visual Studio 2010. I've done this many times before (with various versions), but I've never found a good way to maintain my database. There's been a lot of new technologies in the past few years to make this easier. However, there is one thing I haven't found: A technology/...

Unable to add an item inline via a search screen

I'm using Microsoft Visual Studio Lightswitch Beta 1 to create a simple application. I'm trying to create a search screen for a table that contains an Int32 filed called ID and a String field called Name. If I customize my search screen and try to add an Add... button to my command bar of the datagrid, when I go to use the search scree...

How to get System.Data.EntityClient provider in Enterprise Library Configuration?

How could I get System.Data.EntityClient in Enterprise Library Configuration dropdown list for DataAccess? I want create connectionstring like below connectionString="metadata=res://*/MyNet.csdl|res://*/MyNet.ssdl|res://*/ MyNet.msl;provider=System.Data.SqlClient;provider connection string=" Data Source=localhost;Initial Catalog=M...

How to play sound after running unit tests in Visual Studio

When I am developing on my local machine, I want Visual Studio to play a happy sound when I run my unit tests and they pass and a sad sound when one fails and a really sad one when more than one fails. How do I do this? I assume that I need to write a macro, but I can't find any environment events that relate to unit tests. I am using V...

How does debugging work in Visual Studio?

I can attach Visual Studio to an executable, and then my breakpoints get called. What's going on under the hood? What mechanism allows my breakpoints to fire? ...

How do special folders in projects work?

In regards to visual studio extensions how do things like References, Properties, App_Code, App_Data work? I am looking to create a special folder that is in every .NET project that has some custom context menus. I cant seem to find any information on how to do this? ...

How can i convert my Sql codes to Linq?

i try to convert my SQL code to linq but i cannot: Alter PROCEDURE sp_MatchCTallyToTask AS BEGIN select * from Task where MPDReference in( select MPDReference from Task intersect select ENG_CUSTOMERTALLY_CUSTOMERTASKNUMBER from dbo.ENG_CUSTOMERTALLY) END GO public List<Task> TaskList() { return engCtx.Tasks...

Visual Studio not rebuilding after content file change

I have a unit test project which contains a few XML files for data driven tests. These files are set to Build Action Content and Copy if newer or Copy always. For the most part, this works fine. However, when I change one of the data files without changing any code, Visual Studio will not trigger a build action at all, and no XML files ...

How to change Visual Studio 2010 context menu size

I have enough vertical spaces up and down but Visual Studio context menu restricts context menu and made itself scrollable. Is there a configuration option to change the behavior of how context menu is displayed? Goal: I'd like to display all items without having to scroll. ...

Add a link to an existing item during project creation

Hi, I've created a custom VS template which uses an IWizard class to do some automatic actions when a user creates a project to set project properties and paths, I've managed to set some project properties like build path by saving the .csproj file with parameters inside $ signs and setting those parameters in the replacementDictionary, ...

When I run a unit test visual studio crashed

Hi there, When I am working with a VS 2008 Team System solution with a very large number of projects VS crashes on me all the time. Strange thing is that the other developers don't have the same problem and it has only been a problem for me the last couple of days. Don't know suddelny why i'm having this problem. When i run a unit tes...

When I run a unit test visual studio crashed

Hi there, When I am working with a VS 2008 Team System solution with a very large number of projects VS crashes on me all the time. Strange thing is that the other developers don't have the same problem and it has only been a problem for me the last couple of days. Don't know suddelny why i'm having this problem. When i run a unit tes...

Why use ReportView?

Reporting is pretty new to me. I see that VS provides some Reporting controls that provides a wizard to help creating the report. My question is, if I already have stored procedures that generate the report data, what is the difference between presenting it through a reportview or gridview? Is there obvious advantage that reportview cont...

Is it possible to prevent VS2010 killing the WebDev.WebServer process?

Since I've starting using VS 2010 I've noticed that whne I stop the debugger it also kills the development web server. In VS 2008 I would regularly work without the debugger attached. Is it possible to do this in 2010? ...

Is it possible to load mismatched symbols in Visual Studio?

I've got a Windows minidump (C code) and a corresponding exe file. Unfortunately, I don't have the exact matching .pdb files, but I do have .pdbs that contain the exact same code just built at a different time. In Windbg, I can use: .symopt+0x40 To tell it to load anything, even mismatched symbol files. This works great in this partic...

Why XSD created by Visual Studio is different from created by XSD.exe?

Running XSD.exe over a XML file, the resulting file is different from openning the XML in Visual Studio, clicking XML menu, Create Schema. Why? There are some kind of arguments for XSD.exe to accomplish that? ...

How do I share custom mobile Form Factors with other developers?

I know I can create custom Form Factors in Visual Studio, but how do I export them (not available in "Tools | Import and Export Settings")? If I set a WM form to use a custom Form Factor, save it in the repository, then someone else on the project gets that form from the repository it defaults back to "Windows Mobile 6 Classic". I know...

How do you view segment-offset memory addresses in the Visual Studio debugger?

I'm debugging some code from the disassembly (no source code is available), and there a number of instructions accessing data via the ds segment register, e.g. something like this: 66 3B 05 8A B1 43 00 cmp ax,word ptr ds:[43B18Ah] How do you get the Visual Studio debugger to tell you the offset of the ds segment register so th...