Mark,
The AssemblyKeyFile attrribute is resolved to either the
output directory or the current working directory.
In your case, the relative path is "..\..\vision_startup.snk", so everything should
work fine if you set the output file two directories down the actual location of
the snk file. (eg. bin\Release).
Hope this helps,
Gert
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Cooper
Sent: vrijdag 1 april 2005 17:40
To: [email protected]
Subject: [Nant-users] Assembly signing problemI am having a problem building a project that is strong named. I get the following error messages:build:[csc] Compiling 3 files to 'C:\Projects\Vision\THEO\src\Vision_Startup\bin
\Vision_Startup.DLL'.
[csc] error CS1548: Cryptographic failure while signing assembly 'c:\Proje
cts\Vision\THEO\src\Vision_Startup\bin\Vision_Startup.DLL' -- 'Error reading key
file '..\..\vision_startup.snk' -- The system cannot find the file specified. '[csc] c:\Projects\Vision\THEO\src\Vision_Startup\Startup.cs(62,4): warning
CS0168: The variable 'exc' is declared but never usedThe key file vision_startup.snk is in the project directory 'C:\Projects\Vision\THEO\src\Vision_Statup\' directory. I am trying to build the Vision_Startup.DLL in a subdirectory called 'bin'. But even if I build it in the 'C:\Projects\Vision\THEO\src\Vision_Statup\' directory I get the same error.Here is my build script:<?xml version="1.0"?><project
name="Vision_Startup"
default="build"
basedir="."><property name="debug" value="false"/>
<property name="basedirectory" value="."/><target
name="build"
description="Test build for the Vision_Startup project">
<csc
target="library"
output="bin/Vision_Startup.DLL"
debug="${debug}"><sources>
<include name="*.cs" />
</sources>
<references>
<include name="../../../THEO/References/AxInterop.SHDocVw.dll"/>
<include name="C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/System.dll" />
<include name="C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/System.Data.dll" />
<include name="C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/System.Windows.Forms.dll" />
<include name="C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/System.XML.dll" />
<include name="../../../THEO/References/WinEngine_Common.dll"/>
<include name="../../../THEO/References/WinEngine_Core.dll"/>
<include name="../../../THEO/References/WinEngine_DataServer.dll"/>
<include name="../../../THEO/References/WinEngine_Shared.dll"/>
</references>
</csc><delay-sign keyfile="vision_startup.snk">
<targets>
bin/Vision_Startup.DLL
</targets>
</delay-sign>
</target>
</project>Thanks for any help you can give me.
Do you Yahoo!?
Make Yahoo! your home page
