[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


I'm running MD 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
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.
projects/sample/Sample.Site/Sample.Site.csproj: Error:
Project file could not be imported, it was being imported by
projects/sample/Sample.Site/Sample.Site.csproj: Imported project:
does not exist. (Sample.Site)
For this I tried commenting "<Import
/>" 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=, Culture=neutral,
PublicKeyToken=b77a5c561934e089' and 'System.Xml, Version=,
Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using 'System.Xml,
Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089'
reference. (Sample.Data) ], since project runtime is 4.0 these warning
should not appear.

Sharique uddin Ahmed Farooqui
"Peace" is the Ultimate desire of mankind.

More information about the Monodevelop-list mailing list