Bug 6327 - could not import "$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets"
Summary: could not import "$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\Web...
Status: NEW
Alias: None
Product: Tools
Classification: Mono
Component: xbuild ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-07-30 09:52 UTC by Nathan Phillip Brink (binki)
Modified: 2013-12-16 17:49 UTC (History)
7 users (show)

Tags:
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 for Bug 6327 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Nathan Phillip Brink (binki) 2012-07-30 09:52:28 UTC
It appears that xbuild is missing some v10.0 imports for web applications.

binki@FT393D1 ~/My Documents/repos/reponame
$ xbuild
XBuild Engine Version 2.11.2.0
Mono, Version 2.11.2.0
Copyright (C) Marek Sieradzki 2005-2008, Novell 2008-2011.

Build started 7/30/2012 9:45:25 AM.
__________________________________________________
c:\documents and settings\binki\My Documents\repos\reponame\project.csproj: error : c:\documents and settings\binki\My Documents\repos\reponame\project.csproj: c:\documents and settings\binki\My Documents\repos\reponame\project.csproj could not import "$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets"
Build FAILED.
Errors:

c:\documents and settings\binki\My Documents\repos\reponame\project.csproj: error : c:\documents and settings\binki\My Documents\repos\reponame\project.csproj: c:\documents and settings\binki\My Documents\repos\reponame\project.csproj could not import "$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets"

         0 Warning(s)
         1 Error(s)

Time Elapsed 00:00:00.8593750
Comment 1 Sharique Ahmed Farooqui 2012-08-12 02:35:09 UTC
I'm also facing same issue on stock mono in OpenSuse 12.1 and Ubuntu 12.04. If found little odd behavior here.
I have a site as a part of solution. When I compile solution using xbuild it generate only warning, but when I compile web application project, it gives error.
Comment 2 Ben Winkel 2012-11-25 18:47:32 UTC
A similar problem occurs on OSX.  I'd like to raise the priority of this if possible since it seems to block using MonoDevelop + MVC4 on OSX (or give me a hint where to fix it :) )

A standard install of Mono 3.0 should include 

  lib/mono/xbuild/Microsoft/VisualStudio/v10.0/WebApplications/Microsoft.WebApplication.targets

even if it is a straight copy of 

  lib/mono/xbuild/Microsoft/VisualStudio/v9.0/WebApplications/Microsoft.WebApplication.targets

because MonoDevelop automatically upgrades any reference to v9.0 to v10.0 as soon as .NET 4.0 is used, see

https://github.com/mono/monodevelop/blob/master/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet/AspNetMSBuildImportProvider.cs#L41
 
For example this means that you can't use ASP.NET MVC4 on Mono on the Mac.

See also this F# bug for an ASP.NET MVC4 template

  https://github.com/fsharp/fsharpbinding/pull/64#issuecomment-10700359
Comment 3 jinushaun 2013-01-04 20:05:40 UTC
This is still an issue. I followed Ben Winkel's advice above and simply copied the v9.0 directory as v10.0 and my build worked.
Comment 4 mauzik 2013-09-09 13:26:05 UTC
Fixed in master
Comment 5 Andres G. Aragoneses 2013-12-16 17:49:27 UTC
mauzik, can you explain your latest comment? what commit did fix the bug? and why hasn't this bug changed to FIXED?