Skip to content

Commit

Permalink
Remove Microsoft Project with MSHTML dependent library from the solution
Browse files Browse the repository at this point in the history
  • Loading branch information
jozefizso committed Aug 16, 2022
1 parent afc46e0 commit d1cce25
Show file tree
Hide file tree
Showing 1,160 changed files with 13 additions and 692,446 deletions.
15 changes: 0 additions & 15 deletions BuildTools/ReferenceAnalyzer/Parser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -539,20 +539,6 @@ private static void ParseVisioTypeEvents(XElement propertiesNode, LogAction func

#region Parse Project

/// <summary>
/// Parse MSProject Docu pages
/// </summary>
/// <param name="document">document to fill</param>
/// <param name="func">progress handler</param>
internal static void ParseProject(XDocument document, LogAction func)
{
XElement projectNode = new XElement("MSProject");
(document.FirstNode as XElement).Add(projectNode);
ParseProjectTypes(projectNode, func);
ParseProjectEnums(projectNode, func);
ParseProjectTypesMembers(projectNode, func);
}

private static void ParseProjectTypes(XElement excelNode, LogAction func)
{
func("Parse Project Types");
Expand Down Expand Up @@ -2037,7 +2023,6 @@ internal static XDocument ParseReference(LogAction func)
ParseOffice(document, func);
ParseOutlook(document, func);
ParsePowerPoint(document, func);
ParseProject(document, func);
ParseVisio(document, func);
ParseWord(document, func);
func("Done!");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,6 @@
<HintPath>..\..\..\..\..\Assemblies\Any CPU\MSDATASRCApi.dll</HintPath>
<EmbedInteropTypes>False</EmbedInteropTypes>
</Reference>
<Reference Include="MSHTMLApi">
<HintPath>..\..\..\..\..\Assemblies\Any CPU\MSHTMLApi.dll</HintPath>
<EmbedInteropTypes>False</EmbedInteropTypes>
</Reference>
<Reference Include="MSProjectApi">
<HintPath>..\..\..\..\..\Assemblies\Any CPU\MSProjectApi.dll</HintPath>
<EmbedInteropTypes>False</EmbedInteropTypes>
</Reference>
<Reference Include="NetOffice">
<HintPath>..\..\..\..\..\Assemblies\Any CPU\NetOffice.dll</HintPath>
<EmbedInteropTypes>False</EmbedInteropTypes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,6 @@
<HintPath>..\..\..\..\..\Assemblies\Any CPU\MSDATASRCApi.dll</HintPath>
<EmbedInteropTypes>False</EmbedInteropTypes>
</Reference>
<Reference Include="MSHTMLApi">
<HintPath>..\..\..\..\..\Assemblies\Any CPU\MSHTMLApi.dll</HintPath>
<EmbedInteropTypes>False</EmbedInteropTypes>
</Reference>
<Reference Include="MSProjectApi">
<HintPath>..\..\..\..\..\Assemblies\Any CPU\MSProjectApi.dll</HintPath>
<EmbedInteropTypes>False</EmbedInteropTypes>
</Reference>
<Reference Include="NetOffice">
<HintPath>..\..\..\..\..\Assemblies\Any CPU\NetOffice.dll</HintPath>
</Reference>
Expand Down
2 changes: 1 addition & 1 deletion Examples/Misc/VB/COMAddin Examples/SuperAddin/Addin.vb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Imports NetOffice.OfficeApi.Enums
<COMAddin("Super Addin Sample VB4", "Multi-host addin example", LoadBehavior.LoadAtStartup), Codebase>
<CustomUI("RibbonUI.xml", True), RegistryLocation(RegistrySaveLocation.CurrentUser)>
<ProgId("SuperAddinVB4.Connect"), Guid("B7561D9F-E3DE-49cd-B5FE-D812F8999EFD")>
<MultiRegister(RegisterIn.Excel, RegisterIn.Word, RegisterIn.PowerPoint, RegisterIn.Outlook, RegisterIn.Access, RegisterIn.MSProject)> _
<MultiRegister(RegisterIn.Excel, RegisterIn.Word, RegisterIn.PowerPoint, RegisterIn.Outlook, RegisterIn.Access)> _
Public Class Addin
Inherits COMAddin

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,7 @@
<HintPath>..\..\..\..\..\Assemblies\Any CPU\MSDATASRCApi.dll</HintPath>
<EmbedInteropTypes>False</EmbedInteropTypes>
</Reference>
<Reference Include="MSHTMLApi">
<HintPath>..\..\..\..\..\Assemblies\Any CPU\MSHTMLApi.dll</HintPath>
<EmbedInteropTypes>False</EmbedInteropTypes>
</Reference>
<Reference Include="MSProjectApi">
<HintPath>..\..\..\..\..\Assemblies\Any CPU\MSProjectApi.dll</HintPath>
<EmbedInteropTypes>False</EmbedInteropTypes>
</Reference>

<Reference Include="NetOffice">
<HintPath>..\..\..\..\..\Assemblies\Any CPU\NetOffice.dll</HintPath>
<EmbedInteropTypes>False</EmbedInteropTypes>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

> NetOffice is a set of libraries for building Microsoft Office Addins and automation of Microsoft Office applications.
Use NetOffice to extend and automate Microsoft Office applications: Excel, Word, Outlook, PowerPoint, Access, Project and Visio.
Use NetOffice to extend and automate Microsoft Office applications: Excel, Word, Outlook, PowerPoint, Access and Visio.

:rotating_light: **Notice**: Use official packages with [__NetOfficeFw.*__ prefix](https://www.nuget.org/packages?q=NetOfficeFw). Using old 1.7.4 packages? [Learn how to migrate.](https://netoffice.io/migrate-notice/)

Expand Down
6 changes: 3 additions & 3 deletions RegAddin/RegAddin/Common/AddinRegAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace RegAddin.Common
{
internal class AddinRegAnalyzer
{
public static string[] _multiRegisterIn = new string[] { "Excel", "Word", "Outlook", "PowerPoint", "Access", "MS Project", "Visio" };
public static string[] _multiRegisterIn = new string[] { "Excel", "Word", "Outlook", "PowerPoint", "Access", "Visio" };

private static string _systemObject = "System.Object";

Expand All @@ -20,7 +20,7 @@ internal class AddinRegAnalyzer

private static string[] _multiRegisterName = new string[] { "NetOffice.OfficeApi.Tools.MultiRegisterAttribute" };

private static string[] _classNames = new string[] { "NetOffice.MSProjectApi.Tools.COMAddin",
private static string[] _classNames = new string[] {
"NetOffice.ExcelApi.Tools.COMAddin",
"NetOffice.WordApi.Tools.COMAddin",
"NetOffice.OutlookApi.Tools.COMAddin",
Expand All @@ -29,7 +29,7 @@ internal class AddinRegAnalyzer
"NetOffice.VisioApi.Tools.COMAddin",
"NetOffice.OfficeApi.Tools.COMAddin"};

private static string[] _classKeys = new string[] { "MS Project", "Excel", "Word", "Outlook", "PowerPoint", "Access", "Visio"};
private static string[] _classKeys = new string[] { "Excel", "Word", "Outlook", "PowerPoint", "Access", "Visio"};

private static string _multiClassName = "NetOffice.OfficeApi.Tools.COMAddin";

Expand Down
6 changes: 3 additions & 3 deletions RegAddin/RegAddin/RegFile/RegFileOperationHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ private void WriteRegistryContentToLocalFileSystem(List<string> contentTable)
File.AppendAllText(Settings.RegFilePath, fullContent.ToString(), Encoding.Unicode);
}

public static string[] _multiRegisterIn = new string[] { "Excel", "Word", "Outlook", "PowerPoint", "Access", "MS Project", "Visio" };
public static string[] _multiRegisterIn = new string[] { "Excel", "Word", "Outlook", "PowerPoint", "Access", "Visio" };

private string CreateRegistryFileContent(Assembly addinAssembly, IEnumerable<object> assemblyAttributes, SingletonSettings.RegisterMode mode,
Type addinClassType, IEnumerable<object> addinClassAttributes)
Expand Down Expand Up @@ -319,7 +319,7 @@ private string CreateRegistryFileContent(Assembly addinAssembly, IEnumerable<obj

private static string _systemObject = "System.Object";

private static string[] _classNames = new string[] { "NetOffice.MSProjectApi.Tools.COMAddin",
private static string[] _classNames = new string[] {
"NetOffice.ExcelApi.Tools.COMAddin",
"NetOffice.WordApi.Tools.COMAddin",
"NetOffice.OutlookApi.Tools.COMAddin",
Expand Down Expand Up @@ -350,7 +350,7 @@ private string GetKeyName(Type addin)
return _classKeys[index];
}

private static string[] _classKeys = new string[] { "MS Project", "Excel", "Word", "Outlook", "PowerPoint", "Access", "Visio" };
private static string[] _classKeys = new string[] { "Excel", "Word", "Outlook", "PowerPoint", "Access", "Visio" };

private static string _officeRelatedKey = "Software\\Microsoft\\Office\\{0}\\Addins";

Expand Down
2 changes: 0 additions & 2 deletions Source/ClientApplication/ClientApplication.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
<ProjectReference Include="..\Excel\ExcelApi.csproj" />
<ProjectReference Include="..\MSComctlLib\MSComctlLibApi.csproj" />
<ProjectReference Include="..\MSDATASRC\MSDATASRCApi.csproj" />
<ProjectReference Include="..\MSHTML\MSHTMLApi.csproj" />
<ProjectReference Include="..\MSProject\MSProjectApi.csproj" />
<ProjectReference Include="..\Office\OfficeApi.csproj" />
<ProjectReference Include="..\NetOffice\NetOffice.csproj" />
<ProjectReference Include="..\Outlook\OutlookApi.csproj" />
Expand Down
30 changes: 0 additions & 30 deletions Source/MSHTML/AssemblyInfo.cs

This file was deleted.

135 changes: 0 additions & 135 deletions Source/MSHTML/Classes/BlockFormats.cs

This file was deleted.

Loading

0 comments on commit d1cce25

Please sign in to comment.