Why does visual studio 2012 not find my tests?

后端 未结 30 3299
盖世英雄少女心
盖世英雄少女心 2020-12-07 10:51

I have some tests that use the built in Microsoft.VisualStudio.TestTools.UnitTesting, but can not get them to run.

I am using visual studio 2012 ultimat

30条回答
  •  臣服心动
    2020-12-07 11:03

    Since the project is on a shared drive as the original poster have indicated. VS.NET needs to trust network location before it will load and run your test assemblies. Have a read of this blog post.

    To allow VS.NET to load things of a network share one needs to add them (shares) to trusted locations. To add a location to a full trust list run (obviously amend as required for you environment):

     caspol -m -ag 1.2 -url file:///H:/* FullTrust
    

    To verify or list existing trusted locations run:

     caspol -lg
    

提交回复
热议问题