xamarin-component.exe [FAILED] Object reference not set to an instance of an object

Hi,
i'm trying to package a component with WP8 + ioS + Android.

I follow the guideline here: http://components.xamarin.com/guidelines

Command line (on a single line):

.\xpkg\xamarin-component.exe create component/my-1.0.xam 
--name="my Widget" 
--summary="my desc" 
--publisher="my company" 
--website="http://my.fr" 
--details="tree/Details.md" 
--license="tree/License.md" 
--getting-started="tree/GettingStarted.md" 
--icon="tree/icons/icon_128x128.png" 
--icon="tree/icons/icon_512x512.png" 
--library="ios":"tree/bin/my.Touch.dll" 
--library="android":"tree/bin/my.Droid.dll" 
--library="winphone-8":"tree/bin/my.Wphone.dll" 
--sample="iOS Sample. Demonstrates usage on iOS.":"tree/demos/my.TouchDemo.sln" 
--sample="Android Sample. Demonstrates usage on Android":"tree/demos/my.DroidDemo.sln"
--sample="Windows phone 8 Sample. Demonstrates usage on Windows Phone 8":"tree/demos/my.Wp8Demo.sln"

Result:

INFO (create): Creating component files in component/my-1.0.xam\component
INFO (create):   * [NEW] component/my-1.0.xam\component\Details.md
INFO (create):   * [NEW] component/my-1.0.xam\component\GettingStarted.md
INFO (create):   * [NEW] component/my-1.0.xam\component\License.md
INFO (create):   * [NEW] component/my-1.0.xam\component\icon-128.png
ERROR (create):  * [FAILED] component/my-1.0.xam\component\icon-512.png (Object reference not set to an instance of an object.)
Your component needs a great name. What do you want to call it?

(i break here)

Any idea ?

Posts

  • AlexSotoAlexSoto MXXamarin Team Xamurai
    --icon="tree/icons/icon_128x128.png" 
    --icon="tree/icons/icon_512x512.png"
    

    Just a wild guess, are you sure those 2 files exists?

    Alex

  • softlionsoftlion FRBeta ✭✭✭

    They do exist

  • softlionsoftlion FRBeta ✭✭✭

    The sample on Github does not work either with the same error !!!

    Repro: unpack and run the sample pack and command on windows.

    xpkg/xamarin-component.exe create sample-component-1.0.xam `
        --name="My Awesome Component" `
        --summary="Add a huge amount of awesomeness to your Xamarin apps." `
        --publisher="Awesome Corp, Inc." `
        --website="http://awesomecorp.com/component" `
        --details="Details.md" `
        --license="License.md" `
        --getting-started="GettingStarted.md" `
        --icon="icons/Awesome_128x128.png" `
        --icon="icons/Awesome_512x512.png" `
        --library="ios":"bin/Awesome.iOS.dll" `
        --library="android":"bin/Awesome.Android.dll" `
        --sample="iOS Sample. Demonstrates Awesomeness on iOS.":"samples/Awesome.iOS.sln" `
        --sample="Android Sample. Demonstrates Awesomeness on Android":"samples/Awesome.Android.sln"
    

    Result:

    INFO (create): Creating component files in sample-component-1.0.xam\component
    INFO (create):   * [NEW] sample-component-1.0.xam\component\Details.md
    INFO (create):   * [NEW] sample-component-1.0.xam\component\GettingStarted.md
    INFO (create):   * [NEW] sample-component-1.0.xam\component\License.md
    INFO (create):   * [NEW] sample-component-1.0.xam\component\icon-128.png
    ERROR (create):  * [FAILED] sample-component-1.0.xam\component\icon-512.png (Object reference not set to an instance of an object.)
    
  • brajkovicbrajkovic USXamarin Team, University Xamurai

    Hi,

    This is a side-effect of create not being the command you want. :) The create command is to be used for creating a new package skeleton. If you check the guidelines, you can see that the command you want is create-manually.

    I'll make sure the template repo gets updated--I thought it had been already.

    Hope that helps!

  • softlionsoftlion FRBeta ✭✭✭

    Thank you this is it !

Sign In or Register to comment.