Fix: Call Uninstall Plugin Hook

This commit is contained in:
Gary Sharp
2013-06-03 17:39:07 +10:00
parent 2bf4da5795
commit fac8f0acfa
8 changed files with 22 additions and 14 deletions
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0521.1703")]
[assembly: AssemblyFileVersion("1.2.0521.1703")]
[assembly: AssemblyVersion("1.2.0527.1408")]
[assembly: AssemblyFileVersion("1.2.0527.1408")]
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0521.1703")]
[assembly: AssemblyFileVersion("1.2.0521.1703")]
[assembly: AssemblyVersion("1.2.0603.1734")]
[assembly: AssemblyFileVersion("1.2.0603.1734")]
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0521.1703")]
[assembly: AssemblyFileVersion("1.2.0521.1703")]
[assembly: AssemblyVersion("1.2.0603.1734")]
[assembly: AssemblyFileVersion("1.2.0603.1734")]
@@ -8,6 +8,7 @@ using System.Threading.Tasks;
using System.Web;
using Disco.Services.Tasks;
using Quartz;
using Disco.Data.Repository;
namespace Disco.Services.Plugins
{
@@ -28,6 +29,11 @@ namespace Disco.Services.Plugins
if (!File.Exists(manifestFileLocation))
throw new FileNotFoundException("Plugin Manifest File Not Found", manifestFileLocation);
using (DiscoDataContext dbContext = new DiscoDataContext())
{
manifest.UninstallPlugin(dbContext, UninstallData, this.Status);
}
string manifestUninstallFileLocation = Path.Combine(manifest.PluginLocation, "manifest.uninstall.json");
if (File.Exists(manifestUninstallFileLocation))
+2 -2
View File
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0521.1703")]
[assembly: AssemblyFileVersion("1.2.0521.1703")]
[assembly: AssemblyVersion("1.2.0603.1734")]
[assembly: AssemblyFileVersion("1.2.0603.1734")]
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0521.1703")]
[assembly: AssemblyFileVersion("1.2.0521.1703")]
[assembly: AssemblyVersion("1.2.0527.1408")]
[assembly: AssemblyFileVersion("1.2.0527.1408")]
+4 -2
View File
@@ -1801,7 +1801,9 @@
<LastGenOutput>_Layout.generated.cs</LastGenOutput>
</None>
<None Include="Views\Web.config" />
<None Include="packages.config" />
<None Include="packages.config">
<SubType>Designer</SubType>
</None>
<None Include="_bin_deployableAssemblies\amd64\Microsoft.VC90.CRT\Microsoft.VC90.CRT.manifest" />
<None Include="_bin_deployableAssemblies\x86\Microsoft.VC90.CRT\Microsoft.VC90.CRT.manifest" />
</ItemGroup>
@@ -1861,7 +1863,7 @@
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
</FlavorProperties>
<UserProperties BuildVersion_UpdateFileVersion="True" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_BuildVersioningStyle="None.DeltaBaseYear.MonthAndDayStamp.TimeStamp" BuildVersion_DetectChanges="False" BuildVersion_UseGlobalSettings="False" BuildVersion_BuildAction="Both" BuildVersion_StartDate="2011/7/1" />
<UserProperties BuildVersion_StartDate="2011/7/1" BuildVersion_BuildAction="Both" BuildVersion_UseGlobalSettings="False" BuildVersion_DetectChanges="False" BuildVersion_BuildVersioningStyle="None.DeltaBaseYear.MonthAndDayStamp.TimeStamp" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_UpdateFileVersion="True" />
</VisualStudio>
</ProjectExtensions>
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
+2 -2
View File
@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.2.0521.1703")]
[assembly: AssemblyFileVersion("1.2.0521.1703")]
[assembly: AssemblyVersion("1.2.0527.1408")]
[assembly: AssemblyFileVersion("1.2.0527.1408")]