Skip to content

Commit 293bec4

Browse files
authored
Merge pull request #125 from stackify/feature/DOTNET-107
Feature/dotnet 107
2 parents 13b52ec + 7200c09 commit 293bec4

File tree

10 files changed

+23
-0
lines changed

10 files changed

+23
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ packages/
3030
**/bin/*
3131
**/obj/*
3232
BuildOutput/
33+
*.pfx
34+
*.snk

Scripts/RemoveSignCode.ps1

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
function Remove-SignCode {
2+
param (
3+
$ASMFile
4+
)
5+
Set-Content -Path $ASMFile -Value (Get-Content -Path $ASMFile | Select-String -Pattern AssemblyKeyFileAttribute -NotMatch )
6+
}
7+
8+
$files = @(Get-ChildItem -Path . -Directory -Filter Stackify*)
9+
10+
foreach ($file in $files) {
11+
$asmInfo = Get-ChildItem -Path $file/Properties/AssemblyInfo.cs
12+
Remove-SignCode -ASMFile $asmInfo
13+
}

Src/NLog.Targets.Stackify/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
[assembly: AssemblyCopyright("Copyright © 2015")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
16+
[assembly: AssemblyKeyFileAttribute("..\\StackifyLib\\Netreo.snk")]
1617

1718
// Setting ComVisible to false makes the types in this assembly not visible
1819
// to COM components. If you need to access a type in this assembly from

Src/StackifyLib.AspNetCore/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
[assembly: AssemblyCompany("Stackify")]
1010
[assembly: AssemblyProduct("StackifyLib.AspNetCore")]
1111
[assembly: AssemblyTrademark("")]
12+
[assembly: AssemblyKeyFileAttribute("..\\StackifyLib\\Netreo.snk")]
1213

1314
// Setting ComVisible to false makes the types in this assembly not visible
1415
// to COM components. If you need to access a type in this assembly from

Src/StackifyLib.CoreLogger/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
[assembly: AssemblyCompany("Stackify")]
1010
[assembly: AssemblyProduct("StackifyLib.CoreLogger")]
1111
[assembly: AssemblyTrademark("")]
12+
[assembly: AssemblyKeyFileAttribute("..\\StackifyLib\\Netreo.snk")]
1213

1314
// Setting ComVisible to false makes the types in this assembly not visible
1415
// to COM components. If you need to access a type in this assembly from

Src/StackifyLib.ELMAH/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
[assembly: AssemblyCopyright("Copyright © 2015")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
16+
[assembly: AssemblyKeyFileAttribute("..\\StackifyLib\\Netreo.snk")]
1617

1718
// Setting ComVisible to false makes the types in this assembly not visible
1819
// to COM components. If you need to access a type in this assembly from

Src/StackifyLib.StackifyTraceListener/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
[assembly: AssemblyCompany("Stackify")]
1010
[assembly: AssemblyProduct("StackifyLib.StackifyTraceListener")]
1111
[assembly: AssemblyTrademark("")]
12+
[assembly: AssemblyKeyFileAttribute("..\\StackifyLib\\Netreo.snk")]
1213

1314
// Setting ComVisible to false makes the types in this assembly not visible
1415
// to COM components. If you need to access a type in this assembly from

Src/StackifyLib.log4net/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
[assembly: AssemblyCopyright("Copyright © 2015")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
16+
[assembly: AssemblyKeyFileAttribute("..\\StackifyLib\\Netreo.snk")]
1617

1718
// Setting ComVisible to false makes the types in this assembly not visible
1819
// to COM components. If you need to access a type in this assembly from

Src/StackifyLib/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
[assembly: AssemblyCopyright("Copyright © 2018-2020")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
16+
[assembly: AssemblyKeyFileAttribute("Netreo.snk")]
1617

1718
// Setting ComVisible to false makes the types in this assembly not visible
1819
// to COM components. If you need to access a type in this assembly from

Src/StackifyLib/StackifyLib.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<AssemblyVersion>2.2.7.0</AssemblyVersion>
2424
<FileVersion>2.2.7.0</FileVersion>
2525
<PackageReleaseNotes>Remove default internal file logger</PackageReleaseNotes>
26+
<SignAssembly>false</SignAssembly>
2627
</PropertyGroup>
2728

2829
<ItemGroup>

0 commit comments

Comments
 (0)