diff --git a/OutputDlls/Microsoft.VisualStudio.Interop.dll b/OutputDlls/Microsoft.VisualStudio.Interop.dll
index af640d3..87291c7 100644
Binary files a/OutputDlls/Microsoft.VisualStudio.Interop.dll and b/OutputDlls/Microsoft.VisualStudio.Interop.dll differ
diff --git a/OutputDlls/Microsoft.VisualStudio.OLE.Interop.dll b/OutputDlls/Microsoft.VisualStudio.OLE.Interop.dll
new file mode 100644
index 0000000..b85b1d5
Binary files /dev/null and b/OutputDlls/Microsoft.VisualStudio.OLE.Interop.dll differ
diff --git a/OutputDlls/Microsoft.VisualStudio.Shell.Framework.dll b/OutputDlls/Microsoft.VisualStudio.Shell.Framework.dll
new file mode 100644
index 0000000..3763839
Binary files /dev/null and b/OutputDlls/Microsoft.VisualStudio.Shell.Framework.dll differ
diff --git a/OutputDlls/SSD365VSAddIn.dll b/OutputDlls/SSD365VSAddIn.dll
index 36db1dd..72fa2f0 100644
Binary files a/OutputDlls/SSD365VSAddIn.dll and b/OutputDlls/SSD365VSAddIn.dll differ
diff --git a/OutputDlls/envdte.dll b/OutputDlls/envdte.dll
new file mode 100644
index 0000000..adf0418
Binary files /dev/null and b/OutputDlls/envdte.dll differ
diff --git a/OutputDlls/envdte80.dll b/OutputDlls/envdte80.dll
index 75f583c..7d01772 100644
Binary files a/OutputDlls/envdte80.dll and b/OutputDlls/envdte80.dll differ
diff --git a/SSD365VSAddIn/SSD365VSAddIn/Common/CommonUtil.cs b/SSD365VSAddIn/SSD365VSAddIn/Common/CommonUtil.cs
index 3c01180..c06f9a9 100644
--- a/SSD365VSAddIn/SSD365VSAddIn/Common/CommonUtil.cs
+++ b/SSD365VSAddIn/SSD365VSAddIn/Common/CommonUtil.cs
@@ -47,7 +47,14 @@ internal static VSProjectNode GetCurrentProject()
/// VSApplicationContext
internal static Microsoft.Dynamics.Framework.Tools.Labels.VSApplicationContext GetVSApplicationContext()
{
- var context = new Microsoft.Dynamics.Framework.Tools.Labels.VSApplicationContext(CommonUtil.DTE.DTE);
+ if(DTE == null)
+ {
+ throw new InvalidOperationException("DTE is not initialized");
+ }
+ // Create a service provider from the DTE object
+ IServiceProvider serviceProvider = new Microsoft.VisualStudio.Shell.ServiceProvider(DTE as Microsoft.VisualStudio.OLE.Interop.IServiceProvider);
+ // Create the context based ont he service provider
+ var context = new Microsoft.Dynamics.Framework.Tools.Labels.VSApplicationContext(serviceProvider);
return context;
}
diff --git a/SSD365VSAddIn/SSD365VSAddIn/SSD365VSAddIn.csproj b/SSD365VSAddIn/SSD365VSAddIn/SSD365VSAddIn.csproj
index ccb4d4d..5dde9af 100644
--- a/SSD365VSAddIn/SSD365VSAddIn/SSD365VSAddIn.csproj
+++ b/SSD365VSAddIn/SSD365VSAddIn/SSD365VSAddIn.csproj
@@ -33,12 +33,13 @@
4
-
+
False
- False
+ ..\..\..\..\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\PublicAssemblies\envdte.dll
- ..\packages\envdte80.17.10.40170\lib\net472\envdte80.dll
+ False
+ ..\..\..\..\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\PublicAssemblies\envdte80.dll
@@ -67,7 +68,7 @@
False
- ..\..\..\..\..\..\..\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\evslr1m4.vij\Microsoft.Dynamics.Framework.Tools.AutomationObjects.17.0.dll
+ ..\..\..\..\..\..\..\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\r14op0sw.ult\Microsoft.Dynamics.Framework.Tools.AutomationObjects.17.0.dll
False
@@ -75,40 +76,42 @@
False
- ..\..\..\..\..\..\..\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\evslr1m4.vij\Microsoft.Dynamics.Framework.Tools.Configuration.17.0.dll
+ ..\..\..\..\..\..\..\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\r14op0sw.ult\Microsoft.Dynamics.Framework.Tools.Configuration.17.0.dll
False
- ..\..\..\..\..\..\..\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\evslr1m4.vij\Microsoft.Dynamics.Framework.Tools.Core.17.0.dll
+ ..\..\..\..\..\..\..\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\r14op0sw.ult\Microsoft.Dynamics.Framework.Tools.Core.17.0.dll
False
- ..\..\..\..\..\..\..\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\evslr1m4.vij\Microsoft.Dynamics.Framework.Tools.Extensibility.17.0.dll
+ ..\..\..\..\..\..\..\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\r14op0sw.ult\Microsoft.Dynamics.Framework.Tools.Extensibility.17.0.dll
False
- ..\..\..\..\..\..\..\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\evslr1m4.vij\Microsoft.Dynamics.Framework.Tools.LabelEditor.17.0.dll
+ ..\..\..\..\..\..\..\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\r14op0sw.ult\Microsoft.Dynamics.Framework.Tools.LabelEditor.17.0.dll
False
- ..\..\..\..\..\..\..\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\evslr1m4.vij\Microsoft.Dynamics.Framework.Tools.MetaModel.17.0.dll
+ ..\..\..\..\..\..\..\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\r14op0sw.ult\Microsoft.Dynamics.Framework.Tools.MetaModel.17.0.dll
False
- ..\..\..\..\..\..\..\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\evslr1m4.vij\Microsoft.Dynamics.Framework.Tools.MetaModel.Core.17.0.dll
+ ..\..\..\..\..\..\..\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\r14op0sw.ult\Microsoft.Dynamics.Framework.Tools.MetaModel.Core.17.0.dll
False
- ..\..\..\..\..\..\..\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\evslr1m4.vij\Microsoft.Dynamics.Framework.Tools.ProjectSupport.17.0.dll
+ ..\..\..\..\..\..\..\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\r14op0sw.ult\Microsoft.Dynamics.Framework.Tools.ProjectSupport.17.0.dll
False
- ..\..\..\..\..\..\..\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\evslr1m4.vij\Microsoft.Dynamics.Framework.Tools.ProjectSystem.17.0.dll
+ ..\..\..\..\..\..\..\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\r14op0sw.ult\Microsoft.Dynamics.Framework.Tools.ProjectSystem.17.0.dll
False
..\packages\Microsoft.VisualStudio.Interop.17.10.40170\lib\net472\Microsoft.VisualStudio.Interop.dll
+
+
..\packages\Newtonsoft.Json.12.0.2\lib\net45\Newtonsoft.Json.dll
@@ -241,7 +244,7 @@
echo "----"
echo "--> Copy to Outputdlls"
echo "Copy all DLLs"
-copy $(TargetDir)\*.dll $(ProjectDir)..\..\OutputDlls\
+copy $(TargetDir)\*.dll $(SolutionDir)..\OutputDlls\
echo "<-- Copy Complete"
\ No newline at end of file