diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2013-07-19 13:36:54 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@xamarin.com> | 2013-07-19 13:36:54 +0400 |
commit | ad42a67be68eff1075a03b14594a91290eec3b6c (patch) | |
tree | 07024463638e25202109ba06ee7bebfad9f325d0 /main/src/addins/MonoDevelop.HexEditor | |
parent | b1bd024c3c8305528a6ba25e85ac71b6dcd34e77 (diff) |
Use attributes to define the add-in version and dependencies
Diffstat (limited to 'main/src/addins/MonoDevelop.HexEditor')
3 files changed, 19 insertions, 20 deletions
diff --git a/main/src/addins/MonoDevelop.HexEditor/AddinInfo.cs b/main/src/addins/MonoDevelop.HexEditor/AddinInfo.cs new file mode 100644 index 0000000000..2552332a10 --- /dev/null +++ b/main/src/addins/MonoDevelop.HexEditor/AddinInfo.cs @@ -0,0 +1,16 @@ + +using System; +using Mono.Addins; +using Mono.Addins.Description; + +[assembly:Addin ("HexEditor", + Namespace = "MonoDevelop", + Version = MonoDevelop.BuildInfo.Version, + Category = "IDE extensions")] + +[assembly:AddinName ("MonoDevelop Hex Editor")] +[assembly:AddinDescription ("Provides a hex editor for MonoDevelop")] + +[assembly:AddinDependency ("Core", MonoDevelop.BuildInfo.Version)] +[assembly:AddinDependency ("Ide", MonoDevelop.BuildInfo.Version)] +[assembly:AddinDependency ("AssemblyBrowser", MonoDevelop.BuildInfo.Version)] diff --git a/main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor.addin.xml b/main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor.addin.xml index c8a23e7d12..70d5a7a9fe 100644 --- a/main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor.addin.xml +++ b/main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor.addin.xml @@ -1,22 +1,4 @@ -<Addin id = "HexEditor" - namespace = "MonoDevelop" - name = "MonoDevelop Hex Editor" - author = "Mike Krüger" - copyright = "" - url = "" - description = "Provides a hex editor for MonoDevelop" - category = "IDE extensions" - version = "4.1.7"> - - <Runtime> - <Import assembly="MonoDevelop.HexEditor.dll"/> - </Runtime> - - <Dependencies> - <Addin id="Core" version="4.1.7"/> - <Addin id="Ide" version="4.1.7"/> - <Addin id="AssemblyBrowser" version="4.1.7"/> - </Dependencies> +<ExtensionModel> <!-- <Extension path = "/MonoDevelop/Ide/Commands"> <Command id = "MonoDevelop.HexEditor.Commands.ShowHexEditor" _label = "Open with _hex editor" /> @@ -39,4 +21,4 @@ </Condition> </Extension> --> -</Addin> +</ExtensionModel> diff --git a/main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor.csproj b/main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor.csproj index dd500eeef3..4612400c3e 100644 --- a/main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor.csproj +++ b/main/src/addins/MonoDevelop.HexEditor/MonoDevelop.HexEditor.csproj @@ -99,6 +99,7 @@ <Compile Include="MonoDevelop.HexEditor\HexEditorView.cs" /> <Compile Include="MonoDevelop.HexEditor\MonoDevelopHexEditorStyle.cs" /> <Compile Include="MonoDevelop.HexEditor\HexEditorNodeExtension.cs" /> + <Compile Include="AddinInfo.cs" /> </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <ItemGroup> |