visual-studio-2010

Is it possible to create an Office 2003 VSTO add-in from Visual Studio 2010?

We have existing VS 2008 VSTO add-ins for Word 2003 and Excel 2003. We are unable to upgrade the Office version at this time. We have just tried to upgrade our solution to VS 2010 and it converts and compiles fine, but when building and running the add-in we receive a message saying that the required version of Office is not installed. ...

How to enable Resharper custom live template for JavaScript file

I've created some custom live templates with Reshaper 5.0 for C# files and they work fine. They also work for for JavaScript inside a .aspx file too. However, when I try to use my custom live template shortcut keystrokes inside a .js file, which is part of the Visual Studio 2010 solution, nothing (related to Resharper) shows up in the c...

VSTO 2010 excel addins cannot be loaded on target xp machine

I published my excel addins with clickonce on vs2010. It`s prerequisites contains .net framework 4 client,vsto 2010 and installer3.5. Deploying it on win7 works well,when I deploy it on xp,installing no error occured, but it(com) cannot loaded when run excel app. I tried mang mehods,only when I manually installed .net framework 2.0 or ...

App_Code folder in ASP.NET project in VIsual Studio 2010

Hi, at vs2008 i could set App_Code folder, but at vs2010 i can not do it, that's why i put my dataset's and class' to App_Data folder. Either I do not know even App_Data folder is secure? Any suggestions? Thanks ...

Visual Studio 2010 Language-Specific Help Search Results

I am in the process of learning F# and so am only interested in help search results involving this language as I debug my programs. Previous versions of help let you filter results for specific languages via checkboxes. How is this best done now in the VS2010 help system? ...

CA2202 Warning from Code Analysis for OracleConnection disposal

We are getting the following warning from Code Analysis in Visual Studio 2010 and I'm wondering if this is a false positive that we can safely ignore or the code should be refactored to correctly dispose the object. The relevant code: public void MyFunction() { OracleConnection oraConnection = null; OracleCommand oraCommand = n...

NAnt with multiple compiler versions

I have two different version of the Visual Studio IDE on a build machine. My question is how do I know which version of the compiler NAnt is using? Is there a way to direct NAnt to use a specific version? ...

Windows Service Looking for app.config and not app.exe.config

I'm trying to install a Windows Service on a 2008 server. The service was built with VS2010, targeting the 3.5 framework. A simple setup project was used to deploy the service. The install works fine and the service starts up appropriately. The bizarre issue I'm having is when the service executable, MyService.exe, is run it is looki...

Hide .svn folders in a VS2010 IronPython project

I'm working on an IronPython project on VS2010 and I've notice that for the python project (which is setup as a Console project, but really just contains a number of scripts that are hosted in a C# app), everything that is in the project directory will show up in the VS solution explorer under that project. So, for example, the .svn fol...

How to disable Visual Studio 2010 auto restart on crash?

Visual Studio 2010 crashes on exit a lot for me. Often it decides to auto-restart, and if I miss the short time out to hit the cancel box it loads again. Is there a registry key to disable this auto restart feature? ...

Visual Studio 2010 build file lock issues.

I have a Visual Studio 2008 project that I "upgraded" to Visual Studio 2010. Since the upgrade I have been having a lot of problems with the project (a project that was and still is trooper in 2008 I might add). The first problem is that building the main executable locks the executable, causing further rebuilds to fail. This is describ...

VS2010 debugger takes an unreasonable amount of time

Anyone else dealt with VS2010 debug in C++ and have it just sit there for 30+ second each time you step? This is happening to me and the call stack window just has this grey thing that says "Busy..." in it during this freeze. The whole interface just locks down...each and every step I make and right now I'm trying to step through this ...

Trouble with a datareader in visual basic and SQL

Hello, i am working on a search feature for a program i am working on and i found a tutorial online that provides some insight but the actual code, after being modified to fit my aplication, does not work. i get two different errors as of right now, one that tells me "the value of type 'System.data.sqlclient.sqldatareader' cannot be conv...

visual studio: unable to delete folder this function is not supported on this system

Appparantly I'm the only one on the Internet experiencing this problem because I can find ZERO other reports of anyone else encountering it. Unfortunately I've been dealing with it for months and I don't know what else to do. sometimes when I attempt to delete a folder from visual studio 2010, I get the error "unable to delete folder 'X...

C# interpreter add-in for visual studio

I come from a lisp background where I could type in snippets to the command line while coding, to make sure I get a small chunk of code correct the first time. Its great for testing string formatting, simple math calls, etc without having to recompile a whole project to test small changes. Is there a feature or add-in in visual studio ...

Problem with Visual Studio 2010 DataTips in a mixed C++/CLI assembly

I've recently switched to using Visual Studio 2010. I've got a problem where the DataTips (debugger tooltips) for STL types aren't loading correctly. For example, in the following code: int test( const std::string& inString ) { std::string aString( "Hello, World!" ); return aString.compare( inString ); } I don't get the exp...

Is there a way to zoom the Visual Studio text editor with a keyboard shortcut?

Yesterday I found myself needing to zoom my Visual Studio 2010 text editor and was without a mouse (don't ask). Typically I do this by holding down CTRL and scrolling the mouse wheel. I also couldn't figure out how to tab into the area where you can specify your zoom level in the lower left hand corner of the text editor window. So I gue...

Cannot find MS.Internal.Media namespace in assembly

I've been working on a WPF application. Since I design the UI in Expression Blend 4 and work on the code-behind part in Visual Studio 2010, I constantly switch from one tool to another. I added some Image controls to an existing Grid and assigned some images to them. In Blend, I built the project and ran it. Worked just fine. When I swi...

How can I turn off Visual Studio 2010 script debugging?

I don't really use the VS 2010 script debugging and would like to turn it off. I've tried running this registry command: reg add HKLM\SOFTWARE\Microsoft\VisualStudio\10.0\AD7Metrics\Engine{F200A7E7-DEA5-11D0-B854-00A0244A1DE2} /v ProgramProvider /d {4FF9DEF4-8922-4D02-9379-3FFA64D1D639} /f However, I get an error access denied error be...

Performance tips for making Visual Studio 2010 faster?

I don't know if anybody else has had an issue with the performance of Visual Studio 2010, but I close it daily and reopen it, and with an hour it starts to really bog down, and can't even keep up with my typing. Is there some obvious setting I am missing that would help to speed it up? I am also using ReSharper, but even if I remove tha...