我在构建自定义项目后尝试获取托管解决方案。但是在默认的.target文件中没有指定" / packagetype" Managed Solution部分中SolutionPackager的参数:
<!-- Unmanaged solution -->
<Exec Condition="'$(SolutionType)' == '0' or '$(SolutionType)' == '2'"
Command="REM SET AssemblyVersionDefinitionFile=$(AssemblyVersionDefinitionFile)
REM SET AssemblyVersionName=$(AssemblyVersionName)
"$(SolutionPackagerDir)\SolutionPackager.exe" -a:pack -z:"$(OutDir)$(TargetName).zip" -f:"$(IntermediateOutputPath)\$(BeforeLocDir)"" />
<!-- Managed solution -->
<Exec Condition="'$(SolutionType)' == '0' or '$(SolutionType)' == '2'"
Command="REM SET AssemblyVersionDefinitionFile=$(AssemblyVersionDefinitionFile)
REM SET AssemblyVersionName=$(AssemblyVersionName)
"$(SolutionPackagerDir)\SolutionPackager.exe" -a:pack -z:"$(OutDir)$(TargetName)_managed.zip" -f:"$(IntermediateOutputPath)\$(BeforeLocDir)" -p:Managed" />
我所有尝试指定&#34; / packagetype&#34;论证(如&#39; / p:管理&#39;或&#39; -p:管理&#39;)均未成功。我做错了什么?
UPD
输出是:
1> Solution package type did not match requested type.
1> Command line argument: Unmanaged
1> Package type: Managed
我可以在哪里更改命令行参数?