I'm forwarding this to the list in case Gert or someone else has run into a
similar problem (with the XsdTask?).  

Jim

-----Original Message-----
From: John Cole [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 31, 2004 2:53 PM
To: 'James Geurts'
Subject: RE: [NAntC-Dev] Example for creating a simple msm file?

Jim,
  Thanks very much for the sample.  It took me a while to get the cvs
version of NAnt and NAntContrib working, but I'm finally there.

  To test your sample, I put it in a 'test' directory and created a 'Source'
directory along side the 'test' directory and put a 'Test.xml' file in the
'Source' directory.

  I then ran nant on test.build with the following results:

-----------------------------------------------------------------
C:\Documents and Settings\jcole\My Documents\src\test>nant
-buildfile:test.build

NAnt 0.85 (Build 0.85.1551.0; net-1.1.win32; nightly; 3/31/2004)
Copyright (C) 2001-2004 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///C:/Documents and Settings/jcole/My
Documents/src/test/test.build
Target(s) specified: test

test:

BUILD FAILED

INTERNAL ERROR

System.Resources.MissingManifestResourceException: Could not find any
resources
appropriate for the specified culture (or the neutral culture) in the given
asse
mbly.  Make sure "NAnt.Contrib.Schemas.Msi.resources" was correctly embedded
or
linked into assembly "NAnt.Contrib.Tasks".
baseName: NAnt.Contrib.Schemas.Msi  locationInfo: <null>  resource file
name: NA
nt.Contrib.Schemas.Msi.resources  assembly: NAnt.Contrib.Tasks,
Version=0.85.155
1.0, Culture=neutral, PublicKeyToken=null
   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo
cultur
e, Boolean createIfNotExists, Boolean tryParents)
   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo
cultur
e, Boolean createIfNotExists, Boolean tryParents)
   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo
cultur
e, Boolean createIfNotExists, Boolean tryParents)
   at System.Resources.ResourceManager.GetString(String name, CultureInfo
cultur
e)
   at System.Resources.ResourceManager.GetString(String name)
   at NAnt.Contrib.Tasks.SchemaValidatedTask.InitializeTask(XmlNode
TaskNode)
   at NAnt.Contrib.Tasks.Msi.MsmTask.InitializeTask(XmlNode TaskNode)
   at NAnt.Core.Task.InitializeElement(XmlNode elementNode) in
c:\src\nantcvs\na
nt\src\NAnt.Core\Task.cs:line 364
   at NAnt.Core.Element.Initialize(XmlNode elementNode) in
c:\src\nantcvs\nant\s
rc\NAnt.Core\Element.cs:line 187
   at NAnt.Core.Project.CreateTask(XmlNode taskNode, Target target) in
c:\src\na
ntcvs\nant\src\NAnt.Core\Project.cs:line 1000
   at NAnt.Core.Target.Execute() in
c:\src\nantcvs\nant\src\NAnt.Core\Target.cs:
line 250
   at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies) in
 c:\src\nantcvs\nant\src\NAnt.Core\Project.cs:line 878
   at NAnt.Core.Project.Execute() in
c:\src\nantcvs\nant\src\NAnt.Core\Project.c
s:line 835
   at NAnt.Core.Project.Run() in
c:\src\nantcvs\nant\src\NAnt.Core\Project.cs:li
ne 903

Please send bug report to [EMAIL PROTECTED]

Total time: 0.4 seconds.
-----------------------------------------------------------------

I didn't get any errors on the NAntContrib build, and other NAntContrib
tasks work (vb6 and slingshot for example).

Any suggestions are apreciated.

Thanks,

John Cole

-----Original Message-----
From: James Geurts [mailto:[EMAIL PROTECTED]
Sent: Monday, March 29, 2004 10:24 PM
To: John Cole; [EMAIL PROTECTED]
Subject: RE: [NAntC-Dev] Example for creating a simple msm file?


Hi John,

Please try this build script and see if it produces the expected output.  It
is just a simple sample that I use.

<project name="testmsm" default="test">

  <property name="product.name" value="MyProduct" />
  <property name="company.name" value="MyCompany" />

  <target name="test">
    <property name="msm.version" value="1.0.1" />
    <property name="msm.id" value="E8B6E58E5B034BCEAA2E68B49093465E" />
    <property name="msm.guid.product"
value="{E8B6E58E-5B03-4BCE-AA2E-68B49093465E}" />
    <property name="msm.guid.upgrade"
value="{33C71A5C-DC86-4d79-95A7-14FED9720F9B}" />

    <property name="product.dir" value="." />
      <msm
        output="${product.name}.msm"
        sourcedir="${product.dir}"
        id="${product.name}.MergeModule.${msm.id}"
        version="${msm.version}"
        debug="true"
        verbose="true">
      
      <properties>
        <property name="ProductName" value="${product.name}" />
        <property name="Manufacturer" value="Invalid"/> 
        <property name="ProductCode" value="${msm.guid.product}" /> 
        <property name="UpgradeCode" value="${msm.guid.upgrade}" />
      </properties>
      
      <directories>
        <directory name="D__SAMPLEPATH" foldername="SamplePath"
root="TARGETDIR" />
      </directories>

      <components>
        <component name="C__MainFiles__${msm.id}"
id="{D1812D7A-781E-4C15-A2A5-0C396869D6E0}" attr="2"
directory="D__SAMPLEPATH">
          <key file="Test.xml" />
          <fileset basedir="..\Source">
            <includes name="*.*" />
          </fileset>
        </component>    
      </components>
    </msm>
  </target>    


Jim



-------------------------------------
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail.



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
NAntContrib-Developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer

Reply via email to