Environment:

- Win 7 x64 (on Mac all works fine)
- MonoDevelop 3.0.4.6
- Microsoft .NET 4.0.30319.1
- Mono for Android: 4.2.5


Steps to reproduce:

- Clone https://github.com/PVoLan/TestProjRef Here is a test monodroid
project, with two monodroid library projects, referenced one another.
- Make sure that all /bin and /obj folder are completely clean or deleted
- Try to build solution in Release mode
- While building Lib1.csproj you'll get an error (Pay attention that
compiler tries to reference to Debug folder):

C:\Work\Test\TestProjRef\Lib1\CSC: Error CS0006: Metadata file
'%PROJ_PATH%\TestProjRef\Lib2\bin\Debug\Lib2.dll' could not be found
(CS0006) (Lib1)

- If you'll compile project into Debug mode, then rebuild into Release
(without cleaning /bin & /obj), project will be build sucessfully, but
Lib2.dll will used from previous debud build session. If you'll start
application then, you'll find application output

Lib2.SomeClass.DoSmth Debug mode

Cause most of developers first use debug mode, and then build releases, this
error is hard enough to detect and may be critical.



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Bug-Cannon-build-project-in-Release-mode-Error-CS0006-tp5711775.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to