File tree Expand file tree Collapse file tree 4 files changed +32
-68
lines changed
Expand file tree Collapse file tree 4 files changed +32
-68
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ public class ExportAllFormats : IPlugin
99 {
1010 public string Name { get ; } = "Export all formats" ;
1111 public string Text { get ; } = "Export all formats" ;
12- public decimal Version { get ; } = 2 .0m;
12+ public decimal Version { get ; } = 3 .0m;
1313 public string Description { get ; } = "Export current subtitle to all available text format." ;
1414 public string ActionType { get ; } = "file" ;
1515 public string Shortcut { get ; } = string . Empty ;
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
2- <PropertyGroup >
3- <OutputType >Library</OutputType >
4- <GenerateAssemblyInfo >false</GenerateAssemblyInfo >
5- <UseWindowsForms >true</UseWindowsForms >
6- <ImportWindowsDesktopTargets >true</ImportWindowsDesktopTargets >
7- <AssemblyVersion >2 .0.0</AssemblyVersion >
8- <FileVersion >2 .0.0</FileVersion >
9- </PropertyGroup >
10- <PropertyGroup />
11- <PropertyGroup >
12- <!-- <PostBuildEvent>copy $(TargetDir)\exportallformats.dll "%25appdata%25\Subtitle Edit\Plugins\"-->
13- <!-- copy $(TargetDir)\exportallformats.pdb "%25appdata%25\Subtitle Edit\Plugins\"</PostBuildEvent>-->
14- </PropertyGroup >
15- <ItemGroup >
16- <PackageReference Include =" libse" />
17- </ItemGroup >
18- <!-- <Import Project="..\Plugin-Shared\Plugin-Shared.projitems" Label="Shared" />-->
2+ <PropertyGroup >
3+ <OutputType >Library</OutputType >
4+ <GenerateAssemblyInfo >false</GenerateAssemblyInfo >
5+ <UseWindowsForms >true</UseWindowsForms >
6+ <ImportWindowsDesktopTargets >true</ImportWindowsDesktopTargets >
7+ <AssemblyVersion >3 .0.0</AssemblyVersion >
8+ <FileVersion >3 .0.0</FileVersion >
9+ </PropertyGroup >
10+ <PropertyGroup />
11+ <PropertyGroup >
12+ <!-- <PostBuildEvent>copy $(TargetDir)\exportallformats.dll "%25appdata%25\Subtitle Edit\Plugins\"-->
13+ <!-- copy $(TargetDir)\exportallformats.pdb "%25appdata%25\Subtitle Edit\Plugins\"</PostBuildEvent>-->
14+ </PropertyGroup >
15+ <ItemGroup >
16+ <PackageReference Include =" libse" IncludeAssets = " compile " />
17+ </ItemGroup >
18+ <!-- <Import Project="..\Plugin-Shared\Plugin-Shared.projitems" Label="Shared" />-->
1919</Project >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- namespace Nikse . SubtitleEdit . PluginLogic . Utils
1+ namespace Nikse . SubtitleEdit . PluginLogic . Utils ;
2+
3+ using System ;
4+ using System . Linq ;
5+ using System . Reflection ;
6+
7+ public static class AssemblyUtils
28{
3- using System ;
4- using System . Linq ;
5- using System . Reflection ;
9+ private static Assembly _libseCached ;
610
7- public static class AssemblyUtils
11+ public static Assembly GetLibse ( )
812 {
9- private static Assembly _libseCached ;
10-
11- public static Assembly GetLibse ( )
13+ if ( _libseCached == null )
1214 {
13- if ( _libseCached == null )
14- {
15- _libseCached = AppDomain . CurrentDomain . GetAssemblies ( ) . FirstOrDefault ( asm => asm . GetName ( ) . Name . Equals ( "libse" ) ) ;
16- }
17- return _libseCached ;
15+ _libseCached = AppDomain . CurrentDomain . GetAssemblies ( ) . FirstOrDefault ( asm => asm . GetName ( ) . Name . Equals ( "libse" ) ) ;
1816 }
17+
18+ return _libseCached ;
1919 }
20- }
20+ }
You can’t perform that action at this time.
0 commit comments