我很想知道在为新项目类型制作MonoDevelop Addins时如何将“复制到输出目录”选项设置为“复制如果更新”?
以这段代码为例,...我需要添加什么才能在构建时将“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>
答案 0 :(得分:1)
目前无法为modifying core添加属性或registering a custom template type。
但是,TBH而不是copy-to-output我会使用自定义构建操作和构建扩展来复制带有该构建操作的文件。