using RuntimeAssemblyAttribute

F

Fred Chen

I have a custom component for SmartDevice projects. I've been
following the Simple Chart example from MSDN,

http://msdn.microsoft.com/library/d...en-us/dnnetcomp/html/customctrlscompactfx.asp

When I add my component to my form the runtime assembly should be
added to my refernece list since I've specified the
RuntimeAssemblyAttribute, but the runtime assembly is not being added.

i.e.

[assembly: System.CF.Design.RuntimeAssembly("myComponent,
Version=1.0.1.0, Culture=neutral, PublicKeyToken=null")]

It works when I use the IDE to build the assembly but not when I use
the command line to build.

I need to use the command line compile, is there something that the
IDE compiler does diffenently that I could be missing?

Fred
 
B

Benjamin Wulfe

You may want to run a test to print out the fully qualified assembly name
to make sure you are not missing anything.
You can do this very easily by creating a console application that does the
following:

System.Reflection.Assembly a =
System.Reflection.Assembly.LoadFrom("c:\\system.windows.forms.dll");
Console.WriteLine(a.FullName);

grab the string that results verbatim and put it in your
RuntimeAssemblyAttribute.

-Ben

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Tim Wilson [MVP]" <[email protected]>
| References: <[email protected]>
| Subject: Re: using RuntimeAssemblyAttribute
| Date: Thu, 7 Aug 2003 17:14:49 -0400
| Lines: 32
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: cpe00045af65bf7-cm.cpe.net.cable.rogers.com
24.112.141.185
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:30433
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Have you looked at this article:
| http://www.intelliprog.com/articles/index.html
|
| --
| Tim Wilson
| Windows Embedded MVP
| | > I have a custom component for SmartDevice projects. I've been
| > following the Simple Chart example from MSDN,
| >
| >
|
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/h
tml/customctrlscompactfx.asp
| >
| > When I add my component to my form the runtime assembly should be
| > added to my refernece list since I've specified the
| > RuntimeAssemblyAttribute, but the runtime assembly is not being added.
| >
| > i.e.
| >
| > [assembly: System.CF.Design.RuntimeAssembly("myComponent,
| > Version=1.0.1.0, Culture=neutral, PublicKeyToken=null")]
| >
| > It works when I use the IDE to build the assembly but not when I use
| > the command line to build.
| >
| > I need to use the command line compile, is there something that the
| > IDE compiler does diffenently that I could be missing?
| >
| > Fred
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top