visual-studio-2010

Install VC++ Runtime 64-bit if system is 64-bit

I am creating a Visual Studio 2010 Setup project for installing my application. My application works by having multiple executable for different system bitness, and detects if you are running on a 32-bit or 64-bit system. I'd like to have the Visual C++ 2010 x64 Runtime installed by the installer if it is a 64-bit system. Setting this a...

Remove a StackPanel / Grid Unwanted Default Border?

Hey, I'm designing a UI in Visual Studio 2010, and I've come across a slight problem. I'm fairly new to XAML and this method of design, so this might be a rookie mistake. I've looked around but can't seem to find reference to a similar problem. Basically, I have a grid with 2 rows, one of which contains a stackpanel and 5 columns. The ...

vs2010. Call Hierarchy. Is there a way to generate call hierarchy for all methods at once ?

I've found View Call Hierarchy helpful in making sense of new code. Can it be automated ?Now, I'm clicking on every method and hitting (Ctrl+K,Ctr+T). Is it possible to generate Call Hierarchy for a class? Thanks in advance. ...

VS Designer replaces "empty" strings with resource identifier pointing to empty strings

Weird problem, started with migration to Visual Studio 2010. Some forms, when opened, will have some objects' properties set to a string that is empty in resource file. Most often these are control properties like ImageKey, ToolTipText and for UltraGrid some columns get columnX.Header.Caption set to that string. This will obviously remo...

C# App Developed with VS2010 fails on startup with .NET 3.0

Read a ton of material on this one and still cannot find a workable solution... We have a "Hello, World1" app--one text block on a MainWindow--built and tested with VS2010 (C#). Target version is set to .NET 3.0. When "deployed" on a .NET 3.0 (SP2) system the app fails on startup. It fails in the call to InitializeComponent() in the Ma...

Sharing projects in multiple solutions fails because of project references in VS2010

We have a lot of native C++ static libs and DLL's that make up our application. In VS2010 it is possible to use references for native C++ projects between the dependend projects to force the correct build order. We used to do this with project dependencies but they were stored at the solution level. We do not share solutions, only the p...

Where can i find out the "Convert to Web Application" option in Visual studio 2010 Premium

Where can i find out the "Convert to Web Application" option in Visual studio 2010 Premium version.I have a website which i want to convert to Web application.I right clicked on the project int the solution explorer and could'nt see that in the context menu.I have Power commands extension installed too. ...

How do I start a CUDA app in Visual Studio 2010??

Direct Question: How do I create a simple hello world CUDA project within visual studio 2010? Background: I've written CUDA kernels. I'm intimately familiar with the .vcproj files from Visual Studio 2005 -- tweaked several by hand. In VS 2005, if I want to build a CUDA kernel, I add a custom build rule and then explicitly define the...

Can ReSharper properly parse SharePoint layouts?

I am creating a SharePoint 2010 feature in Visual Studio 2010. While ReSharper is a valuable tool for writing code, it reports lots of errors (all server-relative image references, master page reference, ContentPlaceHolderID's referring to the master page and so on) in .aspx layout definitions. I had to exclude the master page from ReSha...

prevent blend from adding a startupURI to application?

Is there some trick that is known to tell blend to stop trying to set a startupURI in my app.xaml? I googled but didn't see anything so I figured I would ask here. I use a startup routine and instantiate mainwindow myself. Every once and a while blend likes to toss in the startupURI="MainWindow.xaml" when I let it compile. Occasionally ...

memoryleak detection

hey i am trying to detect leaks in visual studio using : #define _CRTDBG_MAPALLOC #include <stdlib.h> #include <crtdbg.h> and in the end of the main i am typing : _CrtDumpMemoryLeaks(); when i do all of this i am getting the the memoryleaks (what inside them) but not the places that the allocates were made , can u please help me w...

Cannot get Remote Debugging working with VS2010

I have a server and a workstation on the same corporate domain. My user is a local administrator on both machines. I have Installed the VS2010 version of MSVSMON and set it to run as a service on the server under my user DOMAIN\greg.b (I gave myself "log on as service"). I log onto the server using my domain account and start Remote Debu...

Database first database projects

Hi Allm I have been working on a new project for a little while and already have the Database in sqlServer2008. I would like to put the DB into a database project to make installation better. Is there a way to import an exisiting database into a DB project? Thanks, EDIT: This is in VisualStudio 2010 btw... oops! ...

VS 2010: How do I get "next tab", "prev tab" keyboard shortcut working?!

How do I get "next tab", "prev tab" keyboard shortcuts to work in Visual Studios 2010? (For a more precise description of the functionality I need please see the firefox/chrome/etc and how they do their "ctrl-pgdn" and "ctrl-pgup" keyboard shortcuts). This should be extrememly easy... and yet I can't seem to figure it out. NOTE: ...

Are there any SCM solutions designed for use on the local machine only?

Hello. I'm going to be building some ASP.Net MVC 2 software using Visual Studio 2010 and, as the only developer, I'd like to have some basic SCM in place to I can manage changes locally. I know most SCM solutions are designed to run on servers and accessed by multiple developers. What's an easy, simple SCM solution for a solo develope...

iTunesLib 10 + Visual Studio 2010 on win7 x64

Hi, I'm trying to interop iTunesLib 10 with Visual Studio 2010 on Windows7 x64. I have some sample code for interoping with the iTunesLib, but when I try to run it, it says: Could not load file or assembly 'Interop.iTunesLib, Version=1.13.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was m...

stop vmware player from resizing on visual studio 2010 "start debug"

I started using a VMWare VM in order to have a clean environment in which to code. This works like a charm, but there is one issue that keeps bugging me. Every time I hit "start debugging" on my WPF application, the VMWare Player resizes out of "full screen mode" to a smaller size. Is this a problem any of you have solved? I did not fi...

How to easily switch reference paths for build?

I have a project that is for a piece of software. So I reference DLL libraries for that software in my project so I can code and make some nice plugins and extensions for the software via their API. The problem is that the software has many kinds of versions: Enterprise, Lite, version 1.6, version 1.7, version 2.0, etc. If I want my pro...

Why does Visual Studio 1-Click Publish rewrite file permissions?

I have an ASP.NET MVC 2 site running under IIS7. The app has its own .NET 4.0 App Pool running under a specific user account, and that account has "Full Control" permissions on the root folder and all sub-folders of the site in question, because we do funky things with file I/O, and it is required. After setting up 1-Click Publish succ...

Is there a setting in VS 2010 that will allow it to recover open files after a project file changes?

If I have 10 files open and I amend my csproj file (for example: add a space) visual studio complains: The project "XYZ" has been modified outside the environment. Press Reload to load the updated project from disk. Press Ignore to ignore the external changes. The change will be used the next time you open the project. Now, I rea...