visual-studio

Which directory does clickonce publish?

When I am using clickonce, which files are published? The ones from the bin or the obj directory? ...

Visual Studio msbuild

I have a question regarding the commandline options of msbuild. I am currently using msbuild to build projects using the existing solution files. These solution files have references to external dll which have different paths on each machine. I am currently writing a build script and passing the specific path to the project file via the ...

Would you like to continue and run the last successful build?

You're in Visual Studio... you press F5 (Run) and are greeted by this dialog: There were build errors. Would you like to continue and run the last successful build? Wonderful. I'm sure there are cases where running the last successful build is useful, however, I have never purposefully answered yes to this question. Oh sure, I've ...

Referencing a platform-specific library from a non-specific .NET app

I often need to include little bits of native code in my C# apps, which I tend to do via C++/CLI. Usually I just need to use a C++ library for which there exists no good alternative for .NET; but sometimes performance is a factor too. This is problematic; doing so means adding a reference to a specific x86 or x64 library. Most librari...

Macro to wrap selected text with tags in Visual Studio

I realize that I may be being a bit lazy, but does anyone know of a Visual Studio macro, where I can select some text inside of the Visual Studio IDE, click a button, and have it wrap the selected text with tags? It would generate something like: <strong>My Selected Text</strong> I would even be up for creating a macro, just not sur...

Dependency graph of Visual Studio projects

I'm currently migrating a big solution (~70 projects) from VS 2005 + .NET 2.0 to VS 2008 + .NET 3.5. Currently I have VS 2008 + .NET 2.0. The problem is that I need to move projects one by one to new .NET framework ensuring that no .NET 2.0 project references .NET 3.5 project. Is there any tool that would give me a nice graph of project...

Hosting a WCF Service in Vista

I put together a small WCF service in VS2008 and when I try to run the host using an HTTP protocol, it bombs because it doesn't have the proper rights to do so. On my "Host.Open()" line I get this exception: "HTTP could not register URL http://+:9001/. Your process does not have access rights to this namespace." I did not seem to have ...

C# (Visual studio): Correlation between database, dataset, binding source

Hello. I am just learning C# through Visual Studio 2008? I was wondering what exactly is the correlation between dabases, datasets and binding sources? As well, what is the function of the table adapter? ...

Silverlight and VS 2005 or VS 2008 Express Edition

Is is possible to create silverlight content in C# using Visual Studio 2005 Professional or Visual Studio 2008 Express Edition? I can't find an answer on Microsoft's web site. Thanks for any help! ...

force visual studio to link all symbols in a lib file

Is there any way to force visual studio to link all symbols from a lib file into the dll as atm it is optimizing "unused" functions which are needed by the program using the dll at run time. I tried using the /OPT:NOREF and /OPT:NOICF but they dont seem to work. The reason i need them is because they are global class which register th...

How much space is minimum enough for VS 2008 and SQL Server

I'm preparing the new partitioning of my laptop, so I would like to know how much space are going to take a full installation of this development environment. Long time ago has elapsed since my last installation of a full Visual Studio environment, so my guesses are that these days the minimum space needed will be around 15 GB. ...

How to work-around "Object required" error when adding a variable in an ATL Dialog

I'm using Visual Studio .NET 2003 to develop a COM ATL application in unmanaged Visual C++. I've created a ATL Dialag and whenever I try to add a variable for a control the wizard thorws the message "Object required". I've tried the following alternatives: Right click in the control to call "Add variable" from there: this way the wiz...

visual studio 2005: skipping builds for unknown reason?

Hello I have a visual studio solution with a number of projects. Configuration manager is carefully configured to build all projects except one ( the one skipped is a test project ). After building solution in command-line i got following: "building XXX Debug|x64" ------ Skipped Build: Project: AAA ------ ------ Skipped Build: Proje...

visual c++: #include files from other projects in the same solution

Hi, I am working on a game using Visual C++. I have some components in separate projects, and have set the project dependencies. How do I #include a header file from a different project? I have no idea how to use classes from one project in another. Thanks ...

Storing Visual Studio Solution with multiple projects in SVN

Hi, I am having a hard time adding a Visual Studio Solution with multiple projects to my repo. I am using VisualSVN. Here is my directory structure c:\----- | ---Projects | --MyApp | ---Project1 (The solution is in this project directory) ---Project2 ---Project3 When I select ...

Is there a Visual Studio plugin (preferably Resharper) that has camel case selection

Exact duplicate of this thread I have some quite long variable / field names in my code and I'm finding the default behaviour for CTRL+SHIFT+Right-Arrow and CTRL+SHIFT+Left-Arrow to be less productive than if it were to adhere to camel casing. Here's an example. Say the cursor is before the A in AndAnotherThing. CTRL+SHIFT+Right-Arrow ...

Where is Visual C++ Redistributable Installer in VS 2008?

I have Visual Studio 2008 SP1 Professional installed. I have built a C++ application and I want to install the redistributable runtime on another machine. Is the installer available in VS installation? Or do I have to download it? ...

TFS Client APIs for creating workitem templates?

Of course, it is pretty possible to create work items, get a list of work items etc in TFS. In addition to this, we need to have the functionality of allowing our users to create their own work item templates, for various file types. Whether the TFS Client APIs are capable of uploading work item templates to TFS server? ...

Can you disable the VS feature that keeps separate window positions for Debugging and Editing?

I don't have the need to have my Visual Studio windows in different locations when editing versus debugging. In fact, I'd prefer my windows to stay where I put them, and not jump around as I switch between editing and debugging. Is there a way to tell VS to not keep different window settings for the two modes? I'm currently using VS 20...

Print Date and Time In Visual Studio C++ build?

How would I print the date and time for the purposes of the build. Ie: When the console for my application starts up I want to do this: Binary Build date: 03/03/2009 @ 10:00AM I think this would be a super useful function for all applications to have behind the scenes for programmers, especially in a team environment. Is there a si...