visual-studio

NUnit 2.5.7 Breakpoint still not hit (VS2010) even after attaching to the Agent

Hello All, I am having a problem hitting the break point in debugging under VS2010 under NUnit recent recommended release 2.5.7 I have tried various ways as recommended by responses on Stack Overflow: 1) Attach to NUnit-agent.exe 2) Run time is correctly selected to 4.0 3) Attaching to Nunit.exe which does not even debug symbols When a...

external file to hold msbuild tasks

I have created some ms build tasks for my VS project. Rather than having to update the VS Project file with each of the tasks, is it possible to create an external file to hold the build tasks and reference it via the main project file? Also, I have seen with nant, that you can create .bat file to run nant tasks. Is it possible to do s...

Visual C# - Unhandled Exception Issue

Alright, so based on another question I asked about a program of mine not running, I'm trying to put this code into my program that will hopefully point out any unhandled exceptions to me. However, it's not working the way I've written it. private void FileSort_Load(object sender, EventArgs e) { this.Size = new System.Drawin...

Quickly sharing temporary snippets between developers

I am looking for a quick way to share code snippets between developers. Visual studio allows you to use a file share as a repository for snippets, but the VS Snippet manager seems more oriented towards "permanent" snippets you want to keep around. I'm just looking for a good way to send a block of code to another developer to look at, ...

Force Resharper to open designer when navigating with CTRL+SHIFT+T

When I press CTRL+SHIFT+T dialog for file search pops up, I find file I'm interested in, and when I press Enter - if file is .resx or .dbml - it's opens in text editor. Can I force Resharper to open file in whatever editor is used by default (same as when I double click on file in Solution Explorer)? ...

Stuck on implementing Windows Service

hey guys, I've followed some tutorials online regarding creating and installing a windows service and seem to keep getting into a bind. I followed the tutorial here and it while it seems to be working, its not 100%. This is the code im using: namespace SuperService { partial class Logger : ServiceBase { public Logger() { ...

How to generate a class from an interface

Is there a way in Visual Studio to right click an interface and 'Generate Class from Interface' so I end up with an empty class with all the properties and methods which the interface requires? Kind of like Extract Interface, but backwards. ...

SVN messes with my files with jibberish data, why?

Sometimes, I find myself in a situation where valid files are made invalid by doubling the contents, placing ======= in the middle, <<<<<<< .mine at the beginning and <<<<<<< .r1276 at the end. This results in unbuildable projects: <<<<<<< .mine using System; using System.Data; namespace MyNamespace { class Xyz //... a lot mo...

how to SQL SELECT & loop through each row of results with code?

I'm trying in c# to simply pull a set of rows from a SQL DB and run through each row I get a result with some code that will email me one time for each row returned. the below code should work as far as I can tell and returns no errors, I'm stumped. You can assume that the "ConnectionString" is valid and used in plenty of places on the ...

Visual Studio 2010 Macro to delete SQL files from a database project

I've discovered that in Visual Studio 2010 Professional it is possible to refresh the database for a SQL Server Database Project (This feature is normally only available to the Premium and Ultimate versions). All you need to do is delete all the SQL files from the "Schema Objects" folder (but leave the folder structure intact) and the "...

Library namespace becomes unknown after manual update

Hello, I recently faced an issue with a third-party DLL we use in one of our ASP.NET websites. When I need to update it, I download a newer version from vendor's website and just replace the binary in the "bin" folder in the website folder. Immediately Visual Studio loses this library's namespace (says the method is not accessible due ...

Duplicate Output Problem with TestContext.WriteLine

I've made an "ordered test" in VS 2008 which executes 4 tests. One of the TestMethod tests it runs has several writeline statements, like this: TestContext.WriteLine("One"); TestContext.WriteLine("Two"); TestContext.WriteLine("Three"); The output I receive in the "Additional Information" of the results shows this output: One Two Thre...

Visual Studio - Finding which modules are causing C1905 (processor incompatibility)

I'm attempting to make an x64 build of a project with Visual Studio 2005. It's currently failing with linker error C1905, 'Front end and back end not compatible (must target same processor).' From what I gather, this is essentially saying that my x64 build is attempting to link with x86 modules. Unfortunately, this project links with a ...

Visual Web Developer 2008 question

Hi Team, Could you please explain the following two questions about Visual Web Developer 2008? 1) Will it work if I have only .Net 3.0 2) Can it work even if there is Visual Studio 2005 is installed? Thanks Lijo ...

Bugs/issues list for Visual Studio 2008/2010

Is there an official / unofficial list of bugs and issues in Visual Studio, or any of its components? ...

install visual studio 2008

i am trying to install visual studio 2008 because as i know studio 2010 does not support Boost library but problem is that i can't find official link for download visual studio 2008 maybe because 2010 version is avaliable ?or?i have searched yes there is many other sites but can i download it from microsoft? :EDITED i have ...

How do I disable quoted identifiers when scripting out SQL Server database objects in Visual Studio?

Hi, I'm using Visual Studio 2005 to script out a database so that I can put it in subversion. Now one complaint that I have is that it puts my stored procedure code in a single literal string, like in the example. below. /****** Object: StoredProcedure [dbo].[MyStoredProc] Script Date: 08/19/2010 16:40:14 ******/ SET ANSI_NULLS ON...

Visual Studio Find All References and Refactoring Stopped Working

I am working with a fairly complex solution in Visual Studio 2008. It contains 2 Web Applications, 5 class libraries, a console application a msi setup project, these are all written in c#. The long and the short of it is that Find All References, Find Symbols and some parts of Refactoring do not work anymore. I needed to investigate ...

change Visual Studio project root ?

My project has all the visual studio solutions and projects stored in ./win/vc100, sources in ./src/ and libraries in ./lib/ Now if I want to add additional libraries to include I need to specify the path as ../../lib/library_name Is there any way to set the root to be at . rather than ./win/vc100 ? ...

Error committing Trunk after merging Branch back in. How to resolve?

I'm getting the following subversion error: Subversion does not allow to commit this combination of files and directories at once. Directory deletes must be recursive and this would commit other files: Deleted directory: D:\mm32.net\Trunk\MyApp.Web\App_Themes\Factsheet_print\Images\Risk Directory to commit: D:\mm32.net\Trun...