Skip to content

Commit

Permalink
Merge pull request #408 from NetOfficeFw/dev/RegAddin
Browse files Browse the repository at this point in the history
  • Loading branch information
jozefizso authored Feb 16, 2024
2 parents e1b1ffc + 9c6a3bc commit 46b2980
Show file tree
Hide file tree
Showing 10 changed files with 174 additions and 263 deletions.
46 changes: 6 additions & 40 deletions RegAddin/RegAddin/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,42 +1,8 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("RegAddin")]
[assembly: AssemblyDescription("Register/Unregister MS-Office Addins")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("http://netoffice.codeplex.com")]
[assembly: AssemblyProduct("RegAddin")]
[assembly: AssemblyCopyright("Copyright © 2016 Sebastian Lange")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: InternalsVisibleTo("RegAddinTest,PublicKey=" +
"0024000004800000940000000602000000240000525341310004000001000100a328dd78d7f848" +
"a4b1c4983a036b491dd79539c44381c4a26eb81ffcbad19c5cd99dd800577ad1fb0903d9f3ecb0" +
"f68018bf901d0c80419ded9ba929d057e76e7de969e994eec6255a64189253dc0978bb88c6432f" +
"2884dcac27e80acfd8ded955fa747d859a2cf38fdd9bd48327e95db885dc9d806397faa809f4e0" +
"629d08dc")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("9c4a6abc-dd1a-47e7-87ea-ccd02529b327")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// 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.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
"0024000004800000940000000602000000240000525341310004000001000100298c0fa7dc04d8" +
"ce948de923ae689b2fb44d095d6f04e428bd8c56b4821a3bd772b96fb3f5bfbde1f2a48d085343" +
"c0a2a00adb0ad29e3999a837ee0ca4487bae0280f48be08451214d20568f717a0fc0c392f589a4" +
"bde589e10eebedcec6b013ae09b3879934f0639050558a19b36a68cb74e822dce602fc51918041" +
"21ea45ce")]
129 changes: 10 additions & 119 deletions RegAddin/RegAddin/RegAddin.csproj
Original file line number Diff line number Diff line change
@@ -1,131 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{9C4A6ABC-DD1A-47E7-87EA-CCD02529B327}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RegAddin</RootNamespace>
<AssemblyName>RegAddin</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TargetFramework>net48</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
<Copyright>Copyright © 2016 Sebastian Lange</Copyright>
<Description>Register/Unregister MS-Office Addins</Description>
<Company>http://netoffice.codeplex.com</Company>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\Source\NetOffice.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>RegAddin.pfx</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="About.cs" />
<Compile Include="Alert\Window.cs" />
<Compile Include="Common\AddinRegAnalyzer.cs" />
<Compile Include="ConsoleAdapter.cs" />
<Compile Include="Command.cs" />
<Compile Include="CommandLineSettingsTransformer.cs" />
<Compile Include="CommandLineValidator.cs" />
<Compile Include="Commands.cs" />
<Compile Include="CommandsSyntax.cs" />
<Compile Include="CommandSyntax.cs" />
<Compile Include="Common\AddinClassInformations.cs" />
<Compile Include="Common\AddinClassReflection.cs" />
<Compile Include="Common\AssemblyReflection.cs" />
<Compile Include="Common\AssemblyResolve.cs" />
<Compile Include="Common\AttributeReflection.cs" />
<Compile Include="Common\CultureInfoConversion.cs" />
<Compile Include="Common\PathUtils.cs" />
<Compile Include="Common\Registry.cs" />
<Compile Include="Common\TokenConversion.cs" />
<Compile Include="Diag\Diagnostics.cs" />
<Compile Include="Dispatcher\MethodUtils.cs" />
<Compile Include="Dispatcher\RegisterMethod.cs" />
<Compile Include="Dispatcher\UnRegisterMethod.cs" />
<Compile Include="ErrorCodes.cs" />
<Compile Include="ExceptionPresenter.cs" />
<Compile Include="HelpPresenter.cs" />
<Compile Include="Common\IAppDomainMethod.cs" />
<Compile Include="Metrics\AddinMetrics.cs" />
<Compile Include="Metrics\ConsolePresenter.cs" />
<Compile Include="Metrics\WindowPresenter.cs" />
<Compile Include="OperationHandler.cs" />
<Compile Include="Program.cs" />
<Compile Include="ProgramHandler.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RegAddinException.cs" />
<Compile Include="RegFile\RegFileException.cs" />
<Compile Include="RegFile\RegFileOperationHandler.cs" />
<Compile Include="RegFile\RegFileOperationHost.cs" />
<Compile Include="RegFile\RegFileOperationHostSettings.cs" />
<Compile Include="RegFile\RegValueConverter.cs" />
<Compile Include="RegFile\ResultCodes.cs" />
<Compile Include="RegFile\ResultValidator.cs" />
<Compile Include="Register\RegisterException.cs" />
<Compile Include="Register\RegisterOperationHost.cs" />
<Compile Include="Register\RegisterOperationHandler.cs" />
<Compile Include="Register\RegisterOperationHostSettings.cs" />
<Compile Include="Register\ResultCodes.cs" />
<Compile Include="Register\ResultValidator.cs" />
<Compile Include="SingletonSettings.cs" />
<Compile Include="Unregister\ResultCodes.cs" />
<Compile Include="Unregister\ResultValidator.cs" />
<Compile Include="Unregister\UnregisterException.cs" />
<Compile Include="Unregister\UnregisterOperationHandler.cs" />
<Compile Include="Unregister\UnregisterOperationHost.cs" />
<Compile Include="Unregister\UnregisterOperationHostSettings.cs" />
<Compile Include="VersionPresenter.cs" />
<Compile Include="WarningPresenter.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="RegAddin.pfx" />
</ItemGroup>
<ItemGroup>
<Content Include="ToDo.txt" />
<None Include="..\..\Source\NetOffice.snk">
<Link>NetOffice.snk</Link>
</None>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
Binary file removed RegAddin/RegAddin/RegAddin.pfx
Binary file not shown.
9 changes: 8 additions & 1 deletion RegAddin/RegAddin/app.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>

<System.Windows.Forms.ApplicationConfigurationSection>
<add key="EnableWindowsFormsHighDpiAutoResizing" value="true" />
</System.Windows.Forms.ApplicationConfigurationSection>
</configuration>
64 changes: 64 additions & 0 deletions RegAddin/RegAddin/app.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!-- UAC Manifest Options
If you want to change the Windows User Account Control level replace the
requestedExecutionLevel node with one of the following.
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
Specifying requestedExecutionLevel element will disable file and registry virtualization.
Remove this element if your application requires this virtualization for backwards
compatibility.
-->
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>

<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- A list of the Windows versions that this application has been tested on
and is designed to work with. Uncomment the appropriate elements
and Windows will automatically select the most compatible environment. -->

<!-- Windows 10 -->
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />

</application>
</compatibility>

<!-- Indicates that the application is DPI-aware and will not be automatically scaled by Windows at higher
DPIs. Windows Presentation Foundation (WPF) applications are automatically DPI-aware and do not need
to opt in. Windows Forms applications targeting .NET Framework 4.6 that opt into this setting, should
also set the 'EnableWindowsFormsHighDpiAutoResizing' setting to 'true' in their app.config.
Makes the application long-path aware. See https://docs.microsoft.com/windows/win32/fileio/maximum-file-path-limitation -->
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
</windowsSettings>
</application>

<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>

</assembly>
36 changes: 0 additions & 36 deletions RegAddin/RegAddinTest/Properties/AssemblyInfo.cs

This file was deleted.

80 changes: 14 additions & 66 deletions RegAddin/RegAddinTest/RegAddinTest.csproj
Original file line number Diff line number Diff line change
@@ -1,77 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{606DF92F-6448-423E-9403-C58600EFD29A}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RegAddinTest</RootNamespace>
<AssemblyName>RegAddinTest</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
<TargetFramework>net48</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>RegAddinTest.snk</AssemblyOriginatorKeyFile>
<Copyright>Copyright © 2016 Sebastian Lange</Copyright>
<Description>Register/Unregister MS-Office Addins</Description>
<Company>http://netoffice.codeplex.com</Company>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="CmdLineTest01.cs" />
<Compile Include="CmdLineTest02.cs" />
<Compile Include="CmdLineTest03.cs" />
<Compile Include="CmdLineTest04.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\RegAddin\RegAddin.csproj">
<Project>{9c4a6abc-dd1a-47e7-87ea-ccd02529b327}</Project>
<Name>RegAddin</Name>
</ProjectReference>
<ProjectReference Include="..\RegAddin\RegAddin.csproj" />
</ItemGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\Source\NetOffice.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="RegAddinTest.snk" />
<None Include="..\..\Source\NetOffice.snk">
<Link>NetOffice.snk</Link>
</None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
Binary file removed RegAddin/RegAddinTest/RegAddinTest.snk
Binary file not shown.
Loading

0 comments on commit 46b2980

Please sign in to comment.