For today, a quick note for future reference. If you have a C++/CLI project and you are getting the error
1 2 |
MSB3073: The command "sn -Ra "YourProject.dll" "YourKey.snk" :VCEnd" exited with code 1. C:Program Files (x86)MSBuildMicrosoft.Cppv4.0Microsoft.CppCommon.targets |
Then try adding the following two lines to your AssemblyInfo.cpp
1 2 |
[assembly:AssemblyKeyFileAttribute("application_key.snk")]; [assembly:AssemblyDelaySignAttribute(true)]; |
and check if it solves the issue. Hope this can be useful for others facing this same situation I encountered some days earlier.
thanks that fixed my issue 🙂
I am glad I could help! 🙂