G
Guest
Going through the upgrade process from VS.Net 2003 to 2005. Receiving the
following error (which I see reported by others):
Use command line option '/keyfile' or appropriate project settings instead
of 'AssemblyKeyFile'
For my purposes, strong names in released apps is required as the assemblies
are run from a remote machine by the client.
I am looking for a sanity check that I am approaching this the correct way
in VS 2005. Formerly, I had the following code in a linked assembly infor
file for all my projects:
#if !DEBUG
[assembly: AssemblyDelaySign(true)]
[assembly: AssemblyKeyFile(@"..\..\..\ESD_PUBLIC.SNK")]
#else
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
#endif
so that when compiling in debug mode (during development) I did not sign at
all. Then when cut for release, Iwoudl delay sign as a manual step before
copying to the deployment location.
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...!!!!
Otherwise, as I see, I must use the Project Properties (signing screen) at
compile time to overcome the error received during the relase mode compile.
But than then causes a different problem when doing the debug mode compile,
as it appears the project properties overrule the attribute settings in the
assembly info file.
That leaves me believing I no longer can conditionally sign, and I should
just go ahead and specify my pubpriv.snk file in the signing screen, and
disable delayed signing. On the upside, my deployment reduces one step (not
needing to manually sign).
Previously I conditionally signed so that I would not accidently place
incomplete/unfinshed code into the production area...like a programmer would
ever do that!!!
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?!?!?
And I am open to suggestions, too.
Thank you in advance.
following error (which I see reported by others):
Use command line option '/keyfile' or appropriate project settings instead
of 'AssemblyKeyFile'
For my purposes, strong names in released apps is required as the assemblies
are run from a remote machine by the client.
I am looking for a sanity check that I am approaching this the correct way
in VS 2005. Formerly, I had the following code in a linked assembly infor
file for all my projects:
#if !DEBUG
[assembly: AssemblyDelaySign(true)]
[assembly: AssemblyKeyFile(@"..\..\..\ESD_PUBLIC.SNK")]
#else
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
#endif
so that when compiling in debug mode (during development) I did not sign at
all. Then when cut for release, Iwoudl delay sign as a manual step before
copying to the deployment location.
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...!!!!
Otherwise, as I see, I must use the Project Properties (signing screen) at
compile time to overcome the error received during the relase mode compile.
But than then causes a different problem when doing the debug mode compile,
as it appears the project properties overrule the attribute settings in the
assembly info file.
That leaves me believing I no longer can conditionally sign, and I should
just go ahead and specify my pubpriv.snk file in the signing screen, and
disable delayed signing. On the upside, my deployment reduces one step (not
needing to manually sign).
Previously I conditionally signed so that I would not accidently place
incomplete/unfinshed code into the production area...like a programmer would
ever do that!!!
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?!?!?
And I am open to suggestions, too.
Thank you in advance.