Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
Merge main to release/dev16.8 (dotnet#10120)
Browse files Browse the repository at this point in the history
* Bloody mutable fields (dotnet#10116)

* Fix 9150 --- #i nuget on desktop witout net48 ref assemblies fails. (dotnet#10114)

* signing (dotnet#10108)

Co-authored-by: Kevin Ransom (msft) <[email protected]>
  • Loading branch information
2 people authored and nosami committed Feb 22, 2021
1 parent 93104e3 commit 2aafef7
Show file tree
Hide file tree
Showing 6 changed files with 616 additions and 5 deletions.
579 changes: 579 additions & 0 deletions src/absil/ilsign.fs

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions src/absil/ilsign.fsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information.

/// Functions associated with signing il assemblies which
/// vary between supported implementations of the CLI Common Language
/// Runtime, e.g. between the SSCLI, Mono and the Microsoft CLR.
///
module internal FSharp.Compiler.AbstractIL.Internal.StrongNameSign

//---------------------------------------------------------------------
// Strong name signing
//---------------------------------------------------------------------
[<Sealed>]
type ILStrongNameSigner =
member PublicKey: byte[]
static member OpenPublicKeyOptions: string -> bool -> ILStrongNameSigner
static member OpenPublicKey: byte[] -> ILStrongNameSigner
static member OpenKeyPairFile: string -> ILStrongNameSigner
static member OpenKeyContainer: string -> ILStrongNameSigner
member Close: unit -> unit
member IsFullySigned: bool
member PublicKey: byte[]
member SignatureSize: int
member SignFile: string -> unit
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@
<Link>AbsIL\ilsign.fsi</Link>
</Compile>
<Compile Include="..\absil\ilsign.fs">
<Compile Include="..\..\absil\ilsign.fsi">
<Link>AbsIL\ilsign.fsi</Link>
</Compile>
<Compile Include="..\..\absil\ilsign.fs">
<Link>AbsIL\ilsign.fs</Link>
</Compile>
<Compile Include="..\absil\ilnativeres.fsi">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@
<Link>AbsIL\ilsign.fsi</Link>
</Compile>
<Compile Include="..\absil\ilsign.fs">
<Compile Include="..\..\absil\ilsign.fsi">
<Link>AbsIL\ilsign.fsi</Link>
</Compile>
<Compile Include="..\..\absil\ilsign.fs">
<Link>AbsIL\ilsign.fs</Link>
</Compile>
<Compile Include="..\absil\ilnativeres.fsi">
Expand Down
2 changes: 2 additions & 0 deletions src/fsharp/fsc.fs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ open Microsoft.DotNet.DependencyManager

open FSharp.Compiler.AbstractIL.Internal.StrongNameSign

open FSharp.Compiler.AbstractIL.Internal.StrongNameSign

#if !NO_EXTENSIONTYPING
open FSharp.Compiler.ExtensionTyping
#endif
Expand Down
8 changes: 3 additions & 5 deletions src/fsharp/fsc.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,16 @@

module internal FSharp.Compiler.Driver

open FSharp.Compiler.AbstractIL
open FSharp.Compiler.AbstractIL.IL
open FSharp.Compiler.AbstractIL.ILBinaryReader
open FSharp.Compiler.AbstractIL.Internal.Library
open FSharp.Compiler.AbstractIL.Internal.StrongNameSign
open FSharp.Compiler.CheckExpressions
open FSharp.Compiler.CheckDeclarations
open FSharp.Compiler.CompilerConfig
open FSharp.Compiler.CompilerDiagnostics
open FSharp.Compiler.CompilerImports
open FSharp.Compiler.CompileOps
open FSharp.Compiler.ErrorLogger
open FSharp.Compiler.SyntaxTree
open FSharp.Compiler.TcGlobals
open FSharp.Compiler.TypeChecker
open FSharp.Compiler.TypedTree
open FSharp.Compiler.TypedTreeOps

Expand Down

0 comments on commit 2aafef7

Please sign in to comment.