├── .gitattributes ├── .gitignore ├── AcadAddinManager.csproj ├── AcadAddinManager.sln ├── AcadAddinManager.sln.DotSettings ├── AcadHelper.cs ├── AddinManager.Bundle.zip ├── AddinManager.Bundle ├── AddinManager.cuix ├── Contents │ └── AcadAddinManager.dll └── PackageContents.xml ├── AddinManagerService.cs ├── App.cs ├── Data ├── Addin.cs ├── AddinsData.cs └── CommandMethod.cs ├── FodyWeavers.xml ├── Properties └── AssemblyInfo.cs ├── README.md ├── UI ├── AddinVM.cs ├── AddinsVM.cs ├── AddinsView.xaml └── AddinsView.xaml.cs ├── lib ├── AcCoreMgd.dll ├── AcCoreMgd.xml ├── AcDbMgd.dll ├── AcDbMgd.xml ├── AcMgd.dll └── AcMgd.xml ├── stylecop.ruleset └── version.json /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | x64/ 19 | x86/ 20 | bld/ 21 | [Bb]in/ 22 | [Oo]bj/ 23 | [Ll]og/ 24 | 25 | # Visual Studio 2015 cache/options directory 26 | .vs/ 27 | # Uncomment if you have tasks that create the project's static files in wwwroot 28 | #wwwroot/ 29 | 30 | # MSTest test Results 31 | [Tt]est[Rr]esult*/ 32 | [Bb]uild[Ll]og.* 33 | 34 | # NUNIT 35 | *.VisualState.xml 36 | TestResult.xml 37 | 38 | # Build Results of an ATL Project 39 | [Dd]ebugPS/ 40 | [Rr]eleasePS/ 41 | dlldata.c 42 | 43 | # DNX 44 | project.lock.json 45 | project.fragment.lock.json 46 | artifacts/ 47 | 48 | *_i.c 49 | *_p.c 50 | *_i.h 51 | *.ilk 52 | *.meta 53 | *.obj 54 | *.pch 55 | *.pdb 56 | *.pgc 57 | *.pgd 58 | *.rsp 59 | *.sbr 60 | *.tlb 61 | *.tli 62 | *.tlh 63 | *.tmp 64 | *.tmp_proj 65 | *.log 66 | *.vspscc 67 | *.vssscc 68 | .builds 69 | *.pidb 70 | *.svclog 71 | *.scc 72 | 73 | # Chutzpah Test files 74 | _Chutzpah* 75 | 76 | # Visual C++ cache files 77 | ipch/ 78 | *.aps 79 | *.ncb 80 | *.opendb 81 | *.opensdf 82 | *.sdf 83 | *.cachefile 84 | *.VC.db 85 | *.VC.VC.opendb 86 | 87 | # Visual Studio profiler 88 | *.psess 89 | *.vsp 90 | *.vspx 91 | *.sap 92 | 93 | # TFS 2012 Local Workspace 94 | $tf/ 95 | 96 | # Guidance Automation Toolkit 97 | *.gpState 98 | 99 | # ReSharper is a .NET coding add-in 100 | _ReSharper*/ 101 | *.[Rr]e[Ss]harper 102 | *.DotSettings.user 103 | 104 | # JustCode is a .NET coding add-in 105 | .JustCode 106 | 107 | # TeamCity is a build add-in 108 | _TeamCity* 109 | 110 | # DotCover is a Code Coverage Tool 111 | *.dotCover 112 | 113 | # NCrunch 114 | _NCrunch_* 115 | .*crunch*.local.xml 116 | nCrunchTemp_* 117 | 118 | # MightyMoose 119 | *.mm.* 120 | AutoTest.Net/ 121 | 122 | # Web workbench (sass) 123 | .sass-cache/ 124 | 125 | # Installshield output folder 126 | [Ee]xpress/ 127 | 128 | # DocProject is a documentation generator add-in 129 | DocProject/buildhelp/ 130 | DocProject/Help/*.HxT 131 | DocProject/Help/*.HxC 132 | DocProject/Help/*.hhc 133 | DocProject/Help/*.hhk 134 | DocProject/Help/*.hhp 135 | DocProject/Help/Html2 136 | DocProject/Help/html 137 | 138 | # Click-Once directory 139 | publish/ 140 | 141 | # Publish Web Output 142 | *.[Pp]ublish.xml 143 | *.azurePubxml 144 | # TODO: Comment the next line if you want to checkin your web deploy settings 145 | # but database connection strings (with potential passwords) will be unencrypted 146 | #*.pubxml 147 | *.publishproj 148 | 149 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 150 | # checkin your Azure Web App publish settings, but sensitive information contained 151 | # in these scripts will be unencrypted 152 | PublishScripts/ 153 | 154 | # NuGet Packages 155 | *.nupkg 156 | # The packages folder can be ignored because of Package Restore 157 | **/packages/* 158 | # except build/, which is used as an MSBuild target. 159 | !**/packages/build/ 160 | # Uncomment if necessary however generally it will be regenerated when needed 161 | #!**/packages/repositories.config 162 | # NuGet v3's project.json files produces more ignoreable files 163 | *.nuget.props 164 | *.nuget.targets 165 | 166 | # Microsoft Azure Build Output 167 | csx/ 168 | *.build.csdef 169 | 170 | # Microsoft Azure Emulator 171 | ecf/ 172 | rcf/ 173 | 174 | # Windows Store app package directories and files 175 | AppPackages/ 176 | BundleArtifacts/ 177 | Package.StoreAssociation.xml 178 | _pkginfo.txt 179 | 180 | # Visual Studio cache files 181 | # files ending in .cache can be ignored 182 | *.[Cc]ache 183 | # but keep track of directories ending in .cache 184 | !*.[Cc]ache/ 185 | 186 | # Others 187 | ClientBin/ 188 | ~$* 189 | *~ 190 | *.dbmdl 191 | *.dbproj.schemaview 192 | *.jfm 193 | *.pfx 194 | *.publishsettings 195 | node_modules/ 196 | orleans.codegen.cs 197 | 198 | # Since there are multiple workflows, uncomment next line to ignore bower_components 199 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 200 | #bower_components/ 201 | 202 | # RIA/Silverlight projects 203 | Generated_Code/ 204 | 205 | # Backup & report files from converting an old project file 206 | # to a newer Visual Studio version. Backup files are not needed, 207 | # because we have git ;-) 208 | _UpgradeReport_Files/ 209 | Backup*/ 210 | UpgradeLog*.XML 211 | UpgradeLog*.htm 212 | 213 | # SQL Server files 214 | *.mdf 215 | *.ldf 216 | 217 | # Business Intelligence projects 218 | *.rdl.data 219 | *.bim.layout 220 | *.bim_*.settings 221 | 222 | # Microsoft Fakes 223 | FakesAssemblies/ 224 | 225 | # GhostDoc plugin setting file 226 | *.GhostDoc.xml 227 | 228 | # Node.js Tools for Visual Studio 229 | .ntvs_analysis.dat 230 | 231 | # Visual Studio 6 build log 232 | *.plg 233 | 234 | # Visual Studio 6 workspace options file 235 | *.opt 236 | 237 | # Visual Studio LightSwitch build output 238 | **/*.HTMLClient/GeneratedArtifacts 239 | **/*.DesktopClient/GeneratedArtifacts 240 | **/*.DesktopClient/ModelManifest.xml 241 | **/*.Server/GeneratedArtifacts 242 | **/*.Server/ModelManifest.xml 243 | _Pvt_Extensions 244 | 245 | # Paket dependency manager 246 | .paket/paket.exe 247 | paket-files/ 248 | 249 | # FAKE - F# Make 250 | .fake/ 251 | 252 | # JetBrains Rider 253 | .idea/ 254 | *.sln.iml 255 | 256 | # CodeRush 257 | .cr/ 258 | 259 | # Python Tools for Visual Studio (PTVS) 260 | __pycache__/ 261 | *.pyc 262 | *.jar 263 | FodyWeavers.xsd 264 | -------------------------------------------------------------------------------- /AcadAddinManager.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {D64C4A0A-6F50-4BF2-9252-043256B9F8CC} 8 | {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 9 | Library 10 | Properties 11 | AcadAddinManager 12 | AcadAddinManager 13 | v4.7.1 14 | 512 15 | 16 | 17 | 18 | 19 | 20 | true 21 | full 22 | false 23 | bin\Debug\ 24 | DEBUG;TRACE 25 | prompt 26 | 4 27 | latest 28 | x64 29 | 30 | 31 | pdbonly 32 | false 33 | bin\Release\ 34 | TRACE 35 | prompt 36 | 4 37 | latest 38 | x64 39 | 40 | 41 | true 42 | 43 | 44 | 45 | lib\AcCoreMgd.dll 46 | False 47 | 48 | 49 | lib\AcDbMgd.dll 50 | False 51 | 52 | 53 | lib\AcMgd.dll 54 | False 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | AddinsView.xaml 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | Designer 112 | MSBuild:Compile 113 | 114 | 115 | 116 | 117 | 4.1.0 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | xcopy "$(ProjectDir)bin\Debug" "c:\ProgramData\Autodesk\ApplicationPlugins\AddinManager.Bundle\Contents\" /Y /C /Q 128 | 129 | 130 | -------------------------------------------------------------------------------- /AcadAddinManager.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.27004.2005 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AcadAddinManager", "AcadAddinManager.csproj", "{D64C4A0A-6F50-4BF2-9252-043256B9F8CC}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {D64C4A0A-6F50-4BF2-9252-043256B9F8CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {D64C4A0A-6F50-4BF2-9252-043256B9F8CC}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {D64C4A0A-6F50-4BF2-9252-043256B9F8CC}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {D64C4A0A-6F50-4BF2-9252-043256B9F8CC}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {2480AF53-6AA5-43FA-9667-9CE23EFE81FF} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /AcadAddinManager.sln.DotSettings: -------------------------------------------------------------------------------- 1 |  2 | True 3 | <?xml version="1.0" encoding="utf-16"?><Profile name="PIK"><CSReorderTypeMembers>True</CSReorderTypeMembers><CSCodeStyleAttributes ArrangeTypeAccessModifier="False" ArrangeTypeMemberAccessModifier="False" SortModifiers="True" RemoveRedundantParentheses="False" AddMissingParentheses="False" ArrangeBraces="False" ArrangeAttributes="False" ArrangeArgumentsStyle="False" ArrangeCodeBodyStyle="False" ArrangeVarStyle="False" /><CSArrangeQualifiers>True</CSArrangeQualifiers><CSOptimizeUsings><OptimizeUsings>True</OptimizeUsings><EmbraceInRegion>False</EmbraceInRegion><RegionName></RegionName></CSOptimizeUsings><CSReformatCode>True</CSReformatCode></Profile> 4 | 0 5 | 1 6 | 1 7 | 1 8 | 1 9 | 10 | NEVER 11 | False 12 | True 13 | False 14 | True 15 | CHOP_IF_LONG 16 | CHOP_IF_LONG 17 | <?xml version="1.0" encoding="utf-16"?> 18 | <Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns"> 19 | <TypePattern DisplayName="Non-reorderable types"> 20 | <TypePattern.Match> 21 | <Or> 22 | <And> 23 | <Kind Is="Interface" /> 24 | <Or> 25 | <HasAttribute Name="System.Runtime.InteropServices.InterfaceTypeAttribute" /> 26 | <HasAttribute Name="System.Runtime.InteropServices.ComImport" /> 27 | </Or> 28 | </And> 29 | <Kind Is="Struct" /> 30 | <HasAttribute Name="JetBrains.Annotations.NoReorderAttribute" /> 31 | <HasAttribute Name="JetBrains.Annotations.NoReorder" /> 32 | </Or> 33 | </TypePattern.Match> 34 | </TypePattern> 35 | <TypePattern DisplayName="xUnit.net Test Classes" RemoveRegions="All"> 36 | <TypePattern.Match> 37 | <And> 38 | <Kind Is="Class" /> 39 | <HasMember> 40 | <And> 41 | <Kind Is="Method" /> 42 | <HasAttribute Name="Xunit.FactAttribute" Inherited="True" /> 43 | </And> 44 | </HasMember> 45 | </And> 46 | </TypePattern.Match> 47 | <Entry DisplayName="Setup/Teardown Methods"> 48 | <Entry.Match> 49 | <Or> 50 | <Kind Is="Constructor" /> 51 | <And> 52 | <Kind Is="Method" /> 53 | <ImplementsInterface Name="System.IDisposable" /> 54 | </And> 55 | </Or> 56 | </Entry.Match> 57 | <Entry.SortBy> 58 | <Kind Order="Constructor" /> 59 | </Entry.SortBy> 60 | </Entry> 61 | <Entry DisplayName="All other members" /> 62 | <Entry Priority="100" DisplayName="Test Methods"> 63 | <Entry.Match> 64 | <And> 65 | <Kind Is="Method" /> 66 | <HasAttribute Name="Xunit.FactAttribute" /> 67 | </And> 68 | </Entry.Match> 69 | <Entry.SortBy> 70 | <Name /> 71 | </Entry.SortBy> 72 | </Entry> 73 | </TypePattern> 74 | <TypePattern DisplayName="NUnit Test Fixtures" RemoveRegions="All"> 75 | <TypePattern.Match> 76 | <And> 77 | <Kind Is="Class" /> 78 | <HasAttribute Name="NUnit.Framework.TestFixtureAttribute" Inherited="True" /> 79 | </And> 80 | </TypePattern.Match> 81 | <Entry DisplayName="Setup/Teardown Methods"> 82 | <Entry.Match> 83 | <And> 84 | <Kind Is="Method" /> 85 | <Or> 86 | <HasAttribute Name="NUnit.Framework.SetUpAttribute" Inherited="True" /> 87 | <HasAttribute Name="NUnit.Framework.TearDownAttribute" Inherited="True" /> 88 | <HasAttribute Name="NUnit.Framework.FixtureSetUpAttribute" Inherited="True" /> 89 | <HasAttribute Name="NUnit.Framework.FixtureTearDownAttribute" Inherited="True" /> 90 | </Or> 91 | </And> 92 | </Entry.Match> 93 | </Entry> 94 | <Entry DisplayName="All other members" /> 95 | <Entry Priority="100" DisplayName="Test Methods"> 96 | <Entry.Match> 97 | <And> 98 | <Kind Is="Method" /> 99 | <HasAttribute Name="NUnit.Framework.TestAttribute" /> 100 | </And> 101 | </Entry.Match> 102 | <Entry.SortBy> 103 | <Name /> 104 | </Entry.SortBy> 105 | </Entry> 106 | </TypePattern> 107 | <TypePattern DisplayName="Default Pattern"> 108 | <Entry DisplayName="Fields"> 109 | <Entry.Match> 110 | <Or> 111 | <Kind Is="Constant" /> 112 | <Kind Is="Field" /> 113 | </Or> 114 | </Entry.Match> 115 | <Entry.SortBy> 116 | <Access /> 117 | <Static /> 118 | <Readonly /> 119 | </Entry.SortBy> 120 | </Entry> 121 | <Entry DisplayName="Constructors"> 122 | <Entry.Match> 123 | <Kind Is="Constructor" /> 124 | </Entry.Match> 125 | <Entry.SortBy> 126 | <Access /> 127 | <Static /> 128 | </Entry.SortBy> 129 | </Entry> 130 | <Entry DisplayName="Destructors"> 131 | <Entry.Match> 132 | <Kind Is="Destructor" /> 133 | </Entry.Match> 134 | </Entry> 135 | <Entry DisplayName="Delegates"> 136 | <Entry.Match> 137 | <Kind Is="Delegate" /> 138 | </Entry.Match> 139 | <Entry.SortBy> 140 | <Access /> 141 | </Entry.SortBy> 142 | </Entry> 143 | <Entry DisplayName="Events"> 144 | <Entry.Match> 145 | <Kind Is="Event" /> 146 | </Entry.Match> 147 | <Entry.SortBy> 148 | <Access /> 149 | <Static /> 150 | </Entry.SortBy> 151 | </Entry> 152 | <Entry DisplayName="Enums"> 153 | <Entry.Match> 154 | <Kind Is="Enum" /> 155 | </Entry.Match> 156 | <Entry.SortBy> 157 | <Access /> 158 | </Entry.SortBy> 159 | </Entry> 160 | <Entry DisplayName="Interfaces"> 161 | <Entry.Match> 162 | <Kind Is="Interface" /> 163 | </Entry.Match> 164 | <Entry.SortBy> 165 | <Access /> 166 | </Entry.SortBy> 167 | </Entry> 168 | <Entry DisplayName="Properties"> 169 | <Entry.Match> 170 | <Or> 171 | <Kind Is="Property" /> 172 | <Kind Is="Autoproperty" /> 173 | </Or> 174 | </Entry.Match> 175 | <Entry.SortBy> 176 | <Abstract /> 177 | <Access /> 178 | <Static /> 179 | </Entry.SortBy> 180 | </Entry> 181 | <Entry DisplayName="Indexers"> 182 | <Entry.Match> 183 | <Kind Is="Indexer" /> 184 | </Entry.Match> 185 | <Entry.SortBy> 186 | <Access /> 187 | <Static /> 188 | <Readonly /> 189 | </Entry.SortBy> 190 | </Entry> 191 | <Entry DisplayName="Methods"> 192 | <Entry.Match> 193 | <Kind Is="Method" /> 194 | </Entry.Match> 195 | <Entry.SortBy> 196 | <Access /> 197 | <Static /> 198 | </Entry.SortBy> 199 | </Entry> 200 | <Entry DisplayName="Structs"> 201 | <Entry.Match> 202 | <Kind Is="Struct" /> 203 | </Entry.Match> 204 | </Entry> 205 | <Entry DisplayName="Classes"> 206 | <Entry.Match> 207 | <Kind Is="Class" /> 208 | </Entry.Match> 209 | </Entry> 210 | </TypePattern> 211 | </Patterns> 212 | True 213 | True 214 | True 215 | <Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb" /> 216 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 217 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 218 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 219 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 220 | <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> 221 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 222 | <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> 223 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 224 | <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> 225 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 226 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 227 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 228 | <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> 229 | <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> 230 | <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> 231 | <Policy Inspect="True" Prefix="I" Suffix="" Style="AaBb" /> 232 | <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> 233 | <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> 234 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 235 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 236 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 237 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 238 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 239 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 240 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 241 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 242 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 243 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 244 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 245 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 246 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 247 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 248 | <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> 249 | <Policy Inspect="True" Prefix="T" Suffix="" Style="AaBb" /> 250 | <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> 251 | <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> 252 | <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> 253 | <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> 254 | <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> 255 | <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> 256 | <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> 257 | LIVE_MONITOR 258 | LIVE_MONITOR 259 | DO_NOTHING 260 | LIVE_MONITOR 261 | LIVE_MONITOR 262 | LIVE_MONITOR 263 | LIVE_MONITOR 264 | LIVE_MONITOR 265 | LIVE_MONITOR 266 | LIVE_MONITOR 267 | LIVE_MONITOR 268 | DO_NOTHING 269 | LIVE_MONITOR 270 | AUTO_FIX 271 | True 272 | True 273 | True 274 | True 275 | True 276 | True 277 | True 278 | True 279 | True 280 | True 281 | True 282 | 283 | 284 | 285 | 286 | 287 | False 288 | 289 | 290 | 291 | 292 | False 293 | 294 | 295 | 296 | 297 | 298 | 299 | -------------------------------------------------------------------------------- /AcadHelper.cs: -------------------------------------------------------------------------------- 1 | namespace AcadAddinManager 2 | { 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | using Autodesk.AutoCAD.ApplicationServices; 9 | using Application = Autodesk.AutoCAD.ApplicationServices.Core.Application; 10 | 11 | public static class AcadHelper 12 | { 13 | public static void Write(this string msg) 14 | { 15 | Application.DocumentManager.MdiActiveDocument?.Editor?.WriteMessage($"\n{msg}"); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /AddinManager.Bundle.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vildar82/AcadAddinManager/7e74703241456ae9b4e6fa0568d644892bc54ff4/AddinManager.Bundle.zip -------------------------------------------------------------------------------- /AddinManager.Bundle/AddinManager.cuix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vildar82/AcadAddinManager/7e74703241456ae9b4e6fa0568d644892bc54ff4/AddinManager.Bundle/AddinManager.cuix -------------------------------------------------------------------------------- /AddinManager.Bundle/Contents/AcadAddinManager.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vildar82/AcadAddinManager/7e74703241456ae9b4e6fa0568d644892bc54ff4/AddinManager.Bundle/Contents/AcadAddinManager.dll -------------------------------------------------------------------------------- /AddinManager.Bundle/PackageContents.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 13 | 14 | 18 | 22 | 23 | 24 | 27 | 28 | -------------------------------------------------------------------------------- /AddinManagerService.cs: -------------------------------------------------------------------------------- 1 | namespace AcadAddinManager 2 | { 3 | using System; 4 | using System.Collections.Generic; 5 | using System.IO; 6 | using System.Linq; 7 | using System.Reflection; 8 | using System.Windows; 9 | using Data; 10 | using UI; 11 | using Autodesk.AutoCAD.Runtime; 12 | using JetBrains.Annotations; 13 | using NetLib.IO; 14 | using NLog; 15 | using Application = Autodesk.AutoCAD.ApplicationServices.Application; 16 | using Exception = System.Exception; 17 | using Path = System.IO.Path; 18 | 19 | public static class AddinManagerService 20 | { 21 | private static CommandMethod lastMethod; 22 | private static AddinsView addinsView; 23 | private static ILogger Log => LogManager.GetCurrentClassLogger(); 24 | 25 | public static List Resolvers { get; set; } 26 | 27 | public static void ClearAddins() 28 | { 29 | var addinDir = GetTempDir(); 30 | try 31 | { 32 | Directory.Delete(addinDir, true); 33 | $"Очищена папка загрузки плагинов '{addinDir}'.".Write(); 34 | } 35 | catch (Exception ex) 36 | { 37 | Log.Error(ex); 38 | $"Ошибка очистки папки загрузки плагинов '{addinDir}' - {ex.Message}.".Write(); 39 | } 40 | } 41 | 42 | [CommandMethod("AddinManager", CommandFlags.Session)] 43 | public static void AddinManager() 44 | { 45 | try 46 | { 47 | if (addinsView == null) 48 | { 49 | var addinsVM = new AddinsVM(); 50 | addinsView = new AddinsView(addinsVM); 51 | } 52 | 53 | Autodesk.AutoCAD.ApplicationServices.Core.Application.ShowModelessWindow(addinsView); 54 | } 55 | catch (OperationCanceledException) 56 | { 57 | // Отменено пользователем 58 | } 59 | catch (Exception ex) 60 | { 61 | Log.Error(ex); 62 | throw; 63 | } 64 | } 65 | 66 | [CommandMethod("AddinManagerLast", CommandFlags.Session)] 67 | public static void AddinManagerLast() 68 | { 69 | try 70 | { 71 | if (lastMethod == null) 72 | { 73 | AddinManager(); 74 | return; 75 | } 76 | 77 | UpdateAndInvoke(lastMethod); 78 | } 79 | catch (OperationCanceledException) 80 | { 81 | } 82 | catch (Exception ex) 83 | { 84 | Log.Error(ex); 85 | throw; 86 | } 87 | } 88 | 89 | public static void UpdateAndInvoke(CommandMethod command) 90 | { 91 | if (NetLib.IO.Path.IsNewestFile(lastMethod.Addin.AddinFile, lastMethod.Addin.AddinTempFile)) 92 | { 93 | lastMethod.Addin = GetAddin(lastMethod.Addin.AddinFile); 94 | var method = lastMethod.Addin.Commands.FirstOrDefault(m => m.Method.Name == lastMethod.Method.Name && 95 | m.Command.GlobalName == lastMethod.Command.GlobalName); 96 | if (method == null) 97 | { 98 | MessageBox.Show($"Не найдена команда {lastMethod.Command.GlobalName} ({lastMethod.Method.Name}).", 99 | "AddinManager", MessageBoxButton.OK, MessageBoxImage.Error); 100 | AddinManager(); 101 | return; 102 | } 103 | 104 | lastMethod = method; 105 | $"Сборка обновлена - {lastMethod.Addin.AddinFile} от {File.GetLastWriteTime(lastMethod.Addin.AddinFile):dd.MM.yy HH:mm:ss}.".Write(); 106 | } 107 | 108 | Invoke(lastMethod); 109 | } 110 | 111 | public static void Invoke(CommandMethod commandMethod) 112 | { 113 | lastMethod = commandMethod; 114 | Resolvers = commandMethod.Addin.Resolvers; 115 | Application.Idle += InvokeOnIdle; 116 | } 117 | 118 | private static void InvokeOnIdle(object sender, EventArgs e) 119 | { 120 | Application.Idle -= InvokeOnIdle; 121 | try 122 | { 123 | var doc = Autodesk.AutoCAD.ApplicationServices.Core.Application.DocumentManager.MdiActiveDocument; 124 | LoadResolvers(Resolvers); 125 | var method = lastMethod.Method; 126 | using (doc.LockDocument()) 127 | { 128 | if (method.IsStatic) 129 | { 130 | method.Invoke(null, null); 131 | } 132 | else 133 | { 134 | var instance = Activator.CreateInstance(method.DeclaringType); 135 | method.Invoke(instance, null); 136 | } 137 | } 138 | } 139 | finally 140 | { 141 | AppDomain.CurrentDomain.AssemblyResolve -= CurrentDomain_AssemblyResolve; 142 | } 143 | } 144 | 145 | [NotNull] 146 | public static Addin GetAddin(string addinFile) 147 | { 148 | var addin = new Addin {AddinFile = addinFile}; 149 | addin.AddinTempFile = GetTempAddin(addin.AddinFile); 150 | addin.Resolvers = DllResolve.GetDllResolve(Path.GetDirectoryName(addin.AddinTempFile), 151 | SearchOption.AllDirectories, ".dll", ".exe"); 152 | Resolvers = addin.Resolvers; 153 | AppDomain.CurrentDomain.AssemblyResolve -= CurrentDomain_AssemblyResolve; 154 | AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve; 155 | var addinAsm = Assembly.LoadFile(addin.AddinTempFile); 156 | addin.Commands = GetCommandMethods(addinAsm, addin); 157 | return addin; 158 | } 159 | 160 | private static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args) 161 | { 162 | try 163 | { 164 | return Resolvers.FirstOrDefault(r => r.IsResolve(args.Name))?.LoadAssembly(); 165 | } 166 | catch (Exception ex) 167 | { 168 | Log.Error(ex); 169 | ex.Message.Write(); 170 | return null; 171 | } 172 | } 173 | 174 | [NotNull] 175 | private static List GetCommandMethods(Assembly asm, Addin addin) 176 | { 177 | return (from type in asm.GetTypes() 178 | from methodInfo in type.GetMethods().ToList() 179 | let commandAtr = methodInfo.GetCustomAttributes(typeof(CommandMethodAttribute), false).FirstOrDefault() 180 | where commandAtr != null 181 | select new CommandMethod 182 | { 183 | Command = (CommandMethodAttribute) commandAtr, 184 | Method = methodInfo, 185 | Addin = addin 186 | }).OrderBy(o => o.Command.GlobalName).ToList(); 187 | } 188 | 189 | private static string GetTempAddin(string addinFile) 190 | { 191 | var dir = Path.GetDirectoryName(addinFile); 192 | var guid = Guid.NewGuid().ToString(); 193 | var tempDir = Path.Combine(GetTempDir(), guid); 194 | Directory.CreateDirectory(tempDir); 195 | NetLib.IO.Path.CopyDirectory(dir, tempDir); 196 | return Path.Combine(tempDir, Path.GetFileName(addinFile)); 197 | } 198 | 199 | private static string GetTempDir() 200 | { 201 | return Path.Combine(Path.GetTempPath(), "AcadAddinManager"); 202 | } 203 | 204 | private static void LoadResolvers(List resolvers) 205 | { 206 | foreach (var dllResolve in resolvers) 207 | { 208 | try 209 | { 210 | Assembly.LoadFrom(dllResolve.DllFile); 211 | } 212 | catch (Exception ex) 213 | { 214 | Log.Error(ex); 215 | ex.Message.Write(); 216 | } 217 | } 218 | } 219 | } 220 | } -------------------------------------------------------------------------------- /App.cs: -------------------------------------------------------------------------------- 1 | namespace AcadAddinManager 2 | { 3 | using Autodesk.AutoCAD.Runtime; 4 | 5 | class App : IExtensionApplication 6 | { 7 | public void Initialize() 8 | { 9 | "Загружен AddinManager. Команды:\nAddinManager - выбор плагина и запуск команды,\nAddinManagerLast - запуск последней команды.".Write(); 10 | AddinManagerService.ClearAddins(); 11 | } 12 | 13 | public void Terminate() 14 | { 15 | AddinManagerService.ClearAddins(); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /Data/Addin.cs: -------------------------------------------------------------------------------- 1 | namespace AcadAddinManager.Data 2 | { 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Reactive.Linq; 6 | using System.Text.RegularExpressions; 7 | using System.Windows.Threading; 8 | using NetLib; 9 | using NetLib.IO; 10 | using NetLib.WPF; 11 | using ReactiveUI; 12 | using ReactiveUI.Legacy; 13 | 14 | public class Addin 15 | { 16 | public string AddinFile { get; set; } 17 | public string AddinTempFile { get; set; } 18 | public List Resolvers { get; set; } 19 | public List Commands { get; set; } 20 | } 21 | } -------------------------------------------------------------------------------- /Data/AddinsData.cs: -------------------------------------------------------------------------------- 1 | namespace AcadAddinManager.Data 2 | { 3 | using System.Collections.Generic; 4 | 5 | public class AddinsData 6 | { 7 | public List AddinFiles { get; set; } = new List(); 8 | 9 | public string LastAddin { get; set; } 10 | 11 | public string LastCommand { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Data/CommandMethod.cs: -------------------------------------------------------------------------------- 1 | namespace AcadAddinManager.Data 2 | { 3 | using System.Reflection; 4 | using Autodesk.AutoCAD.Runtime; 5 | 6 | public class CommandMethod 7 | { 8 | public CommandMethodAttribute Command { get; set; } 9 | public MethodInfo Method { get; set; } 10 | public Addin Addin { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /FodyWeavers.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | using AcadAddinManager; 5 | using Autodesk.AutoCAD.Runtime; 6 | 7 | // General Information about an assembly is controlled through the following 8 | // set of attributes. Change these attribute values to modify the information 9 | // associated with an assembly. 10 | [assembly: AssemblyTitle("AcadAddinManager")] 11 | [assembly: AssemblyDescription("")] 12 | [assembly: AssemblyConfiguration("")] 13 | [assembly: AssemblyCompany("")] 14 | [assembly: AssemblyProduct("AcadAddinManager")] 15 | [assembly: AssemblyCopyright("Copyright © 2017")] 16 | [assembly: AssemblyTrademark("")] 17 | [assembly: AssemblyCulture("")] 18 | [assembly: CommandClass(typeof(AddinManagerService))] 19 | [assembly: ExtensionApplication(typeof(App))] 20 | 21 | // Setting ComVisible to false makes the types in this assembly not visible 22 | // to COM components. If you need to access a type in this assembly from 23 | // COM, set the ComVisible attribute to true on that type. 24 | [assembly: ComVisible(false)] 25 | 26 | // The following GUID is for the ID of the typelib if this project is exposed to COM 27 | [assembly: Guid("d64c4a0a-6f50-4bf2-9252-043256b9f8cc")] -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AutoCAD Addin Manager 2 | Update NET assemblies without restart AutoCAD. 3 | 4 | ## Instalation 5 | Copy AddinManager.Bundle to ApplicationPlugins AutoCAD: c:\ProgramData\Autodesk\ApplicationPlugins, or %appdata%\Autodesk\ApplicationPlugins. 6 | 7 | ## Use 8 | Commands: 9 | * AddinManager - select assembly file and command method and run it. 10 | * AddinManagerLast - update assembly and run last selected method. 11 | 12 | ![Image](https://user-images.githubusercontent.com/1446481/45940807-bfbb3a80-bfe3-11e8-8b15-18a25f31b420.png) 13 | -------------------------------------------------------------------------------- /UI/AddinVM.cs: -------------------------------------------------------------------------------- 1 | namespace AcadAddinManager.UI 2 | { 3 | using System; 4 | using System.Collections.ObjectModel; 5 | using System.IO; 6 | using System.Reactive.Linq; 7 | using System.Text.RegularExpressions; 8 | using Data; 9 | using DynamicData; 10 | using NetLib; 11 | using NetLib.WPF; 12 | using ReactiveUI; 13 | 14 | public class AddinVM : BaseModel 15 | { 16 | public AddinVM(Addin addin) 17 | { 18 | Addin = addin; 19 | Name = Path.GetFileName(addin.AddinFile); 20 | 21 | AllCommands = new SourceList(); 22 | AllCommands.AddRange(addin.Commands); 23 | 24 | var searchObs = this.WhenAnyValue(v => v.Filter).Skip(1) 25 | .Throttle(TimeSpan.FromMilliseconds(300)).Select(s => true); 26 | AllCommands.Connect() 27 | .Filter(filter) 28 | .AutoRefreshOnObservable(c => searchObs) 29 | .Bind(out var data) 30 | .Subscribe(); 31 | Commands = data; 32 | } 33 | 34 | public Addin Addin { get; set; } 35 | public string Name { get; set; } 36 | 37 | public string Filter { get; set; } 38 | public SourceList AllCommands { get; set; } 39 | public ReadOnlyObservableCollection Commands { get; set; } 40 | 41 | private bool filter(CommandMethod com) 42 | { 43 | return Filter.IsNullOrEmpty() || Regex.IsMatch(com.Command.GlobalName, Filter, RegexOptions.IgnoreCase); 44 | } 45 | 46 | public void Update() 47 | { 48 | Addin = AddinManagerService.GetAddin(Addin.AddinFile); 49 | AllCommands.Clear(); 50 | AllCommands.AddRange(Addin.Commands); 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /UI/AddinsVM.cs: -------------------------------------------------------------------------------- 1 | namespace AcadAddinManager.UI 2 | { 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Collections.ObjectModel; 6 | using System.Linq; 7 | using System.Reactive; 8 | using System.Reactive.Linq; 9 | using System.Text.RegularExpressions; 10 | using System.Threading.Tasks; 11 | using Data; 12 | using DynamicData; 13 | using Microsoft.Win32; 14 | using NetLib; 15 | using NetLib.WPF; 16 | using ReactiveUI; 17 | 18 | public class AddinsVM : BaseViewModel 19 | { 20 | private LocalFileData fileData; 21 | private string errors; 22 | 23 | public AddinsVM() 24 | { 25 | Init(); 26 | } 27 | 28 | public string Search { get; set; } 29 | 30 | public SourceList AllAddins { get; set; } 31 | 32 | public ReadOnlyObservableCollection Addins { get; set; } 33 | 34 | public AddinVM Addin { get; set; } 35 | 36 | public CommandMethod Command { get; set; } 37 | 38 | public ReactiveCommand Start { get; set; } 39 | 40 | public ReactiveCommand RemoveAddin { get; set; } 41 | 42 | public ReactiveCommand AddAddin { get; set; } 43 | 44 | public ReactiveCommand UpdateCommands { get; set; } 45 | 46 | private async void Init() 47 | { 48 | var addins = await LoadAddins(); 49 | AllAddins = new SourceList(); 50 | AllAddins.AddRange(addins.Select(s => new AddinVM(s))); 51 | 52 | var searchObs = this.WhenAnyValue(v => v.Search).Skip(1).Throttle(TimeSpan.FromMilliseconds(300)).Select(s => true); 53 | AllAddins.Connect() 54 | .Filter(filter) 55 | .AutoRefreshOnObservable(c => searchObs) 56 | .Bind(out var data) 57 | .Subscribe(); 58 | Addins = data; 59 | 60 | if (!fileData.Data.LastAddin.IsNullOrEmpty()) 61 | { 62 | Addin = AllAddins.Items.FirstOrDefault(a => a.Addin.AddinFile.EqualsIgnoreCase(fileData.Data.LastAddin)); 63 | if (Addin != null && !fileData.Data.LastCommand.IsNullOrEmpty()) 64 | Command = Addin.Addin.Commands.FirstOrDefault( 65 | c => c.Command.GlobalName == fileData.Data.LastCommand); 66 | } 67 | 68 | var canStart = this.WhenAnyValue(v => v.Command).Select(s => s != null); 69 | Start = CreateCommand(() => 70 | { 71 | HideMe(); 72 | var addin = Addin; 73 | var com = Command; 74 | fileData.Data.AddinFiles.Remove(addin.Addin.AddinFile); 75 | fileData.Data.AddinFiles.Insert(0, addin.Addin.AddinFile); 76 | fileData.Data.LastAddin = addin.Addin.AddinFile; 77 | fileData.Data.LastCommand = Command.Method.Name; 78 | OnClosing(); 79 | AllAddins.Remove(addin); 80 | AllAddins.Insert(0, addin); 81 | Addin = addin; 82 | Command = com; 83 | AddinManagerService.Invoke(com); 84 | }, canStart); 85 | RemoveAddin = CreateCommand(a => 86 | { 87 | AllAddins.Remove(a); 88 | fileData.Data.AddinFiles.Remove(a.Addin.AddinFile); 89 | }); 90 | AddAddin = CreateCommand(AddAddinExec); 91 | if (!errors.IsNullOrEmpty()) 92 | ShowMessage(errors, "Ошибка загрузки файлов сборок"); 93 | 94 | UpdateCommands = CreateCommand(UpdateCommandsExec); 95 | } 96 | 97 | private bool filter(AddinVM ad) 98 | { 99 | return Search.IsNullOrEmpty() || Regex.IsMatch(ad.Addin.AddinFile, Search, RegexOptions.IgnoreCase); 100 | } 101 | 102 | private Task> LoadAddins() 103 | { 104 | return Task.Run(() => 105 | { 106 | var file = NetLib.IO.Path.GetUserPluginFile("AcadAddinManager", "AcadAddinManagerData.json"); 107 | fileData = new LocalFileData(file, false); 108 | fileData.TryLoad(() => new AddinsData()); 109 | errors = string.Empty; 110 | return fileData.Data.AddinFiles.Select(s => 111 | { 112 | try 113 | { 114 | return AddinManagerService.GetAddin(s); 115 | } 116 | catch (Exception ex) 117 | { 118 | errors += $"{s} - {ex.Message}.\n\n"; 119 | return null; 120 | } 121 | }) 122 | .Where(w => w != null).ToList(); 123 | }); 124 | } 125 | 126 | /// 127 | public override void OnClosing() 128 | { 129 | fileData.Data.AddinFiles = AllAddins.Items.Select(s => s.Addin.AddinFile).ToList(); 130 | fileData.TrySave(); 131 | } 132 | 133 | private void AddAddinExec() 134 | { 135 | var file = SelectAddin(); 136 | var addinExist = AllAddins.Items.FirstOrDefault(a => a.Addin.AddinFile.EqualsIgnoreCase(file)); 137 | if (addinExist != null) 138 | { 139 | ShowMessage("Такая сборка уже есть"); 140 | Addin = addinExist; 141 | return; 142 | } 143 | 144 | var addin = AddinManagerService.GetAddin(file); 145 | AllAddins.Insert(0, new AddinVM(addin)); 146 | fileData.Data.AddinFiles.Insert(0, file); 147 | } 148 | 149 | private static string SelectAddin() 150 | { 151 | var dlg = new OpenFileDialog 152 | { 153 | Title = "AddinManager - выбор сборки плагина autocad", 154 | Filter = "Net assembly files (*.dll) | *.dll;" 155 | }; 156 | return dlg.ShowDialog() == true ? dlg.FileName : throw new OperationCanceledException(); 157 | } 158 | 159 | private void UpdateCommandsExec() 160 | { 161 | Addin?.Update(); 162 | } 163 | } 164 | } 165 | -------------------------------------------------------------------------------- /UI/AddinsView.xaml: -------------------------------------------------------------------------------- 1 |  17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 26 |