Bug 52910 - Package Microsoft.NET.Sdk.Web.Publishing with MSBuild/Mono
Summary: Package Microsoft.NET.Sdk.Web.Publishing with MSBuild/Mono
Alias: None
Product: Tools
Classification: Mono
Component: msbuild ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Ankit Jain
Depends on:
Reported: 2017-02-28 18:21 UTC by Matt Ward
Modified: 2017-03-21 21:54 UTC (History)
2 users (show)

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

AspNetCoreWebApp (604.90 KB, application/zip)
2017-02-28 18:21 UTC, Matt Ward

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 Matt Ward 2017-02-28 18:21:56 UTC
Created attachment 20038 [details]

Include the Microsoft.NET.Sdk.Web.Publishing MSBuild targets used by .NET Core with Mono. Attached project uses this Microsoft.NET.Sdk.Web SDK and has several files included. To test the publishing you can run:

msbuild /t:Restore
msbuild AspNetCoreWebApp.sln
msbuild /t:Publish

That should generate a bin/Debug/netcoreapp1.0/publish/wwwroot directory with some files.

This project should in theory also test that Microsoft.NET.Sdk.Web.ProjectSystem is properly included since there are extra files defined in the project that should not be compiled since they are in the wwwroot directory.
Comment 1 Marek Safar 2017-03-01 13:30:01 UTC
I am not sure about these 2. They don't work with .net installation of VS either.
Comment 2 Matt Ward 2017-03-01 13:38:45 UTC
Microsoft.NET.Sdk.Web.ProjectSystem is used by Microsoft.NET.Sdk.Web. It defines the various wildcard imports for things like wwwroot.

How is it not working? I tested it with a VS 2017 developer command prompt and msbuild /t:Publish seems to work for me.
Comment 3 Marek Safar 2017-03-02 12:35:02 UTC
I probably need to install some extra dependency of VS2017 to have them
Comment 4 Ankit Jain 2017-03-21 21:54:51 UTC
Added on 2017-02 and master branches. Tested and working as of https://github.com/mono/msbuild/commit/d40ba7b9d9618d20b3457f915c41805a92cf1996 .