For today, a quick note for future reference. If you have a C++/CLI project and you are getting the error
MSB3073: The command "sn -Ra "YourProject.dll" "YourKey.snk"
:VCEnd" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets
Then try adding the following two lines to your AssemblyInfo.cpp
[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.
No comments:
Post a Comment