Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4da1954

Browse files
authored
Sign Runtime DLL with a strong name (#1382)
1 parent6b2347a commit4da1954

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
usingSystem.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

@@ -31,7 +34,7 @@
3134
</PropertyGroup>
3235

3336
<ItemGroup>
34-
<NoneInclude="..\..\LICENSE"Pack="true"PackagePath=""/>
37+
<NoneInclude="..\..\LICENSE"Pack="true"PackagePath=""/>
3538
</ItemGroup>
3639

3740
<ItemGroup>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp