picrap / signreferences Goto Github PK
View Code? Open in Web Editor NEWBecause open source causes CS1577 to strong naming fans.
License: MIT License
Because open source causes CS1577 to strong naming fans.
License: MIT License
Allow the use of a file where .snk files are linked to specific assemblies.
How to reproduce:
I have tracked this down in the code of SignReferences to AssemblyReference.cs:SaveLoad. This fails if an assembly with the same strong name has been loaded already. Visual Studio seems to reuse msbuild processes between builds and they keep their AppDomain where the previous SignReferences call has loaded it. Work around: kill msbuild process or restart Visual Studio.
Just reusing that loaded old assembly does not help because that may have a different signing status than the new one.
I think one needs to create a new AppDomain per ProjectSigner instance and make AssemblyReference use it. Working with multiple AppDomains is not easy but I don't see another way.
Qu'est ce que t'en dis ? ๐ซ๐ท
Hello Pascal,
Could you be so kind to change the following code in you sources:
ProcessUtility
private static string FindApplicationPath(string fileName)
...
return path.Select(p => TryPath(p, fileName)).SingleOrDefault(p => p != null)
...
SingleOrDefault fails on some PC's. It's not that convenient to fix environment variables on all these PC-s. So, could you be so kind to change it to FirstOrDefault, thanks.
Kind Regards,
Vitaliy
Hi,
congrats on your helpful package, I was just about to hack sth on my own before finding your package.
My use case: several of my projects include the same unsigned nuget package and I don't want to create multiple SignReferences.txt files.
Idea/Feature request:
Why not do it like nuget with the nuget.config file or git with .gitignore: Search for the file on all parent folders and merge the result? Packages used multiple times could be on a top level and specific packages on the project level.
Greetings from Haute-Savoie !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.