[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Conditional Assembly Signing in VS2005

Posted on 2006-05-17
Medium Priority
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

AlexFM earned 750 total points
ID: 16698163
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

ID: 16698178
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Integration Management Part 2
Suggested Courses
Course of the Month20 days, 2 hours left to enroll

872 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