visual-studio-2010

WPF Creation versus Visual Studio Creation

I created a form in WPF and it looked great. When I opened it in Visual Studio 2010, it look alot different than what I created. Any ideas why this would happen? Should I ignore how it shows up in VS? This makes me wonder if either is how the user will actually see it. Any suggestions? Thanks again! Eroc ...

What Constitutes a Code Block in Visual Studio 2010?

As per MSDN: A code block is a code path with a single entry point, a single exit point, and a set of instructions that are all run in sequence. A code block ends when it reaches a decision point such as a new conditional statement block, a function call, exception throw, enter, leave, try, catch, or a finally construct. With this ...

The type or namespace name 'Linq' does not exist in the namespace 'System.Data' , etc...

I just made a Linq-to-SQL .dbml file in Visual Studio 2010. I'm getting the following 2 errors, a total of 60 times in total, mostly the first. The type or namespace name 'Linq' does not exist in the namespace 'System.Data' The type or namespace name 'EntitySet' could not be found I've found various similar questions here and on oth...

Can I make Visual Studio place curly braces on the same line as an if statement (in HTML)?

In Visual Studio while designing MVC views (in .aspx or .ascx files) I often use if statements. When I auto-format (Ctrl-K,D), VS wraps the braces in this really ugly and hard to read way: <% if (Model.UserIsAuthenticated) {%> (some HTML goes here...) <% }%> Is there any way to make Visual Studio auto-format like this instead:...

TInyXML++ Premake with Visual Studio 2010

I tried to compile TinyXML++(or TICPP) using premake4 with these settings: "premake4 vs2010 [--unicode] [--ticpp-shared] [--dynamic-runtime]". It compiles the .libs but I can't compile TiCPP.vcxproj because the compiler says "Unable to start program c:\ticpp\lib\ticpp.lib. This file is an unrecognized or unsupported binary file." Anyone ...

Is it possible to install Windows Phone 7 tools in VS2010 Pro without Express

Hi Guys I have VS2010 Pro installed through DreamSpark. I really don't want anything more than I need on my PC, but the WP7 SDK insists on installing VS Express for development. Can I just install the SDK without VS Express? ...

Use static_assert to check types passed to macro

I unfortunately have several macros left over from the original version of my library that employed some pretty crazy C. In particular, I have a series of macros that expect certain types to be passed to them. Is it possible to do something along the lines of: static_assert(decltype(retval) == bool); And how? Are there any clever alte...

Compile codes with my own compiler in VS2010?

Hi Anybody knows how can I use VS2010 IDE to write my own language codes and compile it with my own compiler? ...

how to create web sites with Visual studio 2010 on a remote iis7

i have windows server 2008 running on my pc. i have been able to setup client/server network with a domain. i login on th e client pc and tried to create a website project with VS2010. but each time i choose iis7 of the server i get the following error : the web server does not appear to have any authentication methods enabled. It asked...

"silverlight for Windows 7 Phone" option is not shown in "Add new Item" option

Hi I have downloaded and installed Microsoft Visual Studio 2010 Express for Windows 7 Phone. Problem is that i cant see "Silverlight for Windows Phone" option when I right click my Project name and select Add -> New Item option. I can only see "XNA Game Studio 4.0" under "Visual C#" category. I have tried installing Silverlight SDK sepa...

Can I collapse foreach, using and other c# code blocks in Visual Studio 2010?

Can I collapse foreach, using and other c# code blocks in Visual Studio 2010, the same way that I can collapse methods, properties, classes, namespaces, etc? It would be very helpful sometimes. ...

Need help converting Visual Studio 2008 MSBuild Script to VS2010

I have a simple MSBuild Script that looks like this. ... <Target Name="CompileSolution"> <Exec Command="&quot;$(VS90COMNTOOLS)..\IDE\devenv.exe&quot; ..\MyProject.All.sln /build" /> </Target> ... Now I migrated the propect to Visual Studio 2010 and the command fails. ... <Target Name="CompileSolution"> <Exec Comma...

Search Value in VS2010 Debug Locals and/or expand all Nodes

Hi, does someone might know how to search for a value in the locals in visual studio 2010 or at least how can I expand all nodes, subnodes? ...

Visual Studio 2010 build with wrong framework

Hello, I'm working on Visual Studio Profesionnal 2010. In my solution I've got 2 projects The first is a web site with targeted .net runtime 2.0 the second is a dll with targeted .net runtime 2.0 I add the output of the second as assembly of the first. I build and rebuild and clean my solution result : Build succeeded But when I lau...

how to test aspx page behaviour when multiple requests(~50) are made simultaneously using visual studio

I have to test my asp.net web application for performance when there are simultaneous requests for the web site in my developer machine before deploy in production. how can i achieve this using Visual Studio?.(without using third party tools preferably Visual studio 2010 professional edition ...

"Build" builds my project, "Build Solution" doesn't

I've just started using VS2010. I've got a largish solution that migrated successfully from VS2008. I've added a console application project called "Test" to the solution. Selecting build->build solution does not compile the new project. Selecting build->build Test does build the project. In the failure case, no error is given. Similar...

Change number of Recent Projects displayed on VS2010 Start Page

Ok, I had VS2010 Start Page set up to display 20+ projects in the Recent Projects section, but while I was messing around with theming and importing/exporting settings I seem to have reset it back to its default of 10, and I can't locate where that setting is. Does anyone know where the setting for number of recent projects on the start...

Why am I forced to rebuild my project to see changes made to controllers in ASP.NET MVC?

I'm using ASP.NET MVC 3 Beta and for some strange reason, if I change a controller's action and load the action in a browser, it doesn't recompile the assembly to incorporate the changes made. Maybe I'm spoilt from how things were in ASP.NET Webforms, where there was dynamic on-the-flycompilation of code-behind files, but I think this sh...

Unable to add a view to some projects using Smart Client Factory 2010

I used to be able to add a view using the Smart Client Factory context menu in solution manager. However now the only option available is "Create Disconnected Service Agent". Having said that one of the projects has the "Add View" menu available. Any ideas on how to solve it? ...

Visual Studio 2010 - Viewing lists during debug results in timeout

I am trying to debug a project, suddenly I'm running into an issue where enumerating any object collections results in a timeout if I try to view it. If I run the program normally I have no issues. If I try to view any collection, such as a list, I get a timeout error and the whole thing bombs out. I thought something might be going on...