DeploymentItem behaving differently in VS2010 and VS2012
问题 I have a VS2010 solution that I'm trying to upgrade to VS2012. I'm having a problem with the MSTest unit tests in VS2012. All of the tests include DeploymentItem attributes on the test class. [TestClass] [DeploymentItem(@"SubDir\SubDir2\models", "models")] public class UnitTests { ... } In 2010, it's correctly copying dependent files from the SolutionDirectory\SubDir\SubDir2\models directory. In 2012, it's attempting to copy from the directory where the tests are deployed SolutionDirectory