I 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. '
\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 used
CS0168: The variable 'exc' is declared but never used
The 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=".">
name="Vision_Startup"
default="build"
basedir=".">
<property name="debug" value="false"/>
<property name="basedirectory" value="."/>
<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}">
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>
<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>
<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
