locked
DeploymentItem doesn't work

    Question

  • Hello.

    I have following project structure:

    Solution
    -My.Project
    -My.Project.Test
    --Resources
    ---mytest.file
    

    In my test file following method:

    [TestMethod]

    [DeploymentItem("My.Project.Test\\Resources\\mytest.file", @"Resources")]

    TestMethod()

    {

    ....

    string path = "Resources\\mytest.file"; ....

    }

    In according to http://msdn.microsoft.com/en-us/library/ms182475%28VS.80%29.aspx I want use only DeployItemAttribute without "Deployment Items property".

    But when debugged it method i catch exception: "File not found".

    How can I do?

    Best regards!

    Sunday, October 14, 2012 5:59 AM

Answers

All replies