我在想如何在爲新項目類型創建MonoDevelop Addins時如何將「複製到輸出目錄」選項設置爲「複製如果是新的」? ?MonoDevelop Addin:如何在「xpt.xml」文件中設置CopyToOutput構建選項
拿這塊代碼爲例,...我需要添加什麼來獲取「manifest.json」在構建時複製到輸出目錄?
<?xml version="1.0"?>
<Template originator = "Andrew Witte">
<TemplateConfiguration>
<_Name>MonoNaCl Project</_Name>
<_Category>C#/MonoNaCl</_Category>
<LanguageName>C#</LanguageName>
<_Description>Creates a MonoNaCl project.</_Description>
</TemplateConfiguration>
<!-- Actions -->
<Actions>
<Open filename = "Internal.c"/>
<Open filename = "Main.cs"/>
</Actions>
<Combine name = "${ProjectName}" directory = ".">
<Options>
<StartupProject>${ProjectName}</StartupProject>
</Options>
<References>
<Reference type="Gac" refto="System" />
</References>
<Project name = "${ProjectName}" directory = "." type = "MonoNaCl">
<Options Target = "Exe"/>
<Files>
<File name="manifest.json">
<![CDATA[{
"name": "MonoNaCl",
"description": "Mono for NaCl project.",
"version": "1.0.0",
"icons": {
},
"requirements": {
"3D": {
"features": ["css3d", "webgl"]
}
},
"app": {
"launch": {
"local_path": "${ProjectName}.html"
}
}
}
]]></File>
</Files>
</Project>
</Combine>
</Template>
你有沒有找到解決方案? – 7sharp9
@ 7sharp9 Ya當項目構建時,我必須自己手動複製這些文件。代碼過時,但這裏是我所做的:https://github.com/reignstudios/ReignSDK/blob/master/Tools/MonoDevelop.MonoNaCl/MonoDevelop.MonoNaCl/Projects/MonoNaClProject.cs#L398 – zezba9000