Skip to content

Commit

Permalink
added msbuild properties and tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
pmahend1 committed Sep 21, 2020
1 parent a6da74e commit f42a25a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 36 deletions.
17 changes: 16 additions & 1 deletion PrettyXML.VSMac/PrettyXML.VSMac/PrettyXML.VSMac.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<Target Name="PackageAddin" AfterTargets="Build"></Target>
<PropertyGroup>
<TargetFramework>net471</TargetFramework>
<TargetFramework>net48</TargetFramework>
<IsAddin>True</IsAddin>
<CreatePackage>True</CreatePackage>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MonoDevelop.Addins" Version="0.4.7" />
Expand All @@ -10,4 +15,14 @@
<HintPath>lib\XmlFormatter.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Properties\Manifest.addin.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Update="logo.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
8 changes: 4 additions & 4 deletions PrettyXML.VSMac/PrettyXML.VSMac/Properties/AddinInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
[assembly: Addin(
"PrettyXML VS Mac",
Namespace = "PrettyXML.VSMac",
Version = "1.0",
Category = "Language Bindings",
Version = "1.0.0-beta",
Category = "Code formatters",
Flags = AddinFlags.None,
EnabledByDefault = true,
Url = "https://github.com/pmahend1/PrettyXML.VSMac"
)]

[assembly: AddinName("PrettyXML.VSMac")]
[assembly: AddinCategory("IDE extensions")]
[assembly: AddinName("PrettyXML VS Mac")]
[assembly: AddinCategory("Code formatters")]
[assembly: AddinDescription("PrettyXML.VSMac")]
[assembly: AddinAuthor("Prateek Mahendrakar")]
41 changes: 10 additions & 31 deletions PrettyXML.VSMac/PrettyXML.VSMac/Properties/Manifest.addin.xml
Original file line number Diff line number Diff line change
@@ -1,38 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<Addin author="Prateek Mahendrakar"
id="PrettyXML.VSMac"
name="PrettyXML"
namespace="PrettyXML.VSMac"
description="Formats XML just like Visual Studio Windows"
version="0.0.7"
url="https://github.com/pmahend1/PrettyXML.VSMac">
<Header>
<Icon32>logo.png</Icon32>
<UpdateRank>MySpecialTag:Important Minor</UpdateRank>
<ReleaseNotes>
{{0.0.7, 2020-09-16}}
First version
</ReleaseNotes>
</Header>
<ExtensionModel>
<ExtensionModel>
<Runtime>
<Import assembly="XMLFormatter.dll" />
<Import assembly="XmlFormatter.dll" />
</Runtime>
<!-- region works -->
<Extension path="/MonoDevelop/Ide/Commands/Edit">
<Command id="PrettyXML.VSMac.PrettyXMLCommands.FormatXML"
_label="PrettyXML - Format"
defaultHandler="PrettyXML.VSMac.XMLFormatter"
macShortcut="Meta+K|J Meta+K|Meta+J"
shortcut="Control+K|J Control+K|Control+J"
description="Formats XML just like Visual Studio" />
<Command id="PrettyXML.VSMac.PrettyXMLCommands.FormatXML"
_label="Prettify XML"
defaultHandler="PrettyXML.VSMac.XMLFormatter"
macShortcut="Meta+K|J Meta+K|Meta+J"
shortcut="Control+K|J Control+K|Control+J"
description="Formats XML just like Visual Studio" />
</Extension>
<Extension path="/MonoDevelop/Ide/MainMenu/Edit">
<CommandItem id="PrettyXML.VSMac.PrettyXMLCommands.FormatXML" />
<CommandItem id="PrettyXML.VSMac.PrettyXMLCommands.FormatXML" />
</Extension>
<!-- region works -->
<Extension path="/MonoDevelop/Ide/UpdateTags">
<Tag id="MySpecialTag" />
</Extension>
</ExtensionModel>
</Addin>
</ExtensionModel>

0 comments on commit f42a25a

Please sign in to comment.