Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempted to introduce signed assembly. 🤞 #426

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ExtendedXmlSerializer.sln
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ExtendedXmlSerializer.Tests
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ExtendedXmlSerializer.Samples", "samples\ExtendedXmlSerializer.Samples\ExtendedXmlSerializer.Samples.csproj", "{935EB8FE-A9E5-4DC7-8CBB-7A32E2A56C9E}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ExtendedXmlSerializer.Signed", "src\ExtendedXmlSerializer.Signed\ExtendedXmlSerializer.Signed.csproj", "{0E744373-801D-451C-9C8B-E08B5A6339F0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -54,6 +56,10 @@ Global
{935EB8FE-A9E5-4DC7-8CBB-7A32E2A56C9E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{935EB8FE-A9E5-4DC7-8CBB-7A32E2A56C9E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{935EB8FE-A9E5-4DC7-8CBB-7A32E2A56C9E}.Release|Any CPU.Build.0 = Release|Any CPU
{0E744373-801D-451C-9C8B-E08B5A6339F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0E744373-801D-451C-9C8B-E08B5A6339F0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0E744373-801D-451C-9C8B-E08B5A6339F0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0E744373-801D-451C-9C8B-E08B5A6339F0}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Product>ExtendedXmlSerializer</Product>
<Company>ExtendedXmlSerializer</Company>
<Description>An extensible Xml Serializer for .NET that builds on the functionality of the classic XmlSerializer with a powerful and robust extension model.</Description>
<AssemblyTitle>ExtendedXmlSerializer</AssemblyTitle>
<Authors>Wojciech Nagórski;Michael DeMond</Authors>
<TargetFramework>net452</TargetFramework>
<AssemblyName>ExtendedXmlSerializer</AssemblyName>
<RootNamespace>ExtendedXmlSerializer</RootNamespace>
</PropertyGroup>

<PropertyGroup>
<DocumentationFile>$(BaseIntermediateOutputPath)\$(Configuration)\$(TargetFramework)\Signed\ExtendedXmlSerializer.xml</DocumentationFile>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>ExtendedXmlSerializer.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<PropertyGroup Condition="$(Configuration) == 'Release'">
<PackageId>ExtendedXmlSerializer.Signed</PackageId>
<PackageTags>xmlserializer;xmlserialization;serialization;ExtendedXmlSerializer;xml</PackageTags>
<PackageProjectUrl>https://extendedxmlserializer.github.io/</PackageProjectUrl>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/ExtendedXmlSerializer/home.git</RepositoryUrl>
<PackageIcon>Logo.png</PackageIcon>
<VersionPrefix>0.0.0.0</VersionPrefix>
<PackageReleaseNotes>
Strongly-named/signed version of the ExtendedXmlSerializer assembly:
https://github.com/ExtendedXmlSerializer/home/issues/425

Latest release notes with downloads are available here:
https://github.com/ExtendedXmlSerializer/home/releases

Single-file CHANGELOG featuring overview and history of changes since v3.0.0:
https://github.com/ExtendedXmlSerializer/home/blob/master/CHANGELOG.md
</PackageReleaseNotes>

<!-- Optional: Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>

<!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>

<!-- Optional: Include the PDB in the built .nupkg -->
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>

<ItemGroup Condition="$(Configuration) == 'Release'">
<None Include="..\..\$(PackageLicenseFile)" Pack="true" Visible="false" PackagePath="" />
<None Include="..\..\Logo.png" Pack="true" Visible="false" PackagePath="" />
</ItemGroup>

<PropertyGroup>
<DefineConstants>$(DefineConstants);NET45</DefineConstants>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\ExtendedXmlSerializer\**\*.cs" />
<Compile Remove="..\ExtendedXmlSerializer\obj\**" />
<Compile Remove="obj\**" />
<EmbeddedResource Remove="obj\**" />
<None Remove="obj\**" />
<Compile Remove="..\ExtendedXmlSerializer\Properties\AssemblyInfo.Internal.cs" />
<Compile Remove="Properties\AssemblyInfo.Internal.cs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="JetBrains.Annotations" Version="2019.1.3" PrivateAssets="All" />
<PackageReference Include="LightInject" Version="6.2.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="NReco.LambdaParser" Version="1.0.11" />
<PackageReference Include="Sprache" Version="2.2.0" />
<PackageReference Include="System.Interactive" Version="4.0.0" />
<PackageReference Include="System.Collections.Immutable" Version="1.7.0" />
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.7.0" />
</ItemGroup>
</Project>
Binary file not shown.
3 changes: 3 additions & 0 deletions src/ExtendedXmlSerializer/Properties/AssemblyInfo.Internal.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
using System.Runtime.CompilerServices;

[assembly: InternalsVisibleTo("ExtendedXmlSerializer.Tests")]
3 changes: 0 additions & 3 deletions src/ExtendedXmlSerializer/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// 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: AssemblyTrademark("")]
[assembly: InternalsVisibleTo("ExtendedXmlSerializer.Tests")]
[assembly: InternalsVisibleTo("ExtendedXmlSerializer.Integration")]

// 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
Expand Down