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
我在哪裏可以更改命令行參數?