473,545 Members | 289 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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 'AssemblyKeyFil e'

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 7024
You should be able to specify the key-file in the csproj; IIRC in the
/Project/PropertyGroup/AssemblyOrigina torKeyFile; also, if you are used to
using key-containers (not files), then use
Project/PropertyGroup/KeyContainerNam e in the csproj.

Try inserting it with the value copied from assembly info:
<AssemblyOrigin atorKeyFile>..\ ..\..\test.snk</AssemblyOrigina torKeyFile>

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
<AssemblyOrigin atorKeyFile>

Is the best option ???

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

Thanks
Senthil
"Marc Gravell" <ma**********@g mail.com> wrote in message
news:un******** ******@TK2MSFTN GP02.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 AssemblyFileVer sion, 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
3087
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 from the command line. The /FU arguments that should be present for the project's references appear in the IDE's buildlog.htm but they do not appear...
4
1623
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. Thank you in advance for any suggestion? === The project is a nearly empty Windows Form project, and the compilation works fine as far as there...
17
1970
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 something like this but the switches could be in any order and not all may be used. -m quemanager -s server -p port -k key -o object -c 20 -t...
1
6190
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 '/keyfile' or appropriate project settings instead of 'AssemblyKeyFile'
1
1039
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 box displayed automatically in the bin directory (also knowing which configuration the project was build under) so I can type in the program name and...
0
1471
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 resource files, and I keep getting the following error: "MissingManifestResourceException: Could not find any resources appropriate for the specified...
3
10306
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 -> If I don’t comment out the As String, I get an “Expected end of statement” error – is this correct?? qt_file = Command -> This doesn’t appear...
10
6091
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 code below which when executed generates the following error message: 'There is already an open datareader with this command which must be closed...
8
8606
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 OPTIONS issued after that shows the same values as before issuing UPDATE
0
7465
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7398
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7416
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5969
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5325
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3449
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
701
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.