[MonoDevelop] building a project failes due to nuget and webapplications.taget could not be imported

Sharique uddin Ahmed Farooqui safknw at gmail.com
Mon Aug 6 08:03:34 UTC 2012


Hi,

I'm running MD 3.0.3.4. I've created a solution with few projects
using VS2010. I open up it on MD on Linux, I'm facing few issues with

1. I've enabled nuget package restore for the solution, when I build
it on Linux I get error
"/home/sharique/Projects/my
projects/sample/Sample.Data/Sample.Data.csproj: Error:
..//.nuget/nuget.targets: Project file could not be imported, it was
being imported by /home/sharique/Projects/my
projects/sample/Sample.Data/Sample.Data.csproj: Imported project:
"/home/sharique/Projects/my projects/sample//.nuget/nuget.targets"
does not exist. (Sample.Data)"

When I comment "<Import Project="$(SolutionDir)\.nuget\nuget.targets"
/>" from all project files, than this error did not appear again.

2. Now I'm getting another error.
/home/sharique/Projects/my
projects/sample/Sample.Site/Sample.Site.csproj: Error:
/usr/lib/mono/xbuild/Microsoft/VisualStudio/v10.0/WebApplications/Microsoft.WebApplication.targets:
Project file could not be imported, it was being imported by
/home/sharique/Projects/my
projects/sample/Sample.Site/Sample.Site.csproj: Imported project:
"/usr/lib/mono/xbuild/Microsoft/VisualStudio/v10.0/WebApplications/Microsoft.WebApplication.targets"
does not exist. (Sample.Site)
For this I tried commenting "<Import
Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets"
/>" in the webapp project, but it appear again the next time I build
the solution.

3. There are few warnings for version conflict in runtime assemblies [
like /usr/lib/mono/4.0/Microsoft.Common.targets: Warning: Found a
conflict between : 'System.Xml, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' and 'System.Xml, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using 'System.Xml,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
reference. (Sample.Data) ], since project runtime is 4.0 these warning
should not appear.

-- 
Sharique uddin Ahmed Farooqui
http://safknw.blogspot.com/
"Peace" is the Ultimate desire of mankind.


More information about the Monodevelop-list mailing list