visual-studio-2010

Is it safe to delete the "ipch" folder - Precompiled headers?

Hello, I was looking through the folder for an application I am working on and noticed the "ipch" folder, for my solution which has two small projects it weighs in at about 90mb+ in size. I have found an article discussing the use for the files and was wondering if they were safe to delete? It's for an assignment hand in and I would li...

are there any performance differences between vs 2008 and vs 2010

is there any major performance changes in 2010. ...

Differences between Visual Studio 2010 add-in manager and extension manager

The difference between Add-In and Integration Package is still unclear and now with Visual Studio 2010 an extension manager appears along with the add-in manager. What are the differences between the add-in manager and the extension manager? Can an add-in be in both manager at the same time? ...

Setup Project in Visual Studio 2010 Requires .NET 4.0

When setting up a Setup Project in Visual Studio 2010 and even to I removing all the prerequistes .NET 4.0 is still required on the computer that runs the Installation. Deploying with ClickOnce works but is not an option, but at least it doesn't ask for .NET 4.0. Is there a way to create a Setup Project in Visual Studio 2010 that doesn'...

Can I have different '.settings' specified for debug and release configurations?

I have a .settings file (containing both User and Application settings) that I would like to contain different values if built in Debug mode. Is there a supported or recommended way to do this? ...

How to create a web service load test using Visual Studio 2010?

Is there a way to test a Web Service using VS2010 like it's used to test a web site? For a web site I can create a set of WebTestRequest objects that emulate the loading and the parsing of a web page from the test and then, implementing the GetRequestEnumerator I can yield results to the load test so that the execution time and payload ...

Cannot perform an ORDERBY against my EF4 data

I have a query hitting EF4 using STEs and I'm having an issue with user-defined sorting. In debugging this, I have removed the dynamic sorting and am hard-coding it and I still have the issue. If I swap/uncomment the var results = xxx lines in GetMyBusinesses(), my results are not sorted any differently - they are always sorting it ascen...

VS2010 profiler : is it possible to profile one specific method?

Possibly some methods to turn on and turn off profiling from code? Or can you select a specific function to profile ? ...

Performing dynamic sorts on EF4 data

I'm attempting to perform dynamic sorting of data that I'm putting into grids into our MVC UI. Since MVC is abstracted from everything else via WCF, I've created a couple utility classes and extensions to help with this. The two most important things (slightly simplified) are as follows: public static IQueryable<TModel> ApplySortOpt...

Why are some C#4 features allowed even when targeting 3.5?

We upgraded to VS 2010, but we haven't yet upgraded to .NET 4.0. All of our projects are still explicitly targeting 3.5. Today, a developer checked in code that looked like this: delegate T Generator<out T>(); As far as I know, "in T" and "out T" are C# 4.0 features. According to our build server, which doesn't have .NET 4.0 installe...

Visual Studio 2010 Assembly Signing: An attempt was made to reference a token that does not exist

I'm trying to sign an assembly in Visual Studio 2010 with our PFX file, after I enter the password for the private key I get "An attempt was made to reference a token that does not exist" ...

Test run errors with MSTest in VS2010

When I run my Unit Tests, all tests pass, but instead of "Test run succeeded" or whatever the success message is, I get "Test run error" in the little bar that tells me how many of my tests pass, even though all my tests passed. When i click the text, I'm taken to a page that tells me the following two things happened: Warning: conf...

VS2010 and CSS: What is the best strategy to individually position form controls

OK, I have a ton of controls on my page that I need to individually place. I need to set a margin here, a padding there, etc. None of these particular styles that I want to apply will be applied to more than control. What is the bets practice for determining at which level the style is placed, etc? OK, my choices are 1) External CSS ...

Cannot serialize this List<T> extension

I'm trying to push a subset of a collection of data through WCF to be consumed by WCF - think paged data. As such, I want this collection to have one page's worth of data as well as a total number of results. I figured this should be trivial by creating a custom object that extends List. However, everything I do results in my TotalNumber...

defining class relationships in c# and visual studio 2010

Hey guys, in Visual Studio 2010 I can point to a bunch of classes and create a diagram. However, the diagram by default doesn't recognize any relationships between the classes, except inheritance and implementations. Is there a way, ideally by using Attributes, to define class and property relationships and associations in such a way t...

VS2010 Database Compare. How do you create a *.DBSchema extensioned file?

I'd like to take a snapshot of my database, make some changes and then use the db compare functionality to identify the changes, and who knows, maybe even generate scripts to make the change. I'd like to avoid having to backup the current db and restore it as a separate db just to have a "before" snapshot. I'm guessing I shouldn't have ...

Code Analysis Error: Declare types in namespaces

Is VS2010, I analyzed my code and got this error: Warning 64 CA1050 : Microsoft.Design : 'ApplicationVariables' should be declared inside a namespace. C:\My\Code\BESI\BESI\App_Code\ApplicationVariables.vb 10 C:\...\BESI\ Here is some reference info on the error. Essentially, I tried to create a class to be used to access data in...

Copy Source Code as HTML Add-In for VS2010?

I've been unable to find such an add-in for VS2010, I only found it for earlier versions. Does anyone know where I can find a newer version? ...

Visual Studio 2010 Installer Project - Text Input Validation

Hi Everyone, I'm doing with Visual Studio 2010 Installer Project. I want users to enter an text input the installer will check if it is valid. If the text is NOT valid (somethings like emails), installer lets the users know and suggests re-enter the text. I could not find how to check the validation, anyone knows how to do, please help...

VS2010 always thinks project is out of date but nothing has changed

I have a very simmilar problem as described here. I also upgraded a mixed solution of C++/CLI and C# projects from VS2008 to VS2010. And now in VS2010 one C++/CLI project always runs out of date. Even if it has been compiled and linked just before and F5 is hit the messagebox "The project is out of date. Would you like to build it?" app...