visual-studio-2008

Why is my 64-bit C++ app crashing?

I have written a really small 64-bit application that crashes on clean installations of Windows Vista x64. It runs smoothly on my development machine (Windows 7 64-bit), which has Visual Studio 2008 installed. The 64-bit C++ application (unmanaged) is started by a 32-bit .NET application, and crashes immediately afterwards with an acces...

Exclude output referenced (DLLs) of other projects from project (VSS question)

This has to do with source control, I'm using VSS and the Visual Studio 2008 plugin. When the DLL of a referenced project gets included in a project (and checked into VSS), on the next build it will fail because those files aren't checked out as part of the build process and will be read only. I could exclude the entire bin folder and a...

How do you get a #if conditional to work when unit testing?

this is what I would like to be able to do. /// <summary> /// Gets the session factory. /// </summary> /// <value>The session factory.</value> public ISessionFactory SessionFactory { get { if (_sessionFactory == null) { #if(NUNIT) ...

VSTS DB GDR - Why are references unresolved within the same database?

I am playing around with the Visual Studio Team Suite Database Edition GDR, and I've imported several of our databases. I have literally thousands of warnings, most of which are unresolved references. I understand when we don't have SchemaName.dbo.TableName for external references, but why would there be warnings (even errors) when the...

Is there away to have vs2008 collapse nested classes?

I'd like to be able to collapse (with the default chord ctrl+m, ctrl+o) the following class Foo { string Test { get; set; } string Test2 { get; set; } class Bar { string Test3 { get; set; } string Test4 { get; set; } } } To class Foo { string Test { get; set; } string Test2 { get; set; } ...

Visual Studio 2008 Debugger Has Gone South...

Dell Dimension 5621 - Win XP SP2 VS Studio 6.0 & 2008. We support ASP pages. Usually I have had no problems using Visual Studio 2008 debugger with ASP pages from VStudio 6.0. In fact, up until last week, worked great. I was actually commenting to boss week ago wish that debugger had been around when VS 6.0 came out 10 years or so ago. ...

how to add the namespace automatically on every new Page, Control added To a WebSite in VS2008?

how to add the namespace automatically on every new Page, Control added To a WebSite in VS2008? when i add a new page the code behind looks like this public partial class MyNewPage : System.Web.UI.Page { } i just want the page wrapped into a namespace as below: namespace Project.Web { public partial class MyNewPa...

Vertical line limiter in VS 2008?

I'm sure I could google this and it's probably on SO already, but I can't even figure out what it's called. Is there an option in Visual Studio 2008 to activate that vertical dotted line that shows up x amount of spaces (normally defaults to 80) as a guide as to how long your lines of code should be? ...

Adding Existing Form to C++/CLI WinForms Project

I have two C++/CLI projects A and B in separate solutions. I use A for experiments/testing and move the tested code to B once I am finished testing. However, I find that on adding a windows forms class (header, cpp and resx) to project B, I am no longer able to use the visual forms designer of the IDE. How do I enable that? ...

Visual Studio 2008 : Turn off css class verification

Is there a way to stop Visual Studio 2008 from checking whether css classes exist when editing pages and user controls? It seems ridiculous to put dummy stylesheets on every single user control. ...

asp.net 3.5 Am I "Getting" this?

Hi, I am learning ASP.NET 3.5 & C#, using Visual Studio 2008. Most of the stuff I learn is through the MSDN. I am trying to develop a web page that will allow a user to create a character for use in an RPG game. The user should be able to allocate attributes, buy items, etc. When the user is done the site will format a printable characte...

How to profile one library solution with Visual Studio 2008 Profiler Tool(s)?

I have read and practiced the MSDN's Profiler Tutorial. But I couldn't find a way to profile a library solution (the button "Launch with profiling" is disabled for libraries). The only solution I could think of so far is to create an executable project just for profiling purposes. I have already written unit tests for my library, using...

Visual Studio Content Installer (VS2008) for .NET Compact Framework v3.5

I have two questions: Can I use Visual Studio Content Installer for Visual Studio 2008 to install .NET Compact Framework custom controls in Toolbox? If answer to question 1 is "Yes", what will be FileContentType value in .vscontent file for control.asmmeta.dll file and control.designer.dll? Do I have to be careful about any other infor...

How do I get intellisense for WCF Ajax Services?

I've finally got Intellisense working for JQuery by applying patch KB958502 to Visual Studio 2008 and including this line: /// <reference path="JQuery\jquery-1.3.2.js"/> at the top of my .js files. Now I'm trying to figure out how to get JavaScript intellisense for the client proxies generated by the ScriptManager's ScriptReference e...

Alternative Asp.net designer/IDE?

Are there alternatives to Visual Studio 2008/Visual Web Developer Express for developing ASP.Net applications? ...

Custom Tab Control not displaying in Visual Studio Form Design View

Hi, So I have an existing project with a custom tab control nested within panels and splitters etc. Now I need to add something to one of the pages of this tab control through the design view. However, when I view the form in question, the tab control is nowhere to be seen (and not in the drop down of current controls on the page). T...

DataMember property [ObjectName] cannot be found on the DataSource

I have a business object, which is a composite of child objects. I am using databinding in Visual Studio 2008 to bind to controls on a Windows form. But I am getting the above error in the InitializeComponent method of the form. Lets say I have an object called ParentObject which contains a generic list, ChildListObject. The ParentObj...

How do I bind a tree control to a data source in VB .NET?

Edit: Duplicate I'm new to .NET, and I've taken on a small work project, converting an existing VB6 product to a current version of VB (its either that or learning VB6!). This product is an internal desktop application (not web-based). I need to create a new tree view, that is linked to a particular table. Each row in the table ha...

Command-line to "deploy" ASP.NET MVC project

I am using Visual Studio Team Suites to develop a ASP.NET MVC project. I can deploy the web app to my dev machine using the "deploy" item from IS. Is there a command-line tool to do this task? What I am trying to do is to setup a continuous integration server (using TeamCity Pro), so that whenever I checkin new code, I will get a new bui...

Slow debugging issue in Visual Studio

Hello everyone, In my Visual Studio, even I just wrote a single line of return in a C# console application, it will take me a minute after pressing F5 to execute the actual code (I mean the time it takes to stop on the single return statement after pressing F5 -- I set a breakpoint on return statement in Main function). I am wondering w...