Conditional Assembly Signing in VS2005

Posted on 2006-05-17
Last Modified: 2011-09-20
Hello guys

I have a bunch of class libraries, which I use from two applications: a Windows and a Web application. I strong sign these assemblies because I deploy them to customer computers with the Windows application. However during development of the Web application I sometimes get strange errors, which according to MS KB are because the signed assemblies are put in the BIN folder of the Web application (which is not supported). I don't want to put the assemblies in the GAC, because I am changing them during development and I don't want to remove the assembly signing because I need it for the Windows application.

Is there a way I can make the signing conditional? Like in the Web solution - do not sign them, in the Windows solution - sign them?

Question by:TheAvenger
    LVL 48

    Accepted Solution

    Solution is actually list of projects which doesn't contain any other information. I think the only way to make solution-dependent action is to add some project to solution which makes this action.
    For example, you can add to Windows solution Makefile project, which runs batch file. This file signs some assemblies - they should not be signed in their own projects. Web solution should not contain this project.
    LVL 20

    Author Comment

    I have to declare them Delay Signed then (otherwise signing with a batch will not work). And delay signed means no way to debug them or use them in the web solution.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Article by: Ivo
    C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now