Paradox Game Engine
v1.0.0 beta06
Main Page
Related Pages
Packages
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Events
Macros
Pages
OpenSourceSignProcessor.cs
Go to the documentation of this file.
1
using
Mono.Cecil;
2
3
namespace
SiliconStudio.AssemblyProcessor
4
{
5
public
class
OpenSourceSignProcessor
:
IAssemblyDefinitionProcessor
6
{
7
public
bool
Process
(
AssemblyProcessorContext
context)
8
{
9
var assembly = context.Assembly;
10
11
// Only process if there is a public key
12
if
(!assembly.Name.HasPublicKey)
13
return
false
;
14
15
// Check if already strong signed
16
if
((assembly.MainModule.Attributes & ModuleAttributes.StrongNameSigned) == ModuleAttributes.StrongNameSigned)
17
return
false
;
18
19
// We have a delay signed assembly that is not strong name signed yet.
20
// Let's strong sign it now (a.k.a. OSS, OpenSourceSign)
21
// Note: Maybe we should make sure it's actually Paradox key?
22
assembly.MainModule.Attributes |= ModuleAttributes.StrongNameSigned;
23
24
return
true
;
25
}
26
}
27
}
SiliconStudio.AssemblyProcessor.IAssemblyDefinitionProcessor
Definition:
IAssemblyDefinitionProcessor.cs:8
SiliconStudio.AssemblyProcessor.AssemblyProcessorContext
Definition:
AssemblyProcessorContext.cs:8
SiliconStudio.AssemblyProcessor.OpenSourceSignProcessor
Definition:
OpenSourceSignProcessor.cs:5
SiliconStudio.AssemblyProcessor.OpenSourceSignProcessor.Process
bool Process(AssemblyProcessorContext context)
Definition:
OpenSourceSignProcessor.cs:7
sources
common
core
SiliconStudio.AssemblyProcessor.Common
OpenSourceSignProcessor.cs
Generated on Sat Dec 20 2014 21:50:59 for Paradox Game Engine by
1.8.7