visual-studio-2008

MVC Views and the {

Duplicate: How do you get server blocks <% %> to format well in Visual Studio? Working with MVC Views, the Visual Studio editor keeps reformatting my code to look like this: <% foreach (var day in week.Days) { %> I'm trying to keep the MVC View as clean as possible, I'd rather it just look like: <% foreach (var day in w...

How do you get jQuery intellisense working if you've implemented a Url Helper extension to get the URL of your script files?

I have implemented the Url Helper extensions that Kazi Manzur has suggested in his MVC best practices guide here My Url Helper extension method to get a script file: public const string ScriptDir = "~/Assets/Scripts"; public static string Script(this UrlHelper helper, string fileName) { return helper.Content(string.Format("{0}/{1}"...

Debugging SQL Server 2005 Stored Procedures

I am using VS 2008 and trying to step into a stored procedure on a SQL Server 2005 database. I bring up Server Explorer, double-click on the procedure. It comes up in the text window. I set a break point in it, right click and select "Step into stored procedure". It comes back with "canceled by user". MSVSCOM.exe is running on the SQL Se...

How to create VS solution for existing c project so that VS picks new files automatically?

I would like to port an embedded application to x86 to create an emulator. We decided to give VS2008 a try but I'm not sure how to make vs to understand our existing directory structure: arch/ arch/hcs08 -- HAL implementation arch/include -- public interface of HAL arch/x86 -- here should goes the emulation layer os/ os/src -- sour...

How do you share Macros between Visual Studio 2008 Workspaces?

Kind of a newbie VS question : I'm not certain it's called a workspace in VS, but when I log in as a different user on my PC, I notice that VS acts as it is in another 'workspace' (cf. Eclipse) The custom codesnippets are managed seperately for example, and also the Macro's I write under one useraccount are not available under another ...

conditional assembly references based on solution

I have a rather large solution consisting of about 10 different projects. Until now we have shipped the entire solution as a whole to customers, but we are looking into shipping a stripped version of our software. To this end I would like to exclude several projects from the solution. I know that you can prevent projects from being buil...

Which characters are allowed in a VS project name?

Does anyone know which characters are allowed in a VS project name? Is there a reference somewhere? ...

f# ctp question

What does the ctp stand for/ do if I want to start playing with f#. Is it something I can use to install in vs2008? What about express? ...

Problem creating site using Microsoft Visual Web Developer Express 2008

Hi, this is a very newbie question, sorry! I need to create an aspx website based con C# and am calling some webservices based on some DLL's I already have. Beforem purchasing Visual Studio, I decided to try Microsoft Visual Web Developer Express (is this ok?) creating a Web Application ASP.NET based on Visual C#. I created the form t...

How does one properly implement a trigger in MS SQL 2005 / 2008?

This may be a trivial question, but I will ask it anyway: can updates in three or four tables in one database trigger updates to one or two tables in another database (in MS SQL 2005?) I am happy to create any amount of T-SQL necessary, and I also have VS 2008 with C# ability but have never written a trigger like that before. Essential...

Implementing MS Access style 'relationships' GUI

I have no idea what the correct name for this UI style is. In MS Access the 'relationships' tool shows the db tables as little movable boxes that can be linked with lines. It's the same with Visio and a few audio apps - boxes that are movable, containing lines of text that can be joined together in a meaningful way. How could I create a...

ASP.NET runtime error: Length can not be less than zero. Parameter name: length

I am using visual studio 2008 on vista business. We just recently upgraded from xp. Now when I open a web project I get this error ASP.NET runtime error: Length can not be less than zero. Parameter name: length< in every .aspx file on this line of code: <%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"...

VS 2008 designer not installed for xaml

there is no editor for c:......\Page1.xaml please make sure the application for the file type (.xaml) is installed no idea what the issue could be. i tried to find devenv.exe but i can't find it anywhere!! i have installed sp1. i have also completly uninstalled vs2008 and .net framework 3.5 and reinstalled it. did not solve it. some ...

Replicate VS2008 "Publish Web Site" from command line

...

Find out all the files required to run a c# application

I need to generate a list of all the files which are enough to run my application on any machine. I need this for a setup program. When i go to bin/release folder i'm able to see some pdb files and some configuration files, which i think will not be needed. I tried to disable generation of pdb files too but it still generates pdb for the...

Using these 2 build options in Visual Studio

When I debug a project and there is an error in my code (e.g. a method returns something and when I consume that method, I don't put the returned data into a variable) the popup asking me to run the last successful build comes up. How exactly do I configure this? Also, in what scenario does the Visual Studio build order come in handy? I...

wsdl s:time type not working in c#

I'm sending SOAP requests to an external web service. There are several fields that make up the request and one of them is defined as a s:time type. I would like to set this time field to a value but c# only accepts a datetime type and not just time. ... soapClient soapService = new soapClient(); sendTime soapRequest = new sendTime();...

Moving From Eclipse to Visual Studio 2008

After working in Eclipse for the past 3 years and memorizing all of the great shortcut keys and features, my new job has me moving back to Visual Studio. I've found some listings of shortcut keys on VS, but am looking for a comprehensive guide mapping Eclipse features to Visual Studio. Does anyone know of a good tutorial aimed at helpi...

Is there a way to specify inside visual studio 2008 that an application requires admin?

I see plenty of articles on how to embed a manifest file to require admin, but the problem I find with that is we auto-increment the version number number, so a static manifest file doesn't seem like it'd work because we'd have to update the version number each time. Is there any way to get VS to generate the manifest and embed it autom...

Find all .rpt files in VS solution

I would like to search my VS 2008 solution and return back all files of .rpt files. If possible, I would prefer it to be in code. I'd love to iterate over these files. (This is for some maintenance of a solution that I inherited and has a lot of unreferenced code which I am attempting to clean up) ...