我知道有一些关于此问题的话题,例如thread。但是不同的是,如果直接在VS Studio 2015中构建解决方案,则我的解决方案将成功编译。
但是,如果我使用 msbuild 命令,则会收到上述错误。我正在使用以下构建命令:
msbuild /t:clean,build /p:Configuration=Release;Platform="x86";VisualStudioVersion=14.0 /p:PreBuildEvent= /p:PostBuildEvent= /p:AllowedReferenceRelatedFileExtensions=.pdb
然后出现以下错误:
error MSB3325: Cannot import the following key file: Configuration.
pfx. The key file may be password protected. To correct this, try to import the
certificate again or manually install the certificate to the Strong Name CSP w
ith the following key container name: VS_KEY_826B35EBE3A820DC [C:\Projekte\blabla\Configuration\Configuration.csproj]
error MSB3321: Importing key file "Configuration.pfx" was canceled.
[C:\Projekte\feature_Config\PODSCS\Configuration\Configuration.csproj]
我的命令行中是否缺少参数?