visual-studio-2010

Is it possible to reload a debug assembly and re-attach to process?

If I attach to a application's process and debug, then stop debugging, and recompile a dependent assembly, is it possible to add logic to my application which does an unload/re-load to that assembly such that I'll be able to re-attach to the process and debug again without re-starting? ...

Debugging in VS 2010 when the host external program runs in XP compatibility mode

When debugging AutoCAD add-ons you set Visual Studio 2010 to start the AutoCAD exe first. If the AutoCAD .exe properties are set to run in compatibility mode for Windows XP (NOT the Virtual PC XP mode) will it mess things up? ie. is Visual Studio 2010 ok with this? The reason I'm leaning towards running older versions in compatibility m...

Right click context menu to adornment - Doesn't work and invokes the editor menu instead (VS2010)

I've made a Control in XAML and added it to the adornment layer, in the control I have a section that should spawn a context menu when right clicked (using TextBox.ContextMenu property). I've tested it in a regular WPF Window and it works great. However, when I tried the same in Visual Studio on an adornment layer I only got the VS2010 e...

VS2010: Automatically insert date and initials to single line comments

Greetings Friends, What is the best way (least amount of keystrokes) to get Visual Studio 2010 to automatically insert the current date and my name/initials whenever I put a single line comment into my codebase? This should support C# and it'd be even better if it worked in my .aspx pages too. Thanks -- I know someone out there has the...

Mysterious 'File does not exist' error (in code unrelated to any kind of file IO) in global.asax

I'm getting a 'File does not exist' error. In my ASP.NET app. This is a strange one, though. Firstly, there is no file IO code anywhere around - I'm not doing anything with any files when it occurs. Also, it's happening on the very last closing curly brace of the Application_Error() method in global.asax (that's the one you put code i...

Visual Studio 2010 Mixed Mode .dll fix not working for me...

So I am getting the same exception as a lot of other people when I am trying to run an execute statement into my SQLite database in my Windows Forms project in Visual Studio 2010. The exception reads: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional confi...

VC++ 2010 exclude library

A project I'm building is attempting to include a library, but for the life of me I can't find out the call to include it is coming from. It's trying to include atlthunk.lib, which is supposed to be included through a #pragma comment in atlbase.h, but there's no such comment in my atlbase.h. I read about someone else who had this proble...

How to run unit testing tests from command line?

I googled and found the below helpful references. Currently I want to run all from the command-line (for easy of execution & quickness) in cases: A specific test (ie. a test written by a method marked [TestMethod()]) All tests in a class All impacted tests of the current TFS pending change of mine. All tests All tests except the ones m...

Is it possible to change CSS Validation scheme in VS2010

I'm editing a simple CSS file in VS2010 and the editor seems to have a rather limited understanding of CSS, for example: #my-rule { position:relative; } generates a warning: Validation(CSS 1.0): 'position' is not a known CSS property name I'm guessing that there is an option some where to change the CSS validation to CSS 2.1 or...

Configure 'Save on losing focus' in visual studio 2010

Is it possible either in the standard build or via a extension to make visual studio 2010 save all unsaved work when I switch focus to another application. It's a feature that IntelliJ and TextMate do rather well (spot the Java developer learning C#) and it means I've gotten out of the habit of saving changes before I switch to the brow...

How to fix VS2008 and VS2010 dev envts on Win7 x64

Ok, I'm in a world of pain at the moment. We'd been developing with VS2008 (VB.NET, mostly WinForms, also ASP.NET and Windows services) on Win7 x64, with specific requirements (that we can't get rid of yet), to target x86 and framework 3.5. We recently upgraded to VS2010, and quite soon, fell foul of this ResGen.exe incompatibility iss...

How to get rid of CA2000 warning when ownership is transferred?

The following code generates two CA2000 warnings (among others, but that's not the point). public sealed class Item: IDisposable { public void Dispose() {} } public sealed class ItemContainer { public void Add(Item item) { } } public sealed class Test: IDisposable { private ICollection<Item> itemCollection; pri...

Exclude region for XMLDocumentation file.

Hi, In my project settings is turned on the XML Documentation file checkbox. In this case every public method, fiels or enum without XML Declaration is underline with green wave. And I have a warning in the error window. The Question is the next: Does Visual Studio has specific define or region to skip some method or smth else from XM...

Any Free Integrated Code Coverage Tools for VS2010 (Professional Edition)

Does anyone know of any free (critical point I'm afraid) code coverage tools for Visual Studio 2010 Professional edition. I know there are commercial offerings such as NCover and DotCover, but due to budget considerations these can't be considered. For similar reasons, upgrading to versions of VS that come with code coverage built in al...

What is the shortcut to clear “Temporary ASP.NET Files” folder before runing application?

The problem is while running my code, i always come up to my old javascript files on VS.2010. I think its reason is Temporary ASP.NET Files folder. How can i clear the temp folder when i press to F5 ? ...

Visual studio 2010 Ultimate Web Test Concurrent Users

Hello, I am trying to do a performance test on an asp.net website. I have recorded a simple scenario with user login. I have created a data file containing 500 login ids and passwords. The application database also has this information. My intention is to run the test to analyze how the system behaves when 500 users tries to login and l...

Registry path for TFS2010 custom checkin policy?

Hey, how can I register a custom check-in policy for VS2010/TFS2010? For 2008 it was the following path: HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\8.0\TeamFoundation\SourceControl\Checkin Policies But for 2010 the path ends after "TeamFoundation", even though I should already have some registered policies from the Power Tool...

XmlSerializers.dll did not succeed

Name: AIT.OurPluginOffice.Office2010.ExcelAddIn From: file:///C:/Program Files/OurPlugin/OurPlugin Office 2010/AIT.OurPluginOffice.Office2010.ExcelAddIn.vsto ************** Exception Text ************** System.Deployment.Application.DeploymentDownloadException: Downloading file:///C:/Program Files/OurPlugin/OurPlugin Office 2...

WSDL on SQL Server gives HTTP status 505 Version Not Supported

I am a DBA, not a developer, so forgive me if this is a silly question. But we are having issues with a SQL Server 2005 Web Service end point. On the local network I am able to add the reference in Visual Studio 2010 with out any issues. It uses digest as the authentication scheme. However, when anyone tries to add the web reference on ...

How to find the position equivalent in an iTextEdit of an EditPoint.AbsoluteCharOffset

Hiya, I'm trying delete a class body in using the new Text Editor code model in a Visual Studio 2010 extension. That is, I'm trying to use the Delete method on ITextEdit to delete everything between curly brackets. I can get access to the Absolute Character Position of the start and end of the class using the codeClass.GetStartPoint(...