Error reloading xna projects using batches

Hello,

Following the answers given on this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=327228&SiteID=1
I started using the %(Identity) and %(Filename) metadata to batch some of my tasks. Unfortunately, whenever I try reloading a project containing such medata usage, I get an error: "{0} is not a valid batching parameter."
I was forced to remove these information from the project file using a text editor, and to put them back once in the project editor.

Thanks,
Gwenael



Answer this question

Error reloading xna projects using batches

  • Dave_W

    Thanks, We'll take a look at that! I would just use the other syntax for now as it should be the exact same functionality.

  • Beric Holt

    Can you post the line as it appears in your script

    Have you tried the syntax:

    %(AssetGroupName.Identity)

    Also have you tried running the script using the command line of MSBuild to see if it complains about the same thing



  • jodz

    First, I'd like to point out that I was able to run the script just fine the way it was, it was just when saving, then reloading that I had the error.

    Here's the line as it appears in a test script of mine:

    <Target Name="Check Lst Content">
    <Microsoft.Xna.Build.Tasks.XnaExec OutputIgnoredItemsToLogs="False" Timeout="-1" TrackFileAccess="True" Sources="@(HandmadeLST)" CommandLineCommands="%(Identity)" LogFileDirectory="c:\log\" LogFilename="CheckLstContent.log" ExeName="LstExtractor.exe" ToolPath="C:\Data\Deuce\Batches">
    <Output TaskParameter="ExitCode" PropertyName="IncludedFiles" />
    </Microsoft.Xna.Build.Tasks.XnaExec>
    </Target>

    However, trying the %(HandmadeLST.Identity) syntax allowed me to load the file without problem.

    Thanks,
    Gwenael.



  • Error reloading xna projects using batches