visual-studio

Visual Studio Publish Website Using SCP/SFTP

Is there a way to publish a web site from Visual Studio 2008 using SCP or SFTP? I know it is possible to publish to my local filesystem and then perform the transfer with SCP, but I'd like something more seamless (e.g. part of Visual Studio). Does this feature exist? An addin perhaps? ...

Does any one know the all the possible metadata of the Compile msbuild element?

Hello folks. For instance, I know of Link, DependentUpon and SubType. I am wondering if there are any more nifty metadata children of Compile. I use Link and DependentUpon a lot and really like them. ...

Why isn't there a Windows.Forms like program for C++ (is there?)

I don't think there is any program like VS Windows.Forms for C++. Now I know that "Windows.Forms" are in themselves a C# "thing", but it eludes me why no one has put together a similar graphical construction interface for C++ Windows GUIs. Am I just not aware of it/them? Should I try to make one (that'd be a challenge, for me anyway, bu...

How to change a Visual Studio project type?

I finally figured out that Visual Studio keeps track of how you create a project (in other words which project template you select initially) and filters your options later based on that initial decision. The information is kept in the *.csproj file as a <ProjectTypeGuids> element. Other than just editing the *.csproj file, is there a "...

Object initializers - VS intellisense turns "new" into "new object"

Let's say I have a function that takes an object as a parameter and returns a string... public string Foo(object values) { // return a string } When working in Visual Studio 2008 (ASP.NET MVC Web Application), I try to pass an object intializer to this function like so: string x = Foo(new { x = 1, y = 2 }); While I'm typing this ou...

Is it possible to get your user control to display those alignment guides when placing them on a WinForm?

In Visual Studio (2008) when you place a textbox on a Windows Form, and drag it around, you see very helpful guidelines which help you align it (left, right, top or bottom) to other controls. You also see a line the represents the bottom of the text in that control helping you align the text within your textbox, to the text within a labe...

Using CUDA in an existing MFC project

I have an existing MFC application with matrix computation with CPU-optimized BLAS libraries. I'm interested in adding CuBLAS computational functionalities to my project, but I have the two following questions: 1) I'm not sure if I would need to do something on specifying my own CUDA kernel, thread, and block configurations at this poin...

VS Setup Project - Change install language

Hi, How do I change the localization of a setup project in VS2008 to be other than the defined languages in the dropdown (i.e. not English or France but Hebrew or Dutch) Thanks, Yoni. ...

Medium/Large solution - Visual Studio Build process - Advice needed

I'm currently in the process of developing a large application. At the moment, i have one solution (this may change in the fullness of time) with many projects. I've set up the directory structure as: \ lib\ (contains shared 3rd party components) build\ build\bin (output directory) build\wwwroot (output directory for web app) config\ ...

Windows Mobile Hi-Res Designer in Visual Studio

Is it possible to do Windows Mobile development in Visual Studio (2008), where the Windows Mobile Forms designer appears in "hi-res" (VGA/>96 DPI), rather than the default lo-res view? I'm using Resco controls, which have some built-in support for hi-res, but it's a little bit slow to develop any significant forms, because you don't kno...

Add Icon to Visual Studio 2008-Built Class Lib DLL?

I have a .ico that I want to add to several class library DLL projects, using Visual Studio Pro 2008. For each project, I added the ico, set the built type to 'embedded resource' and set the icon in the project prefs page. Still the icon is the default. What did I miss? Thanks. ...

Store value in a variable after using select statement

How to store the value of the PolicyID returned from database in an integer variable in C#? I am using SQL server 2005. System.Data.SqlClient.SqlConnection dataConnection = new SqlConnection(); dataConnection.ConnectionString = @"Data Source=JAGMIT-PC\SQLEXPRESS;Initial Catalog=SumooHAgentDB;Integrated Secur...

Visual Studio - Edit source code located in a database

I am building something similar to Server Explorer for Apache CouchDB. One of the things necessary is to be able to edit CouchDB view definitions which in CouchDB are JavaScript functions. How can I trick Visual Studio into using my object to retrieve and save the content of the JavaScript function but still use the rest of it - I am h...

What causes a query string when requesting jQuery? e.g. /jquery-1.3.2.min.js?_=12553...

I'm troubleshooting a jQuery problem which happens when the HTTP requests for a page load include this query string: GET /Scripts/jquery-1.3.2.min.js?_=1255309685187 Normally, the request has no query string and the response status code is 304: GET /Scripts/jquery-1.3.2.min.js However, every so often a query string is appended. ...

Long load time in Visual Studio for Large Project

Is there a way to turn off intellisense in Visual Studio 2008? I know about deleting a DLL to turn off intellisense in C++, but that doesn't work for C#. I also know about the preferences but that just turns off the visual display. I want to turn off ALL of intellisense so it does not scan my code at all. Update 10/14/09: Eric was ki...

Configure Outlook Mail Settings Programmatically?

Was wondering if there was a simple way to add and configure a POP3 server to Outlook's mail server settings programmatically? Searching Google seems to yield results that tell me I have to reverse-engineer the gobbledygook stored under HKCU\Software\Microsoft\Windows NT\Windows Messaging Subsystem\Profiles. My employer wanted to see if...

Visual Studio Magic Keywords in Comments

Hi, I know visual studio has some magic keywords you can use in comments, which will make them marked in the Task List: TODO HACK UNDONE Do you know of any other built-in keywords, that may mark the code as a task? Or any other special keywords that will mark the code as bug-fix, warning, error, etc. Thanks. ...

Impact analysis on subclass

I was modifying an overridden method of a subclass. In order to determine the impact of the change, I went through all possible scenarios and tested them. The problem is, the "all possible scenarios" are determined by reading business use cases, putting break point to find out when this particular overridden method is being hit instead ...

Visual Studio Command Window

This may seem silly to some but I've never really understood the usefulness of the Command Window in Visual Studio. I know that the Visual Studio Command Window is used to execute commands or aliases directly in the IDE. The MSDN article explains how one can use the command window to print debug statements but I feel that these can be e...

Stepping into a P/Invoke call in disassemby view

My C# code is calling an unmanaged third-party library function via P/Invoke, and the unmanaged function is having some strange side effects. I want to debug into it and see what it's doing. If I debug my C# code, and try to "Step Into" the P/Invoke call, it steps over instead. No surprise there -- I expected that; it doesn't have the s...