473,399 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Use command line option '/keyfile' or appropriate project settings instead of 'AssemblyKeyFile'????

Hi

I am in the Process of conversion of my existing 1.1 Dotnet Code to 2.0
framework.

for each project when i compile in VS2005 , i get this error\warning:

Use command line option '/keyfile' or appropriate project settings instead
of 'AssemblyKeyFile'

Question :

1. which is the best way to convert my assembly key file from its relative
path"..\\..\..\test.snk" to the way .Net Framework 2.0 needs??
2. i have this file in multiple projects (around 300 projects), any short
cut methods so that i can create a utility and update the location of my Snk
???

thanks
Senthil
Jun 15 '06 #1
4 7012
You should be able to specify the key-file in the csproj; IIRC in the
/Project/PropertyGroup/AssemblyOriginatorKeyFile; also, if you are used to
using key-containers (not files), then use
Project/PropertyGroup/KeyContainerName in the csproj.

Try inserting it with the value copied from assembly info:
<AssemblyOriginatorKeyFile>..\..\..\test.snk</AssemblyOriginatorKeyFile>

It seems to work...

For ref, one of the reasons behind not using the assembly attributes is that
they can be read easily through reflection, allowing access to the path the
the SNK (on the build machine). Personally I don't think that's much of a
risk if you protect the file, but heh!

Marc
Jun 15 '06 #2
(unless it wasn't clear, I was suggesting writing a utility that does all
this for you; loads the csproj, updates the data, removes the
value from assemblyinfo, etc)

Marc


Jun 15 '06 #3
Thanks a lot Marc..

So do u think writing a utility for the 200 + files for

1. Removing \ commenting the entry in the assembly info.cs file
2. editing the Csproj for the insertion of value for
<AssemblyOriginatorKeyFile>

Is the best option ???

by any chance do you have any utility which u have come across???

Thanks
Senthil
"Marc Gravell" <ma**********@gmail.com> wrote in message
news:un**************@TK2MSFTNGP02.phx.gbl...
(unless it wasn't clear, I was suggesting writing a utility that does all
this for you; loads the csproj, updates the data, removes the
value from assemblyinfo, etc)

Marc

Jun 15 '06 #4
Yes, I do;

I have code that does similar things that I run as part of automated build;
it updates AssemblyFileVersion, resets file references, etc; not too tricky
to do.

I'm not aware of anything that does this out-of-the-box.

Marc
Jun 16 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Christopher Bohn | last post by:
(repost under MSDN account) When building a solution that consists of one managed C++ project with a project reference to a C# project in the same solution, there is a bug when trying to build...
4
by: Francesco Martinelli | last post by:
I need to create a multiple file assemby: this requires working directly with the command line compiler (no IDE support!). After a few tests I found my problem comes from the issue described below....
17
by: News | last post by:
Hi everyone, My goal is to pull command switches/options from a file and then assign the values to select variables which would eventually be included in a class object. The data file looks...
1
by: SenthilVel | last post by:
Hi I am in the Process of conversion of my existing 1.1 Dotnet Code to 2.0 framework. for each project when i compile in VS2005 , i get this error\warning: Use command line option...
1
by: emma_middlebrook | last post by:
Hi If I'm developing a console application, I'd rather not have to go to the project settings and edit the command line arguments each time and then run. Is there a way I can get a console...
0
by: GT | last post by:
Hello I'm trying to embed .resource files into a Windows application in VS2005, and then compile and run the program from VS2005. This does not work because the debugger seems not find the...
3
by: jlw16 | last post by:
Hello, I’m trying to use my vbs script to get a command line argument for a file which will need to be opened through QuickTestPro. Below are the commands I’m using: Dim qt_file 'As String ->...
10
by: jimmy | last post by:
Hi again, sorry for posting two questions so close together but im working on a school project which is due in soon and running into some difficulties implementing the database parts. I have the...
8
by: 4.spam | last post by:
Hello. WinXP, db2 v8.2.7 When I use UPDATE COMMAND OPTION USING <any_switchON(or OFF) it seems that this command has absolutely no effect on these switches since command LIST COMMAND...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.