Skip to content

Commit 0d560f3

Browse files
authored
Merge branch 'master' into clr-loader
2 parents 1493b4d + 4da1954 commit 0d560f3

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ when .NET expects an integer [#1342][i1342]
3636
- BREAKING: Methods with `ref` or `out` parameters and void return type return a tuple of only the `ref` and `out` parameters.
3737
- BREAKING: to call Python from .NET `Runtime.PythonDLL` property must be set to Python DLL name
3838
or the DLL must be loaded in advance. This must be done before calling any other Python.NET functions.
39+
- Sign Runtime DLL with a strong name
3940

4041
### Fixed
4142

src/embed_tests/Python.EmbeddingTest.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>net472;netcoreapp3.1</TargetFrameworks>
5+
<AssemblyOriginatorKeyFile>..\pythonnet.snk</AssemblyOriginatorKeyFile>
6+
<SignAssembly>true</SignAssembly>
57
</PropertyGroup>
68

79
<ItemGroup>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
using System.Runtime.CompilerServices;
22

3-
[assembly: InternalsVisibleTo("Python.EmbeddingTest")]
3+
[assembly: InternalsVisibleTo("Python.EmbeddingTest, PublicKey=00240000048000009400000006020000002400005253413100040000110000005ffd8f49fb44ab0641b3fd8d55e749f716e6dd901032295db641eb98ee46063cbe0d4a1d121ef0bc2af95f8a7438d7a80a3531316e6b75c2dae92fb05a99f03bf7e0c03980e1c3cfb74ba690aca2f3339ef329313bcc5dccced125a4ffdc4531dcef914602cd5878dc5fbb4d4c73ddfbc133f840231343e013762884d6143189")]

src/runtime/Python.Runtime.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
<DebugSymbols>true</DebugSymbols>
2020
<IncludeSymbols>true</IncludeSymbols>
2121
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
22-
22+
23+
<AssemblyOriginatorKeyFile>..\pythonnet.snk</AssemblyOriginatorKeyFile>
24+
<SignAssembly>true</SignAssembly>
25+
2326
<NoWarn>1591;NU1701</NoWarn>
2427
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
2528

@@ -32,7 +35,7 @@
3235
</PropertyGroup>
3336

3437
<ItemGroup>
35-
<None Include="..\..\LICENSE" Pack="true" PackagePath=""/>
38+
<None Include="..\..\LICENSE" Pack="true" PackagePath="" />
3639
</ItemGroup>
3740

3841
<ItemGroup>

0 commit comments

Comments
 (0)