Denis, I would advise you to use a recent nightly build (http://nant.sourceforge.net/nightly/builds) as I fixed some issues in this area post-0.84.
Using the recent nightly build, you shouldn't have to manually execute the <regasm> and <aximp> tasks. Let me know if you have any problems (and provide a repro). Thanks, Gert ----- Original Message ----- From: "Denis Howe" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 26, 2004 10:11 PM Subject: [Nant-users] References to wrapped Active-X control fail I've got some C# which builds fine in Visual Studio but not in NAnt. My file AVDB.csproj refers to Windows Media Player 9: <Reference Name = "AxWMPLib" Guid = "{6BF52A50-394A-11D3-B153-00C04F79FAA6}" VersionMajor = "1" VersionMinor = "0" Lcid = "0" WrapperTool = "aximp" /> <Reference Name = "WMPLib" Guid = "{6BF52A50-394A-11D3-B153-00C04F79FAA6}" VersionMajor = "1" VersionMinor = "0" Lcid = "0" WrapperTool = "primary" Private = "True" /> I thought the AxWMPLib ref was supposed to make the WMP Active-X control types available, but the line: private AxMicrosoft.MediaPlayer.Interop.AxWindowsMediaPlayer mediaPlayer; produces the compilation error: MediaPlayerSelecter.cs(64,11): error CS0246: The type or namespace name 'AxMicrosoft' could not be found... My .build file says: <regasm assembly="C:\WMSDK\WMPSDK9\redist\wmppia.dll"/> <gac assembly="C:\WMSDK\WMPSDK9\redist\wmppia.dll"/> <aximp ocx="C:\Windows\system32\wmp.dll" verbose="true"/> <solution configuration="release" verbose="true"> <projects><includes name="AVDB.csproj"/></projects> </solution> Is that aximp the right thing to do? I'm using NAnt 0.84 + the latest NAntContrib under .NET 1.1. Has anyone successfully built a C# project including an OCX? Any help gratefully accepted. BBCi at http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id66&op=ick _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id66&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users