visual-studio-2008

Unable to publish from VS 2008 to Windows 2008 using WebDAV

I'm trying to publish a web site from VS 2008 directly to a mapped folder on a Windows 2008 server. Some of the files publish OK (e.g. aspx files) but others don't (e.g. ascx, asmx, cs, config, sitemap, etc files). Also, some folders are created OK and others not (e.g. the bin folder can't be created). The message I get is (in this ca...

visual studio 2008 macro: write to output pane

In a Visual Studio macro, how do you write execution information on the output pane (i.e. the window that usually contains build output)? I'm using Visual Studio 2008, if that is relevant. Solution: I added the following subs to my macro project, I'm posting them here in case they could be useful. Private Sub Write(ByVal name As Strin...

How to document a ASP.net website ?

I have released a ASP.net website. How to document it ? Is there any tools available in VS2008? How it can be achieved ? Please help? ...

Integrating MSBuild into Visual Studio

I'm a solo developer running Visual Studio 2008 and looking into MSBuild to improve my build process. Almost all of the tutorials I've found so far have plenty of information about writing a build file. However I'm having a lot of trouble finding out how to integrate MSBuild into Visual Studio. Maybe MSBuild is only used with something ...

Visual Studio 2008 , Is there a way to embed a product version into MSI package.

I have a solution (sln file) file that contain several projects. The sln is referring to two projects : I have a csharp project that its output is an executable assembly , along with configuration file , this project has a product version defined which increase from time to time. I have a project that when i Build it , it create an MS...

Specify Web Service Reference Auto-Generated Entity base class

Question: Is it possible to (automatically) change the base class of auto-generated domain objects created through the Visual Studio 'Add Web Reference' functionality, without manually modifying References.cs? Background: When we add a reference to a web service (via the Visual Studio 'Add Web Reference' functionality), a number of clas...

VS2008 Project templates

Hi, I have created vs 2008 web application project. this project has image files which are excluded from the project. I made project template of the web application project and when I create a new project of the template, excluded files are not copied over. is it possible to have excluded files get copied over when you create a projec...

Visual Studio 2008 oddity with C++ and header files

Hi all, I have a large C++ project within a Visual Studio 2008 solution file, and everything is compiling and building correctly. So far so good. However, it is unable to find any header files when I attempt to open them directly from the IDE's code viewer window, even though the folder locations of those header files are enumerated in...

A VS 2008 code snippet doesn't get inserted fully

I have the Javascript one liner below as a code snippet in VS 2008 SP1. When I insert it in the code (C#) window, only 'var SelectedVal =' gets inserted, instead of the whole statement. Also.. is there a way to get the Insert Snippet to show up in the context menu when in aspx editor window? Code Snippet: var SelectedVal = $('#<%=DropD...

Visual Studio 2008 connection to Sql Server 2005

I have a Sql Server 2005 DB on Godaddy. I have Visual studio 2008 not express on my PC. I have tried to set the connection between VS2008 and SQLS2005 to start a project building the formns but it will not connect. I have entered the Hostname, Database name, initial file, username, and password but when I test the connect it fails. I...

How to manually force VS2008 Intellisense to search for controls in an assembly?

I have an assembly and a namespace registered as composite controls in web.config in . It takes awhile for VS2008 to search through the assembly for the controls. How do i force visual studio to automatically search for the controls? ...

Palm Pre and Visual Studio. Possible?

The development experience for the Palm Pre sucks, to say the least. At best you are working on JavaScript in Eclipse with the Aptana plugin. The intellisense you get is really, really dismal. You have to be looking at the documentation every 5 seconds. I was thinking, Visual Studio really excels at JavaScript and intellisense. Has ...

C#: How can I tell which side a collision has occured on?

I think the title is rather self explanatory but just to clarify I am trying to figure out how to tell which side the collision has occured on. For a bit more detail, I'm trying to make a maze-like game so I can't simply stop all movement upon a collision. Instead I need to be able to tell which side the collision has happened on so I c...

Global.asax template not available in Visual Studio

When I attempt to "add new item" to my web project (by right-clicking, add new item) - there is no template for it. What might the problem be? I'm using VS2008. Additional Info: When I right click on the solution and "Add", "New Web Site" - I have zero tempates to choose from. I have tried running devenv /installvstemplates and this t...

Possible to create an attribute that gets evaluated after instead of before?

I'm aware of writing custom attributes that decorate a method and get evaluated before the method executes, but is there a way to modify it so the attribute gets evaluated after the method gets executed? Theoretically (in pseudo-code): public void MyMethod() { Console.WriteLine("Hello World"); } [AttributeToExecuteAfter] Am I mi...

Is LINQ-to-SQL + SQLite.NET + Stored Procedures + VISUAL STUDIO 2008 possible?

Hi. So I want to retrieve data using stored procedures. Preferably via Linq2SQL. So I can do something like this (example): var productHistory = dbname.StoredProcedureMethod(value); foreach(var product in productHistory) { //stuff } This is something I'd like to be able to do in Visual Studio 2008 in .Net 3.5. It is possible wit...

Is there a way to run a batch file when opening Visual Studio or a project/solution?

I use SUBST to map a common drive for referencing some DLLs. I have been running a batch file in my startup folder to do the mapping, but I'd like to have the drive "gone" when I'm not working in Visual Studio. Is there a way to automatically run command line instructions when opening/closing Visual Studio and/or when opening a projec...

Visual Studio Missing "Open in blend" option

Am I missing something or does that "Open in blend" option in Visual Studio 2008 not exist anymore? I am using VS 2008 SP1 + Expression Studio 3.0. I can do it the other way around, from blend to visual studio, but not visual studio to blend. Cheers ...

what is a manifest for?

In VisualStudio I have this option for my project to embed a manifest... I have never had to deal with this before and I am curious what it is for ... ...

Go to Matching Brace in Visual Studio?

Is there a way in Visual Studio 2008 to go from a closing brace to it's opening brace? I've found a fair amount of stuff about highlighting the brace, but nothing about moving the cursor to it. ...