visual-studio-2010

How can i reload my layout and apply the changes in silverlight 4

i do a localized application using silverligth 4. after changing my culture thread i do LayoutRoot.Children.Clear(); MainPage MyPage = new MainPage(); LayoutRoot.Children.Add(MyPage); but i get an error "value does not fall within the expected range" how can i reload the layout to apply the language changing ...

VS2010 / Target Framework = 3.5 / Building on Continuous Integration Server

I'm checking into upgrading to VS2010. Our production servers only have 3.5 Framework and it will be 6-9 months before they are updated. We also have a Continuous Integration Server, running CruiseControl.NET (CC.NET). It has the 3.5 Framework on it as well. Our implementation of CC.NET mainly calls msbuild.exe MySolution.msbuild. (We...

Get methods covered by a unit test

Is is possible to do the following from a Visual Studio 2010 plugin? If yes, how? Run all unittests in solution (with code coverage enabled) Wait for all tests to complete For successfully completed tests: Determine which methods were called during each test (directly by the test or indirectly by the tested methods). And store their na...

Using content from the project in tests

I am working with Visual Studio 2010 and it's integrated testing functionality. I have an XML file in my project which is set to copy to the output directory. I can access the file just fine when I compile and run the project. But it doesn't exist when I attempt to access it within a TestMethod. It looks like the test is run with the ...

Does someone have used Network Emulator API exposed in VS 2010

Hi, I have seen VS2010 exposing Network Emulator API. I have installed it and trying to use this API, but not able detect whether it is really running with this code or not. Sometime I have given wrong profile name but it does not throw any error. Please find below my piece of code. If some one have used it please help me. IntPtr m_emu...

Startup params for Silverlight 4 app

Hello -- We are moving our SL3 app to SL4. First step was to open it in VS2010; it converted w/o problem. However, parameters specified for the start page are not passed along. That is, if we specify ourStartPage.aspx?Slam=Dunk&Glass=Sun in app.xaml.cs, Application_Startup(), e.InitParams is empty. How do we fix this? Thanks for any...

Multi targeting hell and changing project defaults

OK. I was going a little crazy today with a WPF project. I'm using VS2010 with .NET 4.0 and I added a simple reference to another project in my solution, added a member variable of one of the referenced types and tried to compile. Nothing. Well, something. It did not recognize the type at all. I verified at the namespace using st...

Why does VS2010 always break on exception from MethodInfo.Invoke?

I have a try/catch around a MethodInfo.Invoke(o,null), and VS2010 is set to never break on Exceptions, but unfortunately the debugger continues to break inside the Invoked method. The method is static, and I've got the Phone Developer Beta installed. Is this a bug or developer error? Thx!! ...

Visual Studio 2010 F# Library Debugging

VS Version 10.0.30128.1 RC1Rel I have a solution that contains an F# Library and an F# Console application, which references the library (through the referenced projects). I want to be able to step into the library from the console APP, but it is stepping over instead. Is this a known issue? Has anybody had success accomplishing de...

visual studio 2010 add reference version missing

In VS2008 when I add a reference to a dll e.g log4Net I get the following in csproj <Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> <HintPath>..\..\lib\log4net\log4net.dll</HintPath> </Reference> In VS...

Why does Schema Compare in Visual Studio 2010 show differences when there are none?

I had hoped that Visual Studio 2010 would have brought some improvements to the Schema Comparison function. I suspect there are some, but I can't get something basic working. I've sucked in a schema from a SQL Server 2005 database. Then to assure things were working, I did a schema compare choosing the database as the source and my sc...

Stop silverlight or wpf usercontrols from loading in the toolbox?

I have a project with 100's of usercontrols. When I load the project in VS2010 and try to open a designer, the toolbox spins and spins until they're all loaded. Winforms has a "AutoToolboxPopulate" switch under Tools/Options/Winddows Forms Designer/General. I cannot find a similar switch for the XAML designer. Does one exist? ...

VS2010: Syntax Color Highlighting and Intellisense in a JS file.

I have an external *.js file that contains Javascript. How do I get teh same intellisense and color highlighting as I do in an ASPX page? Here's my options for the js extension (set to 'Script Editor') And here's what it looks like in an ASPX page (How I would like it to look.) BTW, I did a full reset my Settings, setting them to V...

What does the Microsoft.WebApplication.targets import do in VS 2010 web application projects?

Visual Studio 2010 seems to insist on having this import in web application projects <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" /> What does this import give us and is it really required? On a side note if you remove this import with a text editor Visual ...

VS2010 and Windows XP SP3

At home I've been running VS 2010 on a Windows 7 x64 machine without any issues, however at work we recently switched over to VS 2010 running on WinXP SP3 x86 - and I gotta say, the experience is terrible. There are severe graphical glitches. For ex, Intellisense doesn't quite work. You can start typing and the intellisense dropdown ...

Visual studio 2010 setup project problem.

Hi there, I've made an application that uses .NET framework 3.5 SP1 and SQL Server 2008 Express. Application is fine and now i'm going to to make a setup project for this. When I first build my setup it was fine as all the prerequisites were not included in setup. But I want my setup to install .NET 3.5 SP1 and SQL SERVER 2008 Express...

Binding the property to a control defined inside a listboxitem template

I have a class called ledgerObject : public class LedgerObject { public ChargeLine ChargeLine{ get; set; } public DelegateCommand Click_hyperbnCommand{ get; private set; } public LedgerObject() { this.Click_hyperbnCommand = new DelegateCommand(click_btn); } private void click_btn(object args) { ...

Can I reuse the downloaded files from the VS2010 web installer

I installed VS2010 pro using the web installer, but now need to install it on another machine. As this new install will require the same features as my current install, is it possible to reuse the files already downloaded? And if so, how is this achieved? ...

Change Visual studio 2010 color palette

I really like Visual studio. I think it is awesome IDE ever been made for developers. But color scheme in new VS2010 is really ugly, so the first thing i'd like to do after install is to change its color palette. I googled how to do this and found VS extension by Matthew Johnson [MSFT]. If you know another way to change color palette in ...

How to configure Entity Framework 4 to prevent drop when generate database

Hi, is there any option when updating classes in EF4 Modeller to disable the drop of all data and tables, just to append non existing fields and leave old tables and data untouched. I mean not to change every time on every little change to edit manual the SQL files. Thanks. ...