visual-studio-2008

VS 2008 Intellisense hanging on right click

I have a fairly large C++ solution in Visual Studio 2008 SP1. When I RIGHT CLICK, I see the updating intellisense in the status bar and the whole studio freezes for several minutes. Right click worked fine in 2005. Any workarounds? ...

Don't publish particular folder in ASP.NET

Is it possible to exclude a folder in a web project from being published? We've got some documentation and scripts that included in a particular project folder, and are added to the project, but when I do a VS publish, I don't want them to go up to the production server. I know they shouldn't be in the project, but I thought I'd find a ...

Include Custom DLL's in Visual Studio Project Template

Good Day, I am trying to create a project template in Visual Studio 2008 and have had success in doing so. Is it possible to include some custom assemblies in my project template so I don't have to add a reference to these assemblies once I instantiate a new project? If this is possible, how would I go about do this? TIA, coson ...

Visual Studio 2008 "Add Service Reference" for Sharepoint: 401 and port numbers

I'm trying to "Add Service Reference" to SharePoint web services (e.g., "http://cogent-moss/_vti_bin/Webs.asmx"), but am having trouble. I seem to always get this error: The document at the url http://cogent-moss/_vti_bin/Webs.asmx was not recognized as a known document type. The error message from each known type may help y...

Can I send error from console application that is called by post-build event in Visual Studio?

Because I set post-build event in ASP.net Web Application project to run the following command line. start $(SolutionDir)[PathToMyApplicationInSameSolution] [some parameter] So I need to send some error from console application to Visual Studio for showing Build Error(Like Visual Studio Build Error) Thanks ...

Differences between 'Add web site/solution to source control...'

I have opened a website website hosted on my workstation in Visual Studio 2008 and saved it as solution. I now want to add this to source contol and I am being given the option to either 'Add solution to source control...' or 'Add web site to source control...'. This solution needs to be accessed, worked on and run locally by several ot...

How do I debug a single .cpp file in Visual Studio?

Is there any way to debug a single file in Visual Studio.NET? I'm still a noob with C++, but I want to start learning how to get comfortable with the debugger, and as of right now I am writing really small files. It seems if there is only one source file, it won't let me debug, but the moment I add another one, I can. I am using VS.net...

Is there a way to create automatically create properties from a SQL Server database?

Using Visual Studio .NET 2008 or 2005, is there a way to automatically generate properties for each column in an SQL Server database table? I am assuming other code-generation software exists that will do this. I know with Visio I can connect to my database and it will generate diagrams by table, this would be similar to that. ...

Visual Studio 2008 sp1 classic asp Intellisense and Outlining not functioning

As the topic suggests I've got VS 2008 with sp1 installed and am not receiving full Intellisense or ANY outlining capabilities when editing classic asp pages. My coworker is also using VS2008sp1 and has outlining working correctly (but he has no idea why) I've made a screen, you can find here Classic asp outlining issue screen shot 1 H...

Clicking 'Choose items' on the toolbox crashes Visual Studio 2008

Hey people, Ive searched high and low on this one. I don't have PowerCommands installed as many of the solutions say to remove it. Any other ideas on how to fix this issue? Im running Vista Home 64bit, VS 2008 SP1 Thanks ...

Is it possible to auto-generate my Linq2Sql DBML via a script?

I use Linq2Sql and am tired of recreating the dbml everytime the database changes. Is it possible to script the creation of my model given that I want ALL tables and ALL procs? Ideally it would be part of the build process or a custom tool. A simple "refresh from schema" button would be fine too, but from all I can tell, there is no s...

TSD3025: The following cross database dependencies could not be verified

I have created a VSTS database project by importing an existing database schema. Upon importing I get a slew of (thousands) of TSD3025 warnings on the project that aren't clear as to how I might resolve them. I don't get what it means by cross-database since the objects in question are all contained within the same database. Exam...

Building an MSBuild 2.0 project from 3.5

I have a VS 2005/MSBuild 2.0 project (let's call it "Project A") that I must keep in VS 2005 (it uses a third-party VS 2005 Designer.) Project A is referenced by one of the projects in my new VS 2008 solution (we'll call them "Project C" and "Solution B" respectively.) Ideally, I'd like to chain the building of Project A into the build...

Creating a custom control...Cannot create a 'text' property?

Solution I did some googling and found this forum post, and here is what I needed to do: Imports System.ComponentModel <EditorBrowsable(EditorBrowsableState.Always), Browsable(True), Bindable(True), _ DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)> _ Overrides Property Text() As String Get Return ...

Using Extension Methods with .NET Framework 2.0

Under Visual Studio 2008 Can I create an Extension Method to work under a .NET Framework 2.0 project? ...

C to Fortran calling problem

Using Visual Studio 9 on Windows 64 with Intel Fortran 10.1 I have a C function calling Fortran, passing a literal string "xxxxxx" (not null terminated) and the hidden passed length arg 6. Fortran gets it right since the debugger recognizes it's a character(6) var and has the correct string, but when I try to assign another Fortran cha...

VS2008: Changing Default Right-to-Left Tab Ordering of Documents in IDE

Hello, In VisualStudio 2008, if I open, from the solution explorer, the source files A.cs, B.cs and then C.cs, the tabs in the document area will be C, B, A. To get the tabs ordered A, B, C, I'd have to open them in this order: C, B, A. Is there a way to have new document tabs appear to the right of existing tabs? (Like the way it u...

Clickonce certificate expired - not signing manifest almost solved it ...

I have a distributed app using ClickOnce. I went to do an update and got an error about the certificate expiring. I noticed on the signing tab that I could uncheck signing the ClickOnce manifests. I did this and successfully published my app. Worked fine for the first 7 users - but just had a user that is getting the dreaded: Manif...

Unit testing data access layer using Unity Framework

I am getting close to finish my database, so far, 16 tables so far, and I need to unit test my DAO layer for this ASP.NET project. I am using the Unity Framework to decouple the layers, so I expect that I should be able to assign the DAO layer to my unit tests, which will be testing against the interfaces since the concrete classes are ...

How to avoid dots in VS2008

Accidentally I pressed some keys while writing C# code in VS2008 and space characters replaced by . and enter key replaced by some square boxes, now how do I reset the editor ...