visual-studio-2008

How do I enumerate a list of Source Files with Pending Changes and get their server location?

I'm trying to write a macro that will generate a plain-text list of files changed based on the list of files in the Pending Changes pane but I can't figure out how to do it. The server location of a file is the property that is formatted like this: $/TfsName/SomeSolution/Web/SomeFolder/SomeFile1.aspx $/TfsName/SomeSolution/Web/SomeFolde...

Resharper 5 - are speed & memory bloat issues solved?

I am on Resharper 4.x and VS2008. R# seems to slow down the living crap out of VS2008. And of course, the memory usage can easily go to 500MB on a middle of the road Winforms solution with 7-8 solutions. Now that Resharper 5.x is out, can anyone tell me whether either perf or memory issues have been improved for use with VS2008? ...

How do I shut down web services launched by Visual Studio

I have a solution with about 10 web services and one web site that calls them. All the services have to launch when I click "start debugging", which is necessary and good. When I stop debugging the services are still running. I can right click on each of them in the system tray to shut them down, or I can shut down Visual Studio and the...

visual studio does not recognize my dynamic user control class. Sometimes it does sometimes it doesn't

Hi I have created a user control which is inside a folder called Controls and the class is a partial class which inherits from Web.UI.UserControl. Now from my page which is one level up I just try to access the method inside the usercontrol and so trying to cast it as the type of user control. But I get build errors. It just cannot rec...

How to configure VSTS2008 Code Analysis?

In VS2008 Team System how do I select some Code Analysis rules? The window is empty. When I build, there is the error: CA0053 : * Failed to load rules file '\rules': Unable to find the specified file. Obviously this means the rules file isn't found and that is the problem. What is the remedy? In other words, how do I use the pro...

How do I set the caption of one form when another form closes (C#)

Hello All, I'm working on an application and I've encountered a strange issue, that I think should be simple, but isn't. What I'm trying to accomplish is set the main form's title caption to a specific value when the another form closes. Below is my most recent attempt at this. // From the main form I have ObjectForm Objects = new Objec...

Visual Studio Deployment Project - CustomActionData

Hi, I am using a C++ DLL function as a Custom Action in a VS deployment project. I need to set some input data to this custom action. Example: c:\a.dll;c:\b.dll It seems like I cannot do it. The MsiGetProperty does not return anything (or it fails) inside custom action function. If I have custom action data as: "abcd", then MsiGetProper...

how to could use reflection to write to the appropriate properties on the entity?

How to: you don't want to manually write code to write to ColumnA, ColumnB, etc, then you could use reflection to write to the appropriate properties on the entity? you can create a new instance of this class and its property values. These property values are mapped to columns in the SQL database table. You then pass this object to the D...

how to use dynamic insert - linq to sql?

i want to use below codes. So i have a generic list<MyClass> i think that i should use using System.Reflection; method to get list<MyClass> property to fill string[] columnNames, object[] columnValues but how can i use it? foreach (var item in List<myClass>) { // i want to fill get columnNames and values to fill below array...

VS2008 debugger breaks at unwanted line

Visual Studio 2008 breaks at the following line with the following message: I don't want it to stop there, it's making debugging a nightmare. Somehow the exception thrown at line 998 is causing this, even though there is a try...catch block somewhere up there that is supposed to catch this exception. Any ideas on how to stop this from ...

How to compile C code in Visual Studio 2008?

I want to write a console application in C in VS 2008. What project type do I need to select and what properties I must set in order to do this? ...

How can I find a rare bug that seems to only occur in release builds?

I have a fairly large solution that occasionally crashes. Sadly, these crashes appear to only occur in release build. When I attach the debugger upon crashing, I get the message: "No symbols are loaded for any call stack frame. The source code cannot be displayed" This makes it quite hard to find the cause of the crashes. I am ...

Inserting programmatically but i can not do that in linq?

How can i insert data programmatically? but i can not do that. No error return also no adding data in my database.How can i do that? i created a Extention method to use in my project look please below.i want to add extentionmethod but i can not. How can i add data with below extention method? namespace TestEng { public partial class...

null int value in VC++

Hi there, I want to have a condition in my program that finds if there is NO value in an array. Usually the array will be filed with 4 values. On a rare occasion it is filled with 6. I want to use an if statement that says, if the exampleArray[5] is not equal to null, do this Something like... eg. if(!array[5]->Equals(null){ /...

Visual Studio Installer Project: Installer and Application Icons

I've got an icon for one of my applications, which I've embedded in a resource file and is used as the main icon for the application. So far so good. However, I want to use the same icon for the installer project, and for the shortcut that the installer places in the Start Menu. I can set the icon for the installer package itself, but o...

Unabled to get multiple Test Methoeds to appear in VS2008 Test Results Window

I'm working on my first VS2008 unit test project and have run into problem. I'm using a wizard created test project and my unit test class (simplified) is - namespace FileWrapperUnitTest { [TestClass] public class UnitTest1 { public UnitTest1() { // initialization stuff } public TestContext TestContext { get; s...

Update service references in multiple projects?

I have a visual studio 2008 solution with approximately 15 projects. Several of these projects have a WCF service reference to a WCF service project. Whenever I update the service project, I have to go to each of the other projects and right click the service reference and update it. Is there an easier way to do this, like a "Update Al...

I'm about to start using ASP.NET MVC2 for my web application.

I have a pretty big web application that I created last year using ASP.NET webforms. It has two parts: Admin and Client (each one a project inside a single solution). Admin logs in as you would expect and manages the clients. Clients log in and manage themselves. SQL Server back end. It relies heavily on MasterPages and LINQ. It ha...

Cross-solution debugging with Visual Studio.

One of the awesome things I remember in Visual Basic 6 from years ago that you could just load up an ActiveX exe project into the IDE, set a breakpoint, press Run and whenever someone (either an EXE or a project in a different IDE) called that DLL, your breakpoint would hit. Is something like this possible with Visual Studio 2008? Can ...

ASP.NET Dev Server (Cassini), IIS Express and multiple threads.

I can't seem to find any information on this anywhere. Either it's my imagination or the ASP.NET Dev Server (Cassini) cannot handle multiple threads (e.g. multiple requests). Is this correct? Does IIS Express handle multiple threads? ...