How to find the unit tests
I have a bunch of unit tests in my visual studio project and code coverage coloring shows the covered lines of code in blue. Is it possible to jump to the unit test(s) that covers that line of code? ...
I have a bunch of unit tests in my visual studio project and code coverage coloring shows the covered lines of code in blue. Is it possible to jump to the unit test(s) that covers that line of code? ...
I have VB project and I tried to use PUBLISH feature. It seems to create nicely some kind of setup program, but the setup program does not ask where to copy files (it does not seem to copy filesto target machine "PROGRAM FILES".) Is this setup program somehow different from usual installers? NOTE: I want that app files are installed to...
Hi. I find configsource references in the .config-files to be very helpful. However, since these referenced config-files only contain fragments of the entire app.config hierarchy, the IDE complains. In the app.config file: <configuration> <configSections> <section name="customProfiles" type="SomeConfigClass, SomeAssembly"/...
I have a problem that adding a new ROW with duplicate UNIQUE id throws CONSTRAINTException that I cannot always catch.. Randomly general exception halts my VB software, sometimes catching works. here is my code. Private Sub BindingNavigatorAddNewItem_MouseUp() try DataGridView1.CurrentRow.Cells(0).Value = InputBox("give new ...
I use BindingNavigator1 that has ADD ROW / DELETE ROW buttons. However, I want to make my own bigger button with hotkey alt+a. How to call BindingNavigator1. AddNewItem button from my button / or make hotkey for it? There is no existing method.. ...
Hi, In vs2003 (and vs2005(not sure about that)) when I attached to a process, before actually attaching I could see which process were running under w3wp (I have a couple of websites running locally) so I knew which exact .net application I was about to debug. however in vs2008 the window doesn't show up anymore.. now I have to attach ...
I've editted a struct, added some members, removed others. But when I'm debugging, it doesn't show the new members, but is still showing some old members. It's very annoying. This is the struct. It doesn't show the firstFreeSpot int. But a vector called appointments, which I removed. This is the struct. struct AppointmentHour { string ...
I have been getting this annoying error/bug in Visual Studio 2008 quite a bit when doing ASP.NET MVC. "__o" is not declared What is the problem, and how can I fix it? ...
Hi people! Do you know if it's possible to programm c (not c++) in Visual Studio 2008? If yes then how? I haven't found any component for that. Regards. ...
Using VS2008 TFS I have created a setup application that installs two Window Services. The first service is always installed and uninstalled (and works fine--I'm using the installer class). The second service is optional. Depending a custom condition I set up determines whether the 2nd service is installed. If requested the install w...
I'm getting an error in Visual Studio 2008 anytime I try to create a data connection in the Server Explorer: "Unable to add data connection. The IVsDataConnectionDialog could not be initialized" Also, the existing data connections are disabled and their icon is a red-slash-circle. So far, the only advice I've found is here: http://soci...
Hi, what's wrong with this post-build event? I want to copy the entire contents of a resources folder over to the target directory while maintaining the but it keeps exiting with code 1: copy $(SolutionDir)$(ProjectName)\Resources*.* $(TargetDir)Resources\ Thanks in advance! ...
I am working on a C# project that involves ASP.NET custom server controls. I have several properties, methods etc that I hide from intellisense using the... [EditorBrowsable(EditorBrowsableState.Never)] ...attribute. I also have a web project set up to test these controls. When I reference the web controls as a component in the form o...
Assuming a person has Visual Studio 2008 set up correctly for JavaScript Intellisense, what are the best practices for the actual javascript reference declarations? The basic form, of course, is (right up at the top of the file): ///<reference path="path-to-file.js" /> But what are the rules for the path? Webapps Should web applica...
I am using Visual Studio 2008 on a Windows 7 virtual machine for building a ASP MVC app. I have noticed recently that it has become painfully slow, some pages take upwards of 60 seconds to display. If I deploy these pages to a devserver to test they are very quick, almost instant. Also, if I manually step through the code to display the ...
I use the java IDE IntelliJ IDEA and one of the features I like is that there's no saving. Everythings's always saved and you just use history navigation. I tend to have both editors open and I'm always forgetting to save in VS. I'm running vs 2008 with resharper 4.5 but as far as I can tell this isn't achievable or configurable (with...
When I hit F5, my VS 2008 opens my site in IE and halts. There is no sign in VS that the project is running. It enables the RUN button again even though the site is opened in IE. Hence, my breakpoints are also not working. This behaviour started happening suddenly.. Any reasons why it happens and resolutions? ...
Here, Data refers to a another class-library project in the same solution. The main project is referencing Data properly and there is a data.dll in the debug directory of the main project. Yes, I am able to build and run this solution properly. Is this a known problem? I searched on the web, but am unable to find a definite answer. ...
Is there any way of turning off Line Continuation in VB.net? I want to be able to prevent VS 2008 from automatically editing any long strings so they use line continuation. I would far rather have it all on one line even if i cannot see the entire screen. Any solutions guys? Thanks in advance! ...
I am changing my C++ project, which was earlier in VC6 and now being migrated to VS 2008, to use MSXML 6 instead of the earlier MSXML 3. When the code was in VC6 we were using MSXML3 by importing it # import "msxml3.dll" This was replaced with # import "msxml6.dll" After this when I compile the project I get this and several other...