Bug 40323 - Error initializing task PackageFilter: Not registered task PackageFilter.
Summary: Error initializing task PackageFilter: Not registered task PackageFilter.
Alias: None
Product: Tools
Classification: Mono
Component: xbuild ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-04-13 03:08 UTC by JaredNZ
Modified: 2018-03-15 10:39 UTC (History)
1 user (show)

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

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:

Description JaredNZ 2016-04-13 03:08:51 UTC
We're getting an error from TravisCI trying to build an open source library: 

You can view the error here:

Your other forums said to report a bug here,

The error is:

../Baseclass.Contrib.Nuget.Output.2.1.0/build/net40/Baseclass.Contrib.Nuget.Output.targets (CollectNugetOutputFiles target) -> error : Error initializing task PackageFilter: Not registered task PackageFilter.

THe forum theory is that "Baseclass.Contrib.Nuget.Output" is using msbuild trickery that isnt in xbuild.
Import Project="..\packages\Baseclass.Contrib.Nuget.Output.2.1.0\build\net40\Baseclass.Contrib.Nuget.Output.targets" Condition="Exists('..\packages\Baseclass.Contrib.Nuget.Output.2.1.0\build\net40\Baseclass.Contrib.Nuget.Output.targets')"

We can't remove it from our project. I'm hoping you have a fix or work around we can use.

Comment 1 Marek Safar 2018-03-15 10:39:54 UTC
We deprecated xbuild and recommend using msbuild instead. Switching to msbuild will also most likely resolve the issue you reported.