mirror of
https://github.com/brutaldev/StrongNameSigner.git
synced 2026-04-25 03:16:10 +03:00
[PR #48] [MERGED] Fix of temporary file handling and missing dll's in tests. #98
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/brutaldev/StrongNameSigner/pull/48
Author: @alphaleonis
Created: 8/29/2018
Status: ✅ Merged
Merged: 8/29/2018
Merged by: @brutaldev
Base:
master← Head:bug/47📝 Commits (3)
e93fc8bAdded .editorconfig to keep formatting of files.c5a1b47Added a few new tests to test signing in-place, and to a new location with and without .pdb-files present.47572f5- Updated a couple of test assemblies with PDB-files.📊 Changes
13 files changed (+420 additions, -150 deletions)
View changed files
📝
.gitignore(+3 -0)➕
src/.editorconfig(+14 -0)📝
src/Brutal.Dev.StrongNameSigner.Tests/Brutal.Dev.StrongNameSigner.Tests.csproj(+13 -7)📝
src/Brutal.Dev.StrongNameSigner.Tests/SignAssemblyTests.cs(+94 -1)📝
src/Brutal.Dev.StrongNameSigner.Tests/TestAssemblies/Brutal.Dev.StrongNameSigner.TestAssembly.A.dll(+0 -0)➕
src/Brutal.Dev.StrongNameSigner.Tests/TestAssemblies/Brutal.Dev.StrongNameSigner.TestAssembly.A.pdb(+0 -0)📝
src/Brutal.Dev.StrongNameSigner.Tests/TestAssemblies/Brutal.Dev.StrongNameSigner.TestAssembly.B.dll(+0 -0)➕
src/Brutal.Dev.StrongNameSigner.Tests/TestAssemblies/Brutal.Dev.StrongNameSigner.TestAssembly.B.pdb(+0 -0)📝
src/Brutal.Dev.StrongNameSigner.sln(+1 -0)📝
src/Brutal.Dev.StrongNameSigner/Brutal.Dev.StrongNameSigner.csproj(+1 -0)➕
src/Brutal.Dev.StrongNameSigner/ForceAssemblyReferenceAttribute.cs(+21 -0)📝
src/Brutal.Dev.StrongNameSigner/Properties/AssemblyInfo.cs(+11 -1)📝
src/Brutal.Dev.StrongNameSigner/SigningHelper.cs(+262 -141)📄 Description
In reference to #47
Updated a couple of test assemblies with PDB-files and added a couple of tests to verify some previously failing scenarios.
Added strong references to the Mono.Cecil.Pdb, Mdb and Rocks libraries so that they are among other things properly copied to the test project. (See
AssemblyInfo.cs). If the Mono.Cecil.Pdb.dll is not copied locally (which it wasn't), then the symbol reading doesn't work.Fixed temporary file handling in SigningHelper, so that it now uses a temporary directory to store the generated files during generation and ensures they are deleted afterwards. I refactored out the file handling into its own private class
OutputFileManagerwhich takes care of creating the temporary directory etc. Cleans up the methods using it considerably and avoids repetitive code.Also added an .editorconfig so that the indentation remained consistent.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.