P
PeterB
Hi!
I want to create a dll with several controls in it, and all of them should
have design-time support in Visual Studio 2003. I have successfully done the
LabelControl project (downloadable from OpenNetCF Controls forum). I now
tried to add another control to the library, but when I compile I get an
error message saying:
....\MyTestControl\LabelControl2.cs(6,12): error CS0579: Duplicate
'System.CF.Design.RuntimeAssemblyAttribute' attribute
I have named the two controls LabelControl1 and LabelControl2. They both
reside in the same namespace (LabelControls). The RuntimeAssemblyAttribute
is set to:
#if NETCFDESIGNTIME
[assembly: System.CF.Design.RuntimeAssemblyAttribute("LabelControl1,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null")]
#endif
and
#if NETCFDESIGNTIME
[assembly: System.CF.Design.RuntimeAssemblyAttribute("LabelControl2,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null")]
#endif
AssemblyInfo.cs contains the following line:
[assembly: AssemblyVersion("1.0.0.0")]
I run BUILDDES.BAT with the following arguments:
LabelControls.dll LabelControl1.cs LabelControl2.cs
Is this how you compile several controls into one library or must I do it in
another way?
thanks,
Peter
I want to create a dll with several controls in it, and all of them should
have design-time support in Visual Studio 2003. I have successfully done the
LabelControl project (downloadable from OpenNetCF Controls forum). I now
tried to add another control to the library, but when I compile I get an
error message saying:
....\MyTestControl\LabelControl2.cs(6,12): error CS0579: Duplicate
'System.CF.Design.RuntimeAssemblyAttribute' attribute
I have named the two controls LabelControl1 and LabelControl2. They both
reside in the same namespace (LabelControls). The RuntimeAssemblyAttribute
is set to:
#if NETCFDESIGNTIME
[assembly: System.CF.Design.RuntimeAssemblyAttribute("LabelControl1,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null")]
#endif
and
#if NETCFDESIGNTIME
[assembly: System.CF.Design.RuntimeAssemblyAttribute("LabelControl2,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null")]
#endif
AssemblyInfo.cs contains the following line:
[assembly: AssemblyVersion("1.0.0.0")]
I run BUILDDES.BAT with the following arguments:
LabelControls.dll LabelControl1.cs LabelControl2.cs
Is this how you compile several controls into one library or must I do it in
another way?
thanks,
Peter