Skip to content

Commit

Permalink
Merge pull request #9 from InventorCode/feat/addedIpluginMembers
Browse files Browse the repository at this point in the history
chore: upgrade InventorCode.Plugin package
  • Loading branch information
jordanrobot authored Dec 11, 2021
2 parents 656226b + 87d6850 commit ba0c87a
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 13 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.4.1](https://www.nuget.org/packages/InventorCode.AddinTemplates/)

### Added

- `inv-pluginhost` and `inv-plugin` now use InventorCode.Plugin 0.6.0

## [0.4.0](https://www.nuget.org/packages/InventorCode.AddinTemplates/)

### Added
Expand Down
9 changes: 4 additions & 5 deletions InventorAddinSdk.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>InventorCode.AddinTemplates</id>
<version>0.4.0</version>
<version>0.4.1</version>
<description>
Customizable Autodesk Inventor add-in templates for the dotnet new templating engine.
</description>
Expand All @@ -14,12 +14,11 @@
<icon>icon.png</icon>
<projectUrl>https://github.com/InventorCode/inventor-addin-templates</projectUrl>
<releaseNotes>
## [0.4.0](https://www.nuget.org/packages/InventorCode.AddinTemplates/)
## [0.4.1](https://www.nuget.org/packages/InventorCode.AddinTemplates/)

### Added
### Fix

- inv-pluginhost template
- inv-plugin template
- inv-plugin and inv-pluginhost updated to use InventorCode.Plugin 0.6.0
</releaseNotes>
</metadata>
<files>
Expand Down
2 changes: 1 addition & 1 deletion nuget-push-script.ps1
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nuget push nupkg/InventorCode.AddinTemplates.0.4.0.nupkg -Source https://api.nuget.org/v3/index.json
nuget push nupkg/InventorCode.AddinTemplates.0.4.1.nupkg -Source https://api.nuget.org/v3/index.json
2 changes: 1 addition & 1 deletion templates/inv-plugin-host/inv-plugin-host.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="InventorCode.Plugin" Version="0.4.2" />
<PackageReference Include="InventorCode.Plugin" Version="0.6.0" />
</ItemGroup>

<ItemGroup>
Expand Down
18 changes: 13 additions & 5 deletions templates/inv-plugin/Main.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using Inventor;
using Microsoft.Win32;
using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using InventorCode.Plugin;
using System.ComponentModel.Composition;
using System.Reflection;
using System.Windows.Forms;

namespace InvAddinPlugin
{
Expand All @@ -24,6 +22,8 @@ public class Main : IPlugin
private Inventor.Application _inventorApplication;
private string _clientId;

#region IPlugin Members

public void Activate(Inventor.Application InventorApplication, string ClientId, bool firstTime = true)
{
_inventorApplication = InventorApplication;
Expand All @@ -39,5 +39,13 @@ public void Deactivate()
public void Execute()
{
}

public CommandControl ExecuteSettings { get; set; }

public string Name { get => Assembly.GetExecutingAssembly().GetName().Name; }

public string Version { get => Assembly.GetExecutingAssembly().GetName().Version.ToString(); }

#endregion IPlugin Members
}
}
}
2 changes: 1 addition & 1 deletion templates/inv-plugin/inv-plugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="InventorCode.Plugin" Version="0.4.2" />
<PackageReference Include="InventorCode.Plugin" Version="0.6.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit ba0c87a

Please sign in to comment.