开发者

unable to obtain public key for StrongNameKeyPair

开发者 https://www.devze.com 2022-12-21 11:10 出处:网络
I have visual studio 2008 running on a Window开发者_Go百科s 2008 virtual PC.I decided to try out the Microsoft Test Tools built into the IDE (as opposed to NUnit, which I typically use).Using the Unit

I have visual studio 2008 running on a Window开发者_Go百科s 2008 virtual PC. I decided to try out the Microsoft Test Tools built into the IDE (as opposed to NUnit, which I typically use). Using the Unit Testing wizard, VS adds a new test project to the source tree, creates a bunch of unit tests.

When I try and compile, I get this "Unable to obtain public key for StrongNameKeyPair" error. I've checked the properties for both my project and the unit test project, and I am signing a key for each of them...

Google suggests I call "sn.exe -m n" "sn.exe -c"

But that doesn't work.

Any ideas what I could try?


MSDN forum thread seems to describe your very problem: unit test and protected keys are not supported. The thread has suggestions and work-arounds.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号