visual-studio-2010

Using unsigned DLLs in project that is signed

Hi, I have a 3rd party DLL that I need to use in my application. My project is signed with an SNK so therefore I cannot use these unsigned DLLs without signing them. I tried to use ildasm.exe as explained here but I get error messages when attempting to sign the DLL as the DLL contains unmanaged code. The error message I get is "the re...

SQL Server Management Studio shortcuts in Visual Studio 2010?

I'm using Visual Studio 2010 with Team Foundation Server for my DB Project. I'v been using SSMS with VSS and gotten used to all the shortcuts. For example Ctrl + R to hide result of a query. Ctrl + T for output in text format. Also assigning custom shortcuts to system stored procedures such as sp_helptext. My Question is that, has anyo...

Visual Studio 2010 - Can't open O/R Designer

I just got Visual Studio 2010 and need to create a web application using LINQ to SQL. I started writing the web app but can't add a .DBML file to the solution. The option isn't there when I go to Add -> New Item. Am I missing something from the installation CD? Did they change something from Visual Studio 2008? I haven't written in ...

Is there any point to the setup.exe file created by a setup project in visual studio?

I've created my first setup project using Visual Studio 2010. I've noticed that when I build the setup project it generates an MSI installer file and a setup.exe executable. However, I seem to be able to just right click on the MSI file and choose install to install my application rather then running setup.exe. Does the setup.exe file ...

How to use VS2010 query designer in a solution?

Well met! I'm missing something about VS2010... I want to create a solution that let's me use the visual query designer to build queries against an SQL server, as I can when I right click the server in Server Explorer and select New Query. However, I can't seem to save this sort of query. If I go into Solution Explorer, I can create a...

How to install "Windows Phone Developer Tools RTW" without installing Visual Studio?

Is it possible to install "Windows Phone Developer Tools RTW" on a machine without installing Visual Studio and Expression Blend? The reason I am asking is that I want to install it on a build server. http://www.microsoft.com/downloads/en/details.aspx?FamilyID=04704acf-a63a-4f97-952c-8b51b34b00ce&displaylang=en ...

Alternative keyboard shortcuts to Resharper's "Open by filename" or "Open by typename"

Resharper has some commands I just can't live without (keybindings are given for the Visual Studio template): Open by filename (Ctrl+Shift+T) Locate in solution explorer (alt-shift-T, useful only when solution explorer is configured not to track the current file already) Does visual studio have alternatives to these that don't requir...

My Visual Studio 2010 IDE is often hung when run unit tests, how to get rid of it?

Hi every one, I often have to restart my IDE when trying to run a test set from within Visual Studio 2010 since it keeps being hung/not-responding very often. Do you have the same problem? If you do, do you have a work-around for that? Please share. ...

Avery 5168 Labels in RDLC

I am currently working on creating an RDLC report for the Avery 5168 labels. The report is being created in Visual Studio 2010 and the will be for mailing labels. The report should show the addresses 2x2 on each page of the report. I have tried several different solutions with no success. Any suggestions would be greatly appreciated. ...

App_offline.htm created/deleted whenever I check out a file in TFS

I have an AJAX-heavy ASP.NET web application developed using .NET 4.0, using TFS as our source control. We recently upgraded our dev tools to use VS2010 and TFS 2010 exclusively, but now every time a file is checked out, we see visual studio reloading all the symbols, and all the sessions being dropped. After putting some error logging ...

how to get the status of an approval workflow of item using sharepoint object model ?

Hi, There is a list on which an approval workflow is associated,workflow starts when an item is added.The list is having anonymous access so anyone can enter an item,but the item needs to be approved by an approver.Hence,each item will have a status(e.g. approved,rejected etc.). Now,I am creating a visual webpart.I want to display the ...

Multiproject areas in ASP.Net MVC 3

Does any one have any idea about multiproject area support in asp.net mvc 3? As it was degraded to future status in mvc 2. If it is still not included then should we look forward for ASP.Net MVC Portable Areas via MvcContrib. Can you share your expreriences? What are the recommended way for managing a large application? I read about MEF...

Key promoter plugin for Visual Studio/ReSharper

Is there plugin like Key promoter (IntelliJ IDEA) - http://plugins.intellij.net/plugin/?idea&id=4455 - but for Visual Studio (2010) with ReSharper? ...

Curly Braces annoyance in Windows 7 on MacBook

Hey guys! I'm just starting out writing C# in MS Visual Studio on a Win 7 partition on my MacBook Pro. Thing is, as a Java programmer I'm used to pressing Alt + Shift + 8/9 (in OSX) to make curly braces. In Win 7 I need to press Alt + 7/0. (Swedish keyboard layout) Needless to say, if I'm gonna write in both OS's it's gonna get really a...

Is Mole for Visual Studio by Karl Shifflett still active?

I've been reading about Mole and am interested in trying it but it doesn't look like it's being kept up to date as there's no mention in the documentation of Windows 7 or Visual Studio 2010. Is the project still active or is it now obsolete because there's a better alternative? Has anyone managed to get it working with Windows 7 and Visu...

How to deal with Reshaper's name suggestions?

Always, I have got the following message: name 'byteProivder_LengthChanged' does not match 'Methods, properities and events'. Suggested name is 'ByteProviderLengthChanged' Not even the VS generated method name could get away from this suggestion. For example FormXXX_Load is adviced to change to FormXXXLoad. So what should I ...

Reset Resharper

How can I reset all options in Resharper back to their default? ...

Output path for build in visual studio 2010

I need to output the project dll in program files. "$(PROGRAMFILES)\Microsoft..." It is not building in program files, but in the project itself in a folder called "$(PROGRAMFILES)"! How do I build in program files?? ...

need help for calculating DDB in VB! thanks!

hi there i got some problems with my VB code for the DDB part, i wannna get some results like: 1 $500.00 2 $300.00 3 $180.00 4 $108.00 5 $12.00 but what i get is: $ 500.00 $ 500.00 $ 500.00 $ 500.00 $ 500.00 Many many thanks:) Option Strict Off Option Explicit Off Public Class Form1 Private Sub Form1_Load(ByVal sender As System....

create a web site with VS 2010

in previous versions of Visual Studio , when creating a new website, a new website project was created. when i implemented this website on the iis, i could change the default.aspx.cs file, save it and the next time i chose 'browse', the site was updated with the changes i made in the default.aspx.cs file. in the VS2010, choosing new Web...