forked from linvi/tweetinvi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
73 lines (48 loc) · 2.38 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
**********************************************************
****************** CONFIGURE MACHINE *********************
**********************************************************
Install PowerShell Community Extensions to get the Write-Zip command
Add the PowerShell.Exe.Config to C:\Windows\System32\WindowsPowerShell\v1.0
Run : Set-ExecutionPolicy RemoteSigned
Restart the machine (pscx cannot be used otherwise)
## To use `-sign` option to sign output binary
* Copy tweetinvi.certificate.p12 in the `Developer Tools` folder.
* Open Powershell and set the `tweetinvikey` environment variable.
[Environment]::SetEnvironmentVariable("tweetinvikey", "The secrete key", "User")
**********************************************************
************************ NUGET ***************************
**********************************************************
nuget pack
nuget push <*.nupkg> -ApiKey 'MY_NUGET.ORG_APIKEY' -Verbosity detailed
**********************************************************
********************** VS SIGNING ************************
**********************************************************
Open Visual Studio Command Prompt
// Generate the public Key file
sn -p tweetinvi.pfx tweetinvi.key
// Get the Hexa version of the public key
// When performing this action the password should be requested
sn -tp tweetinvi.key
***********************************************************
********************** DLL SIGNING ************************
***********************************************************
// From ILMerge with *.snk
ILMerge /target:library /out:merged.dll /keyfile:tweetinvi.snk some.dll someother.dll
// From ILMerge with *.pfx
// http://blog.nerdbank.net/2009/06/how-to-get-ilmerge-to-work-with-pfx.html
sn -p tweetinvi.pfx tweetinvi.pub
ilmerge /keyfile:tweetinvi.pub /delaysign /out:output\Tweetinvi.dll some.dll someother.dll
sn -R output\Tweetinvi.dll some.pfx
// From non signed DLL
// http://www.geekzilla.co.uk/ViewCE64BEF3-51A6-4F1C-90C9-6A76B015C9FB.htm
ildasm Tweetinvi.dll /out:Tweetinvi.il
ren Tweetinvi.dll Tweetinvi.dll.orig
ilasm Tweetinvi.il /dll /key= key_path.snk
***********************************************************
**************** NUGET FOLDER STRUCTURE *******************
***********************************************************
lib/net40
lib/net45
lib/netstandard1.6
lib/portable-net40+sl5+wp80+win8+wpa81
lib/portable-net45+wp80+win8+wpa81+dnxcore50