Re: strong name error

Tech-Archive recommends: Fix windows errors by optimizing your registry



"Tom" <Tom@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:23E74076-49CE-4FAB-9077-CF46C1708832@xxxxxxxxxxxxxxxx
In VS 2005, it appears to me that I know longer have the ability to
conditionally sign the assemblies. If that is wrong, please jump in right
here...!!!!

Conditionally signing of assemblies is still possible, even when specifying
signing behaviour via the project properties. However, the UI does not
support the full flexibility required for this, so you'll need to do a bit
of manual editing of the build properties. Try this...

1. Remove all assembly-level attributes previously used to specify signing
behaviour.
2. Specify your preferred signing behaviour for release builds using the
project properties editor then save your project.
3. In the solution explorer within VStudio, right-click the node for your
project, then select "Unload Project" from the context menu.
4. Once the project is unloaded, right-click the project node again, and
select the "Edit <your project>.csproj" item from the context menu.
5. Manually edit the csproj file to move the SignAssembly and
AssemblyOriginatorKeyFile nodes from the default property group to the
release property group.
6. Save the file then reload the project from the project context menu.


Other than having to be careful not to place signed DEBUG code into the
production area, is there something else I should be on the watch for???
So
how am I doing thus far....??? Am I about to screw myself up and not yet
see
it coming?!?!?

Personally, I would be quite concerned about deploying signed assemblies
when most (or all?) testing was performed on their unsigned counterparts.
Is there some particular reason you are avoiding use of delay signing for
your debug assemblies? If you are concerned about the risks exposed by
verification skip entries, you might want to consider using the new test key
signing functionality available in fx 2.0. (See
http://msdn.microsoft.com/msdnmag/issues/06/07/CLRInsideOut/default.aspx for
an overview and http://blogs.msdn.com/shawnfa/archive/2005/10/24/484170.aspx
for more details.)


.



Relevant Pages

  • Re: Sharing Code
    ... But this is a red-herring you've thrown in and really has nothing to do with the general precept and good practice of signing any assembly you create because it is *the easiest thing to do* when creating the most flexible of assemblies. ... How are you making it sound oh so time consuming to add a reference to a key file when you know damn well it takes seconds, which in any normal developer's book is zero-effort. ... in order to avoid warnings I moved the signing from AssemblyInfo to the properties pane. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Run app from network share
    ... For this, and to run applications in the security zone of network shares, we're signing our .NET assemblies with a strong key that is shared by all products from our company. ...
    (microsoft.public.dotnet.framework)
  • Re: N-Tier Dilemma and Transaction
    ... It's wrong to specify what's DB instance of DAL to create". ... "Michael Nemtsev" wrote: ... > B> - DataModel (referenced in BusinessLayer and DataLayer to communicate ... n assemblies specialized for the database. ...
    (microsoft.public.dotnet.distributed_apps)
  • Re: Warm up Scripts
    ... Assemblies are assigned to named domains using assignment ... In this section the user may specify defualt configuration for any app ... Specify -1 to signal that an app domain should never ... domain should never unload when idle but not empty. ...
    (microsoft.public.biztalk.general)
  • Re: Delayed Signing, the GAC, and Installations
    ... > for signing the assemblies. ... > should handle the signing of the assemblies before generating the ... signing assemblies or generating installation packages, ... the content list for a setup project. ...
    (microsoft.public.dotnet.framework.aspnet.security)