1
我想在构建自定义项目后获得托管解决方案。但在默认.TARGET文件没有指定“/ packagetype”在托管解决方案的一部分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" />
我所有的努力,以指定“/ packagetype”参数(如“/ P:托管”或'-p:托管')不成功。我做错了什么?
UPD
输出为:
1> Solution package type did not match requested type.
1> Command line argument: Unmanaged
1> Package type: Managed
我在哪里可以更改命令行参数?