MSTest run fails because source assembly is not trusted

前端 未结 10 1446
谎友^
谎友^ 2020-12-23 11:18

I just added xUnit to our test project (for the Asserts, we\'re still using MSTest as the framework) and immediately the test runs refused to execute any of the tests. This

10条回答
  •  时光取名叫无心
    2020-12-23 12:00

    It may seem really obvious now, but when I was clicking unblock the file was set as read-only.

    Only after un-checking that attribute, applying, then selecting unblock did I actually get this working.

    Give that a go.

    :)

    PS: I also deleted all the old dll's in my bin folder, just to make sure Visual Studio wasn't picking up the old one.

提交回复
热议问题