Bug 11157 - MonoDevelop and Visual Studio 2012 Web Project Files
Summary: MonoDevelop and Visual Studio 2012 Web Project Files
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: ASP.Net ()
Version: 4.0
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-03-14 11:05 UTC by ventsislav mladenov
Modified: 2015-09-18 12:31 UTC (History)
4 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 on Developer Community or GitHub 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:
Status:
RESOLVED FIXED

Description ventsislav mladenov 2013-03-14 11:05:10 UTC
Hi I noticed that Monodevelop breaks Visual Studio 2012 project file. 
It adds    
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
in the project which is incompatible with VS 2012 (In my preferences I use VS 2012 Load/Save project format). 
First VS 2012 do not need this import and second the version should be v11.0 not v10.0

BTW: 
Monodevelop reorders assembly references and saves boolean values with pascal case (VS saves them in lower case) 
MD: <Optimize>True</Optimize> 
VS: <Optimize>true</Optimize> 
This leads to unneeded version control changes.

=== MonoDevelop ===

Version 4.0
Installation UUID: c55ed29e-0e92-4d37-8c16-f5f9a7e78832
Runtime:
	Mono 3.0.6 (tarball Wed Mar 13 11:24:21 EET 2013) (64-bit)
	GTK 2.24.16
	GTK# (2.12.0.0)

=== Build Information ===

Git revision: Build date: 2013-02-24 19:32:33+0000

=== Operating System ===

Linux
Linux 3.7.10-1-ARCH #1 SMP PREEMPT Thu Feb 28 09:50:17 CET 2013 x86_64 GNU/Linux
Comment 1 Patrick McEvoy 2013-05-27 16:23:17 UTC
I notice that my project file already contains

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />

the MD automatically inserted import is

<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />

leads VS2012 to fail to load the project, stated the files was not found. "Confirm the path is correct and file exists on disk"...

A workaround is to add `Condition="false"` to the MD added import
Comment 2 Matt Ward 2015-09-18 12:31:03 UTC
The latest ASP.NET addin in Xamarin Studio 5.9 no longer seems to add an import to the project. Closing this bug.