Bug 12171 - xbuild: MSBuild Inline Tasks are not supported
Summary: xbuild: MSBuild Inline Tasks are not supported
Status: RESOLVED NOT_ON_ROADMAP
Alias: None
Product: Tools
Classification: Mono
Component: xbuild ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- enhancement
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-05-08 15:58 UTC by Grant Macklem
Modified: 2018-03-15 10:40 UTC (History)
9 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Simple app that fails on Mac Xamarin Studio (10.28 KB, application/x-zip-compressed)
2013-05-08 15:58 UTC, Grant Macklem
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_ON_ROADMAP

Description Grant Macklem 2013-05-08 15:58:54 UTC
Created attachment 3937 [details]
Simple app that fails on Mac Xamarin Studio

I'm using Xamarin Studio 4.0.4 and Xamarin Android 4.6.4.  When I try to build the attached project, it works fine with Visual Studio or Xamarin Studio on Windows.  However, it fails with Xamarin Studio on the Mac saying: Error initializing task FileCreatedToday: Not registered task FileCreatedToday.  Other similar bugs I've found refer to using ProjectGroup (4092, resolved) or ItemGroup (1862).  But this problem is outside of the PropertyGroup and ItemGroup elements.  Bug 6754 sounds similiar, but has not been updated for 9 months.
Comment 1 Jonathan Pryor 2013-05-10 13:54:21 UTC
@Grant: On Windows, the .NET MSBuild tool is used. On OS X, Mono's xbuild is used.

xbuild is currently only compatible with MSBuild/.NET 2.0. You're attempting to use Inline Tasks, which are a .NET 3.5 feature, and are not currently supported.
Comment 2 Jonathan Pryor 2013-05-10 13:54:45 UTC
MSDN walkthrough on inline tasks:

http://msdn.microsoft.com/en-us/library/dd722601(v=vs.100).aspx
Comment 3 Mikayla Hutchinson [MSFT] 2013-05-10 13:57:08 UTC
Just to clarify - xbuild does *some* MSBuild 3.5 and 4.0 features.
Comment 4 TotallyEvil Devs 2013-08-15 00:03:17 UTC
is there an ETA on when inline tasks could be supported by xbuild?
Comment 5 TotallyEvil Devs 2013-08-15 00:07:29 UTC
Here is a sample task that we'd like to implement. 

<UsingTask TaskName="CreateAssemblyMinorVersion" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
    <ParameterGroup>
      <AssemblyMinorVersion Output="true" />
    </ParameterGroup>
    <Task>
      <Code Type="Fragment" Langauge="cs">
        <![CDATA[
            AssemblyMinorVersion = (System.DateTime.Now.Year - 2013).ToString();
          ]]>
      </Code>
    </Task>
  </UsingTask>
Comment 6 Mikayla Hutchinson [MSFT] 2013-08-15 01:48:29 UTC
No ETA at this time - we have many bigger fish to fry - but if this is important to you you're welcome to contribute it.
Comment 7 mwesolowski 2017-09-28 14:28:59 UTC
Are there any plans to fix this as XS is being deprecated?
Comment 8 Marek Safar 2018-03-15 10:40:05 UTC
We deprecated xbuild and recommend using msbuild instead. Switching to msbuild will also most likely resolve the issue you reported.