visual-studio

How to Improve this Visual Studio Post-Build Event

I am currently using Visual Studio 2010 post-build event to minify my JavaScript files. The problem is every time I add a new JavaScript file I have to update the post build event. What I want to do is make the script a bit more flexible. Directory structure: \Scripts\ Script1.debug.jsScript2.debug.jsScript3.debug.js Here is my s...

need silverlight 3 development ...

At work, I am on a sizable development team. Our current project is in Silverlight 3. We cannot upgrade right now due to all the regression testing (company policy) Well, our LAN dept worked on my dev box and they uninstalled silverlight 3. Now the project will not load due to : The imported project "C:\Program Files\MSBuild\Microso...

How to parallelize a Data-Driven unit test in Visual Studio 2010?

I know regular ms-test unit tests can be parallelized on a multi-core machine (with caveats of course) by specifying parallelTestCount attribute in the .testresults file in the test solution. Like this, <Execution parallelTestCount="1"> <TestTypeSpecific /> <AgentRule name="Execution Agents"> </AgentRule> </Execution> Mo...

VS2010 - Project Macro Variables in Start Options Command Line Arguments

In a projects settings, on the Debug tab, is there a way to use to use the project macro variables in the command line arguments box? I know you can't use them directly because they don't get expanded but is there a clever solution to this? EDIT: I'm using a C# project. ...

How do I stop Visual Studio 2010 from downloading large files when connected through FTP.

Here is the scenario. I connect to my server from a random computer to do a couple of updates through FTP in Visual Studio 2010. I open up the page I wanted to edit which has links to several very large files. It seems the intellisense goes out to look for these files. Visual Studio will then be stuck trying to find these very large ...

Debugger on wrong line when debugging Classic Asp

I'm having trouble debugging any ASP Classic website on my workstation using any of the MS debugging environments available to me. I'm on Win XP SP3, using the builtin IIS 5.1. It started a few weeks ago, and happens across multiple projects. Something clearly changed in my environment, because it was working fine in the past, even in r...

Autogenerate code with shortcuts in Visual Studio?

I noticed that when you type ctor then hit the tab button, VS will automatically create a constructor skeleton for you. I also saw in a screencast, the speaker could generate, among other things :Console.WriteLine, and also skeleton methods for all interface methods using keyboard shortcuts. However, I couldn't get what keyword he wa...

How can I tell if the function's intrinsic version is used from the disassembly?

Im trying to optimize my exercise application in VS2010. Basically I have several sqrt, pow and memset in the core loop. More specifically, this is what I do: // in a cpp file ... #include <cmath> #pragma intrinsic(sqrt, pow, memset) void Simulator::calculate() { for( int i=0; i<NUM; i++ ) { ... float len = std::sqrt(lenSq...

Intellisense between projects in visual studio 2010

Hi, I've got a c# project that is full of intellisense comments, and this project compiles to a DLL. Now when i add this dll as a reference in another project, i do not get intellisense when accessing the members of the original project. Any ideas how i can get this to work? Thanks ...

The difference between a window created in main thread and a window created in another thread

Another question about my add-in for visual studio. Now, I had two experiments as following: In my add-in library's main thread, I call CreateWindowEx to create a window(or CreateDialogParam to create a modeless dialog) and call CreateThread to create a thread where the window's message loop is running. Then I will have a problem I've ...

Drawing a horizontal line in Silverlight

Possible Duplicate: Horizontal Rule in Silverlight/XAML Hi there, is there a way to draw a horizontal line in Silverlight? I'm thinking of a line to be used as a separator, much like the HTML element <hr />. Is there a quick and easy equivalent in Silverlight? Thanks very much! ...

commenting code C# visual studio best practise

I'm looking for a rather arbitrary answer, so this might more be a discussion. I'm wondering what the best practise for commenting my C# code in visual studio is. Right now I'm using the triple /// to generate the xml and use sand castle to build a chm or html file. But my problem is that I use code comments for two reasons: When other...

ildasm visual studio 2010

Is there a convenient method or tool available which will do the following for me from within visual studio 2010. Fire up ILDasm Load a current assembly from within Visual Studio within ILDasm. As opposed to me firing up a visual studio command prompt Fire up Ildasm navigating to the bin folder of the assembly I wish to view. If there...

Problem Posting data to a service

I have created a SampleItem just to test: public class SampleItem { public string Name { get; set; } } and the method that I calling from th service looks like this: public void send(SampleItem s) { String siteName = s.Name; } And Iam debbuging this mehtod, What I can notice is that the "s (sampleitem is nul...

vs2010 automation : Get the text value of a EnvDTE.CodeElement

So I'm playing around with EnvDTE, and the EnvDTE.CodeModel API, And I was wondering if there was a way to get the text value represented by a CodeElement. Let's say I have an CodeAttribute, is there some way to get a string of what the CodeAttribute represents, i.e.[MyAttribute(value="myvalue")]. I know it's possible to reconstruct th...

Something similar to NUnit TestCaseSource in Visual Studio unit testing

Is there anything similar to NUnit TestCaseSource attribute in Visual Studio unit testing? The closest solution I found was to use a DataSource. But I don't want to store my test case parameters in a data source. ...

how to ignore a local folder in a vs.net solution from being updated to TFS?

how to ignore a local folder in a vs.net solution from being updated to TFS? I have a web service reference, and I don't want this being saved to the TFS source control. Each time I check-in, the service folder and its 1000's of files are pre-selected. ...

Too many options in the View Data Class select list when creating a view

Is there a way to restrict the options available in the view data class select list in the MVC add view dialog box. I really would only like to have models from a single assembly in it? ...

% Processor Time on Process vs. Proccesor

I'm looking at a visual studio loadtest results, and something does not make sense. The (_Total) % Processor Time under Process category is almost linear. The (_Total) % Processor Time under Processsor category makes saw teeth pattern. Question 1: What is the difference between the % Prcessor Time under Process category vs. under Pro...

How Can I Create a Mouseover Tooltip on an Image in VB.NET?

Can I create a tooltip that will show up when a user moves his/her cursor over an image? I can't find such a property in Visual Studio, and I've scoured Google to no avail. I'm using an image in a PictureBox. Here's to anyone out there on StackOverflow instead of some awesome Halloween party! Yay! ...