You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Matthew Xie <an...@163.com> on 2006/07/18 05:48:25 UTC

can amq-dotnet build by .net framework1.1 (vs2003)

can amq-dotnet build by .net framework 1.1(vs2003)?
I try to do it.but it failed.could someone tell me?

thanks.

Matt
-- 
View this message in context: http://www.nabble.com/can-amq-dotnet-build-by-.net-framework1.1-%28vs2003%29-tf1958469.html#a5372228
Sent from the ActiveMQ - User forum at Nabble.com.


Re: can amq-dotnet build by .net framework1.1 (vs2003)

Posted by James Strachan <ja...@gmail.com>.
Are there any C# or .Net experts around who can explain that error
message. I guess it wants us to use the SizeOf method instead for some
reason. Should be an easy patch to make

I've created this JIRA to track this...

http://issues.apache.org/activemq/browse/AMQ-830


On 7/19/06, Matthew Xie <an...@163.com> wrote:
>
>
> James.Strachan wrote:
> >
> > Could you post the error you get please? I'm sure we can fix it pretty
> > quickly.
> >
> > --
> >
> > James
> > -------
> > http://radio.weblogs.com/0112098/
> >
> >
>
> I use Nant to build the amq .net src code.
> the following are the error messages:
>
> create-common-assemblyinfo:
>
>    [attrib] Setting file attributes for 1 files to Normal.
>   [asminfo] Generated file
> 'F:\amq-net\src\main\csharp\CommonAssemblyInfo.cs'.
>    [attrib] Setting file attributes for 1 files to Normal.
>   [asminfo] Generated file
> 'F:\amq-net\src\test\csharp\CommonAssemblyInfo.cs'.
>
> build-main:
>
>      [echo] Build Directory is
> F:\amq-net/build/net-1.1.win32/activemq-dotnet-4.
> 0-debug
>       [csc] Compiling 176 files to
> 'F:\amq-net\build\net-1.1.win32\activemq-dotn
> et-4.0-debug\bin\activemq-dotnet.dll'.
>       [csc]
> f:\amq-net\src\main\csharp\ActiveMQ\Commands\ActiveMQTextMessage.cs(
> 61,61): error CS0233: sizeof 只能用于不安全的上下文中(考虑使用
> System.Runtime.InteropServices.Marshal.SizeOf)
>       [csc]
> f:\amq-net\src\main\csharp\ActiveMQ\Commands\ActiveMQTextMessage.cs(
> 64,54): error CS0233: sizeof 只能用于不安全的上下文中(考虑使用
> System.Runtime.InteropServices.Marshal.SizeOf)
>
> BUILD FAILED
>
> Note: I am using os of chinese version. so here I try to translate it as
> follows.
>
> [csc] f:\amq-net\src\main\csharp\ActiveMQ\Commands\ActiveMQTextMessage.cs(
> 64,54): error CS0233: sizeof is used under unsafe context(here we recommend
> to use System.Runtime.InteropServices.Marshal.SizeOf)
>
> Thanks James!
>
> Matt
> --
> View this message in context: http://www.nabble.com/can-amq-dotnet-build-by-.net-framework1.1-%28vs2003%29-tf1958469.html#a5389861
> Sent from the ActiveMQ - User forum at Nabble.com.
>
>


-- 

James
-------
http://radio.weblogs.com/0112098/

Re: can amq-dotnet build by .net framework1.1 (vs2003)

Posted by Matthew Xie <an...@163.com>.

James.Strachan wrote:
> 
> Could you post the error you get please? I'm sure we can fix it pretty
> quickly.
> 
> -- 
> 
> James
> -------
> http://radio.weblogs.com/0112098/
> 
> 

I use Nant to build the amq .net src code.
the following are the error messages:

create-common-assemblyinfo:

   [attrib] Setting file attributes for 1 files to Normal.
  [asminfo] Generated file
'F:\amq-net\src\main\csharp\CommonAssemblyInfo.cs'.
   [attrib] Setting file attributes for 1 files to Normal.
  [asminfo] Generated file
'F:\amq-net\src\test\csharp\CommonAssemblyInfo.cs'.

build-main:

     [echo] Build Directory is
F:\amq-net/build/net-1.1.win32/activemq-dotnet-4.
0-debug
      [csc] Compiling 176 files to
'F:\amq-net\build\net-1.1.win32\activemq-dotn
et-4.0-debug\bin\activemq-dotnet.dll'.
      [csc]
f:\amq-net\src\main\csharp\ActiveMQ\Commands\ActiveMQTextMessage.cs(
61,61): error CS0233: sizeof 只能用于不安全的上下文中(考虑使用
System.Runtime.InteropServices.Marshal.SizeOf)
      [csc]
f:\amq-net\src\main\csharp\ActiveMQ\Commands\ActiveMQTextMessage.cs(
64,54): error CS0233: sizeof 只能用于不安全的上下文中(考虑使用
System.Runtime.InteropServices.Marshal.SizeOf)

BUILD FAILED 

Note: I am using os of chinese version. so here I try to translate it as
follows.

[csc] f:\amq-net\src\main\csharp\ActiveMQ\Commands\ActiveMQTextMessage.cs(
64,54): error CS0233: sizeof is used under unsafe context(here we recommend
to use System.Runtime.InteropServices.Marshal.SizeOf)

Thanks James!

Matt
-- 
View this message in context: http://www.nabble.com/can-amq-dotnet-build-by-.net-framework1.1-%28vs2003%29-tf1958469.html#a5389861
Sent from the ActiveMQ - User forum at Nabble.com.


Re: can amq-dotnet build by .net framework1.1 (vs2003)

Posted by James Strachan <ja...@gmail.com>.
On 7/18/06, Matthew Xie <an...@163.com> wrote:
>
> can amq-dotnet build by .net framework 1.1(vs2003)?
> I try to do it.but it failed.could someone tell me?

Could you post the error you get please? I'm sure we can fix it pretty quickly.

-- 

James
-------
http://radio.weblogs.com/0112098/