Initial efforts to convert/migrate the Microsoft Health Common User Interface from VS2008 to VS2010 failed miserably. There were so many errors it wasn't real apparent where to start (after a few hours I gave up).
After having converted a number of other programs I found there are a few consistent problems that once resolved move things along nicely. They revolve around "Treat warnings as errors", Code Analysis and missing references. If one of these occurs on an assembly that multiple projects have references to the error rate is compounded (making it harder to find).
After make the following few changes I found the Health Common User Interface compiles under VS2010:
Microsoft.Cui.SamplePages --- Add reference to System.Net
Microsoft.Cui.SampleWinForm --- Select None for "Treat warning as errors"
Uncheck "Enable Code Analysis on Build" for the following files:
-
Microsoft.Cui.ShowcaseControls
-
Microsoft.Cui.SamplePages
-
Microsoft.Cui.Roadmap
-
Microsoft.Cui.IsvDataProvider
-
Microsoft.Cui.Data
-
Microsoft.Cui.Controls
You'll want to remove the following three Unit Test
- NhsCui.Toolkit.Test
- NhsCui.Toolkit.Web.Test
- NhsCui.Toolkit.WinForms.Test
If you don't you'll be prompted to convert the solution each time you load it as it will attempt to convert these and will fail.
Once the steps are complied with you can compile successfully!
Tags:
vs2010,
health,
compile
Categories:
Visual Studio 2010