visual-studio

Visual Studio and Google Test: Forcing Re-Run of Test Project When Dependencies Change

I have a set of Google Test-based unit tests for a native C++ DLL I'm developing. The DLL is in its own project, and the test project is dependent upon it. The test project has a Post-Build Event script that runs the tests. My problem: Whenever the test project gets rebuilt, it runs the tests as expected. However, making a change to t...

SQL Server Questions

How do I rename a database in Server Explorer on Visual Studio 2008? I changed the filename using Rename on the context menu, but that just changed the filename, not the name in SQL Server (2005 Express). Also, is there an easy-to-use management tool like PHP MyAdmin that I can use? Or is it easier to just use VS 2008 Server Explorer? ...

Report viewer problem

I'm using Report viewer to generate the report.following is the code i'm using ReportViewer1.LocalReport.ReportPath = @"C:\Users\Saga\Desktop\projectvn\VehicleReport.rdlc"; ReportParameter Param1 = new ReportParameter("@BrandName", "Toyota"); ReportParameter[] p1 = { Param1 }; ReportViewer1.LocalReport.SetParameters(p1)...

How to debug Javascript registered with RegisterClientScriptBlock method

I have many existing scripts that I need to debug, all embededed from code behind. I would prefer to use Visual Studio 2008 client side debbging features, but breakpoints can only be set inside the aspx file withing a script block. The problem is I can't put a breakpoint on the scripts because they are all registered from the code be...

How can I run Microsoft Visual Studio Units Tests in an automated way using .NET code?

We have a build and deployment tool and as part of the tool before a deployment I want to validate that all of our unit tests run. I want to execute the Visual Studio unit tests using C# code if possible in some way. These tests were not built for nunit. Are there any good articles or ways of doing this that someone could recommend? ...

Steps in visual c++ to start a toolbar button project

Hi, I would like to start a new VC++ project that can create a toolbar button for Internet Explorer in the form of DLL. Yes, I know there are complete source code example at Code Project. But the example are already created/generated by the original developer. So I lack the knowledge on how actually to start a new project like that. W...

why referenced c# dll is in full path in VS2010?

why the referenced dll of a c# project is in full path? when i move the source code to a different pc, the reference is broken. ...

while opening crystal reports in displays hexadecimal value

Im working on Visual Studio 2008 to develop a web application in asp.net. if I add a crystal report file (.rpt) in my project, I see only hexadecimal code. I obviously miss something, previously it worked in my system..recently i formatted my system, and installed vs2008, then the problem arises...im in need.. Please help me to find ...

How to bind with dynamic resource and specifying a path

I want to bind to a resource (DynamicResource) and access properties on that resource, but is there a way to do that? (I want to visualize the default values from constructor in the xaml editor in visual studio. Those cannot be seen when referencing an object through DataContext nor through a property added on my Window class...) Not...

VS2008 Cannot debug web site anymore

Hi, I can't debug my web site anymore in VS2008. I can set breakpoints and it stops at them. I can "move" the next instruction locator. After running string foo="foo"; I can give a new value to foo using the spy. But I can't rewrite this line as string foo="another value"; The debugger starts complaining about lack of source code or...

Visual studio item template and getting file structure

Hi everyone! I want to build an item template for a project which has the following file structure. Web -> Templates -> Pages Template output will be: namespace Templates.Pages.Foo { [CustomAttribute(Page="~/Templates/Pages/Foo.aspx")] public class Foo { } } I'm having trouble getting file structure. Here's what I ...

Visual Studio 2010 - Break on anything that changes an object property

Is it possible in Visual Studio 2010 to break on anything (a method for example) that changes an object's property? Or is it possible to find out if object properties changed in an ASP.NET Webforms application? ...

Trace in NUnit works only while debugging from Visual Studio

I want to display trace info into Text Output tab in NUnit GUI (ver. 2.5.7, target runtime 4.0): Trace.Listeners.Add(new ConsoleTraceListener()); Trace.WriteLine("Hello NUnit"); This works fine when I launch NUnit GUI from Visual Studio (2010) via Debug -> Start external application. But when from .nunit project file and console runn...

Trace calls to external assembly to create correct unit test

I am linking my application to a 3rd party library. Now I have found a bug within this module and I can even reproduce it in the application. To make an example for the developers of this module I am now doing a unit test but the error does not show up. Then I discovered Tracepoints in Visual Studio. Is there a way to trace all calls go...

Converting Asp.Net web forms to Asp.Net MVC project makes build fail

We are migrating a project from classic Asp.Net web forms to Asp.Net MVC. I have followed the fours steps outlined here http://www.codeproject.com/KB/aspnet/webformmvcharmony.aspx and all is working well. Now I want to get Visual Studio to include MVC item templates in the "add new item" dialog. So I add {F85E285D-A4E0-4152-9332-AB1...

What ListBox like control is used in Collections Editor of Visual Studio.

I need to create a from which uses the same ListBox as the one from Collection Editor of Visual Studio (The ListBox under the Members label). Please, explain exactly which WinForms control is this and which of its properties are set? You can see the control I am asking about under the Members: label of every collection editor form in d...

Upgrade install only leaves files new to the new version, deleting files common to both old and new

I have a Web Application and Deployment Project that was originally built in VS 2008 that installed version 1.51 of my application. I am now using VS 2010 (and my app requires .Net 4 and Installer 4.5) and updated my application and the deployment project to 1.52. If I run the setup on a virgin system, everything works as expected. If ...

How do I share the same Visual Project with my team?

Hi, I want to share the same Visual Studio 2010 project with my team where my team can work on the same project at the same time, anywhere, anytime. I know TFS can do it,but I don't want to use it because we can't afford the license fee,can you please suggest another way which is simpler.... Please do reply. Thank you. ...

Switch off highlighting "event" keyword in Visual C++

Hello! I have question: How to switch off highlight keyword "event" in Visual C++ 2010? I don't use .net , so for me it isn't keyword, and I would call it one variable "event". ...

How to ensure all VS code files are in UTF-8?

Is there a way to ensure all code files in my Visual Studio solution are encoded in UTF-8? I'd prefer this done automatically rather than by hand. Thanks! ...