visual-studio-2010

How do I unlock svn?

Hello, I am trying to check in a project to svn. However, I get an error message stating that this is locked. I am the only user. I tried to "clean" my project. No change. Is there a way to force unlock? ...

How to change VS2010 Add Reference box filter ?

I'm getting used to the new IDE (it's vc# express), but the first contact is somewhat confusing. When I open the Add Reference dialog and switch to the .NET tab, a label above the assembly list states: "Filtered to:.NET Framework 4". And it's true - I can reference .NET 4.0 assemblies only plus things like XNA 3.1. However I can't see ol...

Referenced Assembly won't load

I've got a visual studio 2010 project which publishes an assembly called myAssembly.ddl. I then want to reference myAssembly.dll from an existing vs 2008 project. If I try to load the reference it comes up with an yellow exclamation mark next to it, suggesting that the assembly wasn't loaded. However, I'm not getting any error messages ...

Checksum fail on visual studio 2010 Trial RTM

The checksum of the iso is wrong (ultimate edition) I'm getting 7790db7d2aac9e1ee8baa34d42988577689c9e7a should be SHA-1: 0x8371f6a8d090063fcc320617e94854374633df3c The strange thing is the download is in 4 rar files and rar does not report an error (internal checksum) so the corruption happend at microsoft and not during download. Am ...

Is there an easy way to sign a C++ CLI assembly in VS 2010?

Right now I am setting the Linker/Advanced/KeyFile option. I am getting the "mt.exe : general warning 810100b3: is a strong-name signed assembly and embedding a manifest invalidates the signature. You will need to re-sign this file to make it a valid assembly.". Reading from the web, it sounds like I have to set the delay signing opti...

Disable proxy for entire application?

Ever since upgrading to Visual Studio 2010, I'm running into an issue where the first web request of any type (WebRequest, WebClient, etc.) hangs for about 20 seconds before completing. Subsequent calls work quickly. I've narrowed down the problem to a proxy issue. If I manually disable proxy settings, I don't experience this delay: Di...

How does the VS XAML designer know what to auto-populate certain values with?

<Button Name="MyButton" Content="Test" FontStyle="Italic" /> In the above XAML definition of a button, the FontStyle property is set to Italic. The designer is somehow able to populate a list for me to choose from when I hit the = sign. How is this achieved? Before you answer, consider that the FontStyle property is, appropriately eno...

How to enable nullptr from C++0x in the Visual C++ 2010?

I wonder how can I enable the nullptr in the just released Visual Studio 2010. (C++ project, not managed). This is one of the new features but it is not available by default and looking inside the documentation at http://msdn.microsoft.com/en-us/library/4ex65770(VS.100).aspx it seams that it is enabled by /clr but this is managed! Is t...

Visual Studio 2010 failed tests throw exceptions

In VisualStudio2010 Ultimate RC I cannot figure out how to suppress {"CollectionAssert.AreEqual failed. (Element at index 0 do not match.)"} from Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException If i Ctrl+Alt+E I get the exception dialog; however that exception doesn't seem to be in there to be suppressed. Does ...

ODATA template in Visual Studio 2010

I don't see a OData (or WCF data service, or ADO.NET service) template in visual studio 2010. Am I missing something ...

Windows Mobile development in Visual Studio 2010

Hi, I just pulled the 2010 ultimate from MSDN, and I see there's no "Smart Device" options anymore. Does anybody knows how to enable it, or how to install it? Sincerely, Yvan ...

Can't run ASP.NET MVC 2 web app on IIS 7.5

I'm trying to run an ASP.NET MVC 2 web application under IIS on Windows 7, but I get a 403.14 error. Here are the steps to reproduce: Open Visual Studio 2010 Create a new ASP.NET MVC 2 project called MvcApplication1 Shift+F5 to run the app. You should see http://localhost:{random_port}/ and the page will render correctly. Click on MvcA...

Visual Studio 2010 blurry font

I'm using Visual C# 2010 Express (final, not beta or anything) and I'm having an issue with blurry fonts while debugging. The font appears normal everywhere (intellisense, menus, code) but when a breakpoint is reached most of the debugger related text is blurry (Locals, Call Stack, "data tooltips"). Here are screenshots of the normal te...

Visual Studio 2010, TlbImp generates .net 4.0 interops in 2.0 projects

In a C# project we add a reference to a COM object via the Add References setup pointing to a COM object which results in the IDE auto-generating the interop assembly. So this is fine and good, but we are building based on .net 3.5 SP1 aka CLR 2.0, and the generated interops are using the 4.0 CLR making them incompatible. Is there a way ...

How to compile different extension files as C++ in Visual Studio C++ 2010?

In my Visual Studio 2010 project I have files with .mm file extension, that need to be compiled as normal C++ files. Is there a way to make a build rule for new extensions or something like that? In VS 2008 there were options for that, but they are gone in 2010. ...

Right-margin marks in VS2010 text editors

In VS2008, you could enable right-margin marks by creating a string registry entry named Guides under HKCU\Software\Microsoft\VisualStudio\9.0\Text Editor. It also worked with the express editions: replace VisualStudio with VCExpress or VCSExpress. The value I had was: RGB(192,192,192) 80, 100 which gave me light gray lines at columns ...

How can I get Silverlight 4 Tools to work in Web Developer 2010 Express?

I installed Windows 7. I then installed Web Developer 2010 Express from here with the Web Platform Installer. I then installed the the April 15 release of Silverlight 4 Toolkit from here. I then added this reference: Then in my XAML, I reference it like this but it gives me no intellisense and tells me that I am missing an assembly...

How to make a grid in a DataTemplate for a ItemTemplate auto-size to ListBox width?

So I have the following DataTemplate for a ListBox.ItemTemplate: <DataTemplate x:Key="Tweet"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="50"/> <ColumnDefinition Width="Auto"/> </Grid.ColumnDefinitions> ...

Cannot create MVC project in VS2010

After installing the official VisualStudio 2010 (had installed and uninstalled RC before) I cannot create MVC projects. When I try to create a new "MvcWebApplicationProjectTemplate.cs" project, I got the following error message: Reinstalling MVC 2.0 didn't helped :( ...

Web Application Project Deployment VS2010 - Precompile Views

Using Visual Studio 2010 Ultimate I created a ASP.NET MVC 2.0 Web Application. I read http://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&amp;l=EN-US&amp;k=k%28WEBAPPLICATIONPROJECTS.PACKAGEPUBLISHOVERVIEW%29;k%28TargetFrameworkMoniker-%22.NETFRAMEWORK%2cVERSION%3dV4.0%22%29&amp;rd=true. Its about the new features for Web Appl...