Skip to content

Commit 6308ea5

Browse files
committed
Give nhapi strong-named assemblies.
1 parent a8326a2 commit 6308ea5

File tree

19 files changed

+104
-30
lines changed

19 files changed

+104
-30
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ dist/
2525
.vscode/
2626
# Visual Studio 2015 cache/options directory
2727
.vs/
28+
# Rider
29+
.idea/
2830

2931
# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
3032
!packages/*/build/

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ All notable changes to this project will be documented in this file.
77

88
## Previous Releases
99
###
10+
## [3.0.2] - 2021-08-09
11+
This change gives nhapi [strong-named assemblies](https://docs.microsoft.com/en-us/dotnet/standard/assembly/strong-named), there are no codes changes.
12+
### Bug Fixes
13+
- [#227](https://github.com/nHapiNET/nHapi/issues/227) fixes "A strongly-named assembly is required" runtime errors
14+
1015
## [nhapi.model.v231 3.0.1] - 2021-07-02
1116
This release is for the NuGet package `nhapi.model.v231` only, there are no code changes, see below for change.
1217

1318
- Remove unused project reference.
1419

1520
## [3.0.0] - 2021-06-28
16-
1721
Along with the changes below you can now be more selective about how you install nHapi, please read the [Getting Started](https://github.com/nHapiNET/nHapi/wiki/Getting-Started#nhapi-version-300) page of the wiki for more information.
1822

1923
### Breaking Changes

build/nHapi.v3.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
33
<metadata>
44
<id>nhapi</id>
5-
<version>3.0.0</version>
5+
<version>3.0.2</version>
66
<authors>Chad Chenoweth,Duane Edwards,Jake Aitchison</authors>
77
<license type="expression">MPL-2.0</license>
88
<projectUrl>https://github.com/nHapiNET/nHapi</projectUrl>
@@ -13,7 +13,7 @@
1313
NHapi allows Microsoft .NET developers to easily use an HL7 2.x object model. This object model allows for parsing and encoding HL7 2.x data to/from Pipe Delimited or XML formats. A very handy program for use in the health care industry.
1414

1515
This project is NOT affiliated with the HL7 organization. This software just conforms to the HL7 2.x specifications.</description>
16-
<releaseNotes>https://github.com/nHapiNET/nHapi/releases/tag/v3.0.0</releaseNotes>
16+
<releaseNotes>https://github.com/nHapiNET/nHapi/releases/tag/v3.0.2</releaseNotes>
1717
<tags>HL7 parsing healthcare HAPI xml</tags>
1818
<readme>docs\README.md</readme>
1919
<dependencies>

src/NHapi.Base/NHapi.Base.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,25 @@
44
<TargetFrameworks>net35;netstandard2.0</TargetFrameworks>
55
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
66
<PackageId>nhapi.base</PackageId>
7-
<PackageVersion>3.0.0</PackageVersion>
7+
<PackageVersion>3.0.2</PackageVersion>
88
<Authors>Chad Chenoweth;Duane Edwards;Jake Aitchison</Authors>
99
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1010
<PackageProjectUrl>https://github.com/nHapiNET/nHapi</PackageProjectUrl>
1111
<RepositoryUrl>https://github.com/nHapiNET/nHapi.git</RepositoryUrl>
1212
<RepositoryType>git</RepositoryType>
1313
<Description>The core components for parsing/encoding HL7 messages. Contains the base classes and interfaces for datatypes, segments, and messages.</Description>
1414
<PackageTags>HL7;parsing;healthcare;HAPI;xml</PackageTags>
15-
<PackageReleaseNotes>https://github.com/nHapiNET/nHapi/releases/tag/v3.0.0</PackageReleaseNotes>
15+
<PackageReleaseNotes>https://github.com/nHapiNET/nHapi/releases/tag/v3.0.2</PackageReleaseNotes>
1616
<PackageReadmeFile>docs\README.md</PackageReadmeFile>
1717
<AssemblyOriginatorKeyFile>..\..\NHapi.snk</AssemblyOriginatorKeyFile>
1818
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
1919
<NoWarn>1591</NoWarn>
2020
</PropertyGroup>
2121

22+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
23+
<SignAssembly>true</SignAssembly>
24+
</PropertyGroup>
25+
2226
<ItemGroup>
2327
<AdditionalFiles Include="$(SolutionDir)stylecop.json" Link="Properties\stylecop.json" />
2428
</ItemGroup>

src/NHapi.Base/Properties/AssemblyInfo.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,14 @@
1212

1313
// The following GUID is for the ID of the typelib if this project is exposed to COM
1414
[assembly: Guid("fb32b28b-416b-4145-992b-824afe2eb911")]
15-
[assembly: InternalsVisibleTo("NHapi.SourceGeneration")]
15+
16+
#if DEBUG
17+
[assembly: InternalsVisibleTo("NHapi.SourceGeneration")]
18+
#else
19+
[assembly: InternalsVisibleTo("NHapi.SourceGeneration,PublicKey=" +
20+
"0024000004800000940000000602000000240000525341310004000001000100b938fa88814fb9" +
21+
"9f1d02dfce84c41f38eb1ca31f694b706248e6e21ceed1b1d150416c1375603c7a5dd6d3b2cdec" +
22+
"97ccbbdd7a1d6fac61a1ad96ebf88e889ba113913c2f36890ea75108a1d8a23affc0c87357f07d" +
23+
"ec77c69a519215d0d4043759397b1a8fea1dc881b440ba4232ad4e24d7a8d90bb004549cf4f9dd" +
24+
"2d6c13d8")]
25+
#endif

src/NHapi.Model.V21/NHapi.Model.V21.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,25 @@
44
<TargetFrameworks>net35;netstandard2.0</TargetFrameworks>
55
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
66
<PackageId>nhapi.model.v21</PackageId>
7-
<PackageVersion>3.0.0</PackageVersion>
7+
<PackageVersion>3.0.2</PackageVersion>
88
<Authors>Chad Chenoweth;Duane Edwards;Jake Aitchison</Authors>
99
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1010
<PackageProjectUrl>https://github.com/nHapiNET/nHapi</PackageProjectUrl>
1111
<RepositoryUrl>https://github.com/nHapiNET/nHapi.git</RepositoryUrl>
1212
<RepositoryType>git</RepositoryType>
1313
<Description>Contains the data types, segments, and messages that follow the HL7 2.1 schema.</Description>
1414
<PackageTags>HL7;parsing;healthcare;HAPI;xml</PackageTags>
15-
<PackageReleaseNotes>https://github.com/nHapiNET/nHapi/releases/tag/v3.0.0</PackageReleaseNotes>
15+
<PackageReleaseNotes>https://github.com/nHapiNET/nHapi/releases/tag/v3.0.2</PackageReleaseNotes>
1616
<PackageReadmeFile>docs\README.md</PackageReadmeFile>
1717
<AssemblyOriginatorKeyFile>..\..\NHapi.snk</AssemblyOriginatorKeyFile>
1818
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
1919
<NoWarn>1591</NoWarn>
2020
</PropertyGroup>
2121

22+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
23+
<SignAssembly>true</SignAssembly>
24+
</PropertyGroup>
25+
2226
<ItemGroup>
2327
<None Include="..\..\NHapi.snk" Link="NHapi.snk" />
2428
</ItemGroup>

src/NHapi.Model.V22/NHapi.Model.V22.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,25 @@
44
<TargetFrameworks>net35;netstandard2.0</TargetFrameworks>
55
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
66
<PackageId>nhapi.model.v22</PackageId>
7-
<PackageVersion>3.0.0</PackageVersion>
7+
<PackageVersion>3.0.2</PackageVersion>
88
<Authors>Chad Chenoweth;Duane Edwards;Jake Aitchison</Authors>
99
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1010
<PackageProjectUrl>https://github.com/nHapiNET/nHapi</PackageProjectUrl>
1111
<RepositoryUrl>https://github.com/nHapiNET/nHapi.git</RepositoryUrl>
1212
<RepositoryType>git</RepositoryType>
1313
<Description>Contains the data types, segments, and messages that follow the HL7 2.2 schema.</Description>
1414
<PackageTags>HL7;parsing;healthcare;HAPI;xml</PackageTags>
15-
<PackageReleaseNotes>https://github.com/nHapiNET/nHapi/releases/tag/v3.0.0</PackageReleaseNotes>
15+
<PackageReleaseNotes>https://github.com/nHapiNET/nHapi/releases/tag/v3.0.2</PackageReleaseNotes>
1616
<PackageReadmeFile>docs\README.md</PackageReadmeFile>
1717
<AssemblyOriginatorKeyFile>..\..\NHapi.snk</AssemblyOriginatorKeyFile>
1818
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
1919
<NoWarn>1591</NoWarn>
2020
</PropertyGroup>
2121

22+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
23+
<SignAssembly>true</SignAssembly>
24+
</PropertyGroup>
25+
2226
<ItemGroup>
2327
<None Include="..\..\NHapi.snk" Link="NHapi.snk" />
2428
</ItemGroup>

src/NHapi.Model.V22_ZSegments/NHapi.Model.V22_ZSegments.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
<NoWarn>1591</NoWarn>
99
</PropertyGroup>
1010

11+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
12+
<SignAssembly>true</SignAssembly>
13+
</PropertyGroup>
14+
1115
<ItemGroup>
1216
<None Include="..\..\NHapi.snk" Link="NHapi.snk" />
1317
</ItemGroup>

src/NHapi.Model.V23/NHapi.Model.V23.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,25 @@
44
<TargetFrameworks>net35;netstandard2.0</TargetFrameworks>
55
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
66
<PackageId>nhapi.model.v23</PackageId>
7-
<PackageVersion>3.0.0</PackageVersion>
7+
<PackageVersion>3.0.2</PackageVersion>
88
<Authors>Chad Chenoweth;Duane Edwards;Jake Aitchison</Authors>
99
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1010
<PackageProjectUrl>https://github.com/nHapiNET/nHapi</PackageProjectUrl>
1111
<RepositoryUrl>https://github.com/nHapiNET/nHapi.git</RepositoryUrl>
1212
<RepositoryType>git</RepositoryType>
1313
<Description>Contains the data types, segments, and messages that follow the HL7 2.3 schema.</Description>
1414
<PackageTags>HL7;parsing;healthcare;HAPI;xml</PackageTags>
15-
<PackageReleaseNotes>https://github.com/nHapiNET/nHapi/releases/tag/v3.0.0</PackageReleaseNotes>
15+
<PackageReleaseNotes>https://github.com/nHapiNET/nHapi/releases/tag/v3.0.2</PackageReleaseNotes>
1616
<PackageReadmeFile>docs\README.md</PackageReadmeFile>
1717
<AssemblyOriginatorKeyFile>..\..\NHapi.snk</AssemblyOriginatorKeyFile>
1818
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
1919
<NoWarn>1591</NoWarn>
2020
</PropertyGroup>
2121

22+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
23+
<SignAssembly>true</SignAssembly>
24+
</PropertyGroup>
25+
2226
<ItemGroup>
2327
<None Include="..\..\NHapi.snk" Link="NHapi.snk" />
2428
</ItemGroup>

src/NHapi.Model.V231/NHapi.Model.V231.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,25 @@
44
<TargetFrameworks>net35;netstandard2.0</TargetFrameworks>
55
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
66
<PackageId>nhapi.model.v231</PackageId>
7-
<PackageVersion>3.0.1</PackageVersion>
7+
<PackageVersion>3.0.2</PackageVersion>
88
<Authors>Chad Chenoweth;Duane Edwards;Jake Aitchison</Authors>
99
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1010
<PackageProjectUrl>https://github.com/nHapiNET/nHapi</PackageProjectUrl>
1111
<RepositoryUrl>https://github.com/nHapiNET/nHapi.git</RepositoryUrl>
1212
<RepositoryType>git</RepositoryType>
1313
<Description>Contains the data types, segments, and messages that follow the HL7 2.3.1 schema.</Description>
1414
<PackageTags>HL7;parsing;healthcare;HAPI;xml</PackageTags>
15-
<PackageReleaseNotes>https://github.com/nHapiNET/nHapi/releases/tag/v3.0.1-nhapi.model.v231</PackageReleaseNotes>
15+
<PackageReleaseNotes>https://github.com/nHapiNET/nHapi/releases/tag/v3.0.2</PackageReleaseNotes>
1616
<PackageReadmeFile>docs\README.md</PackageReadmeFile>
1717
<AssemblyOriginatorKeyFile>..\..\NHapi.snk</AssemblyOriginatorKeyFile>
1818
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
1919
<NoWarn>1591</NoWarn>
2020
</PropertyGroup>
2121

22+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
23+
<SignAssembly>true</SignAssembly>
24+
</PropertyGroup>
25+
2226
<ItemGroup>
2327
<None Include="..\..\NHapi.snk" Link="NHapi.snk" />
2428
</ItemGroup>

0 commit comments

Comments
 (0)