Skip to content

Commit 8b76797

Browse files
🐛 Fix: Re_install_assembly.sql
Add some dependency dll removing for cleanner option
1 parent e6fd71b commit 8b76797

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

API_Consumer/clr_files/re_install_assembly.sql

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,22 @@ BEGIN
3737
DROP ASSEMBLY [API_Consumer]
3838
END
3939

40+
-- =============================================
41+
-- Drop the assembly of Dependency : If you using these in other parts, you can ignore this parts
42+
-- =============================================
43+
IF EXISTS (SELECT * FROM sys.assemblies WHERE name = 'Newtonsoft.Json')
44+
BEGIN
45+
DROP ASSEMBLY [Newtonsoft.Json]
46+
END
47+
IF EXISTS (SELECT * FROM sys.assemblies WHERE name = 'System.Runtime.Serialization')
48+
BEGIN
49+
DROP ASSEMBLY [System.Runtime.Serialization]
50+
END
51+
IF EXISTS (SELECT * FROM sys.assemblies WHERE name = 'SMDiagnostics')
52+
BEGIN
53+
DROP ASSEMBLY [SMDiagnostics]
54+
END
55+
4056
-- =============================================
4157
-- Create the assembly with the updated DLL
4258
-- =============================================

0 commit comments

Comments
 (0)