alkampfer on February 22nd, 2011

I have a VS2008 project that is being converted to VS2010. This solution has a MsTest test project used to run database test against a Database project. After conversion you need to target the 4.0 framework for the test project, you run the test and you get Microsoft.Build.BuildEngine.InvalidProjectFileException: Microsoft.Build.BuildEngine.InvalidProjectFileException: The expression "HKEY_LOCAL_MACHINESOFTWAREMicrosoftVisualStudio9.0VSTSDB@VSTSDBDirectory" cannot be evaluated. [...]

kick it on DotNetKicks.com

Continue reading about Migrate MsTest of database edition to VS2010

When you create database test in a MsTest project, usually it configure an initialization method that deploy the database schema before test runs. [AssemblyInitialize()] public static void IntializeAssembly(TestContext ctx) { //Setup the test database based on setting in the //configuration file DatabaseTestClass.TestService.DeployDatabaseProject(); If something went wrong during this phase you probably will end with this [...]

kick it on DotNetKicks.com

Continue reading about Failed to deploy database project error during database testing