Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
If an ItemGroup is placed inside a Target block in an MSBuild task, the following error is always encountered:
/path/to/project.sln (default targets) ->
(Build target) ->
/path/to/project.csproj (default targets) ->
(AfterBuild target) ->
: error : Error initializing task ItemGroup: Not registered task ItemGroup.
Moving the ItemGroup(s) back to the top level fixes it, but also causes Visual Studio to display the items in the solution explorer twice. MonoDevelop doesn't suffer from the issue, but when both are used interchangeably, it's cosmetically quite ugly.
This bug is also tracked in the Novell bugzilla at https://bugzilla.novell.com/show_bug.cgi?id=643399, but has no additional information.
FYI I committed a partial fix for this in https://github.com/mono/mono/commit/aaa61ce6b9fca782e835c263cc251080771e8936 .
So it doesn't break the build anymore, although the ItemGroup is not evaluated yet (for the evaluation part of this missing bugfix I introduced a NotWorking testcase here: https://github.com/mono/mono/commit/8ed93b10f0f4f977cee3dfe4d2ca957c6ebe8a3d )
I need this feature urgently, so I'll implement this.
Could you do PropertyGroup too while you're at it? :)
One difficult part of this is making sure conditions work correctly - on the group, the items, and the metadata. The other is batching.
Yeah, sure. I've already done PropertyGroup and conditions. Just need to write some more tests and implement that new "remove" feature. What do you mean with batching ?
Batching is like a sort of comprehension across a set of items.
Martin, is this implemented?