What is the relative path root of DeploymentItemAttribute?
问题 Using MSTest, what is the relative path root of the DeploymentItemAttribute. 回答1: Per the MSDN page... Relative paths are relative to the RelativePathRoot setting found in the .testrunconfig file. That setting is, by default, the Solution directory . So, if you have this project structure SecretProject\ ComponentA\ ComponentA.Test\ Resources\ required.xml ComponentA.Test.csproj Tests.cs SecretProject.sln And you want to deploy required.xml , you're going to create a DeploymentItemAttribute