Bug 55662 - msbuild /t:pack target does not respect /p:IsTool=true parameter
Summary: msbuild /t:pack target does not respect /p:IsTool=true parameter
Alias: None
Product: Tools
Classification: Mono
Component: msbuild ()
Version: 5.0 (2017-02)
Hardware: PC Mac OS
: --- normal
Target Milestone: 15.2
Assignee: Ankit Jain
Depends on:
Reported: 2017-04-26 21:15 UTC by Kyle White
Modified: 2017-04-28 19:43 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 Kyle White 2017-04-26 21:15:37 UTC
According to https://docs.microsoft.com/en-us/nuget/schema/msbuild-targets#pack-target I should be able to supply /p:IsTool=true to the msbuild pack target and the outputs should therefore be placed in a `tools` directory instead of `lib`. But when I do this, I still get `lib` directory.

To reproduce:
1) Clone this project here: https://github.com/xamarin/QualityAssurance/tree/msbuild/Samples/MonoSuite/MonoSuite.CSharpLib.SdkStyle
2) `msbuild MonoSuite.CSharpLib.SdkStyle/MonoSuite.CSharpLib.SdkStyle.csproj /t:restore`
3) `msbuild MonoSuite.CSharpLib.SdkStyle/MonoSuite.CSharpLib.SdkStyle.csproj /t:build`
4) `msbuild MonoSuite.CSharpLib.SdkStyle/MonoSuite.CSharpLib.SdkStyle.csproj /t:pack /p:IsTool=true`

Expected result:
When I inspect the resulting .nupkg the files should be in `tools` folder

Actual result:
When I inspect the resulting .nupkg the files are still in the regular `lib` folder

Mono version:
Mono JIT compiler version (2017-02/5673411 Wed Apr 26 00:12:03 EDT 2017)
Comment 1 Ankit Jain 2017-04-28 19:43:31 UTC

This is for NuGetizer, which is out of band for msbuild. And likely won't be fixed for 15.2 .