Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
# Steps to reproduce
Create a new solution. Starting from the first using clause (using Android.App;) I get a message stating "using directive is not necessary". All the subsequent code is underlined in red.
# Expected behavior
Compile the application...
# Actual behavior
# Supplemental info (logs, images, videos)
# Test environment (full version information)
=== Xamarin Studio Business ===
Version 6.0 (build 5174)
Installation UUID: 92f3cd99-e8ba-4e1f-a9bc-6c8bee8c6ccc
Microsoft .NET 4.0.30319.42000
GTK+ 2.24.26 (Dark theme)
=== Xamarin.Profiler ===
=== Xamarin.Android ===
Version: 220.127.116.11 (Xamarin Business)
Android SDK: C:\Users\rodolfo\AppData\Local\Android\android-sdk
Supported Android versions:
4.0.3 (API level 15)
4.4 (API level 19)
4.4.87 (API level 20)
5.1 (API level 22)
6.0 (API level 23)
SDK Tools Version: 25.1.7
SDK Platform Tools Version: 23.1
SDK Build Tools Version: 23.0.2
Java SDK: C:\Program Files\Java\jdk1.7.0_79
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
Android Designer EPL code available here:
=== Xamarin Android Player ===
=== Build Information ===
Release ID: 600005174
Git revision: 694a75f040b7f2309bc43d4f78a3a6572ca898bf
Build date: 2016-06-01 17:11:00-04
Xamarin addins: 33f406fa2dcf214012c78cb846585f062b2e1d24
Build lane: monodevelop-windows-cycle7-baseline
=== Operating System ===
Windows 6.1.7601.65536 (64-bit)
I've downgraded all the three packages (GTK, Xamarin Studio and Xamarin.VS), but in order to have the compiler working I had to uninstall also .NET Framework 4.6.1, MsBuild Tools 2013 / 2015, and reinstall .NET Framework 4.5.1
Maybe there's something strange with .NET framework, because until the upgrade I had only v4.5.1; v4.6.1 probably got installed as part of the two required MsBuild Tools packages.
are you able to build from the command line? Can you get a diagnostic build log from the command line, that might help with determining where the problem might be.
Sorry, at the moment I've reverted to the last Cycle-6 package. I'm suspecting some .NET Framevork version issue, because I had to reinstall manually the 4.5.1 version in order to have Xamarin Studio 5.1 work. In the next days I'll try again the update, and I'll let you know the results.
Ok, I've re-updated Xamarin Studio to v6.0, removed .NET Framework 4.6 as it installs per-default 4.5.2 and removes 4.5.1, manually installed 4.5.1 but results are the same. I'm not much confident with command-line compilation, but using MSBuild.exe /p:Configuration=Debug /v:diag C:\Progetti\test6\test6\test6.csproj seems to produce no errors. If the diagnostic build log is produced by the /v parameter, I've attached the resulting output, along with smoe screenshots from my IDE showing the errors.
Created attachment 16269 [details]
Screenshot 1 of IDE errors
Created attachment 16270 [details]
Screenshot 2 of IDE erorrs
Created attachment 16271 [details]
Screenshot 3 of IDE errors
Created attachment 16272 [details]
Screenshot 43 of IDE errors
Created attachment 16273 [details]
Output log from manual build
If it's not the intended log, please give me the command line arguments to be used.
Thanks, hey, silly question, but did you actually try to build from within Xamarin Studio as well? If you did, can you also attach the build log from that as well for comparison.
The build in Xamarin Studio fails immediately. If the build log is not the one I've attached, please let me know. Anyway I need Xamarin Studio working, so for future reference I'll update it on my desktop environment, not on my notebook.
Created attachment 16286 [details]
Ide log of last compile
I've also tried loggin out from Xamarin's account and subsequently loggin in, just in case.
the logs are showing an issue initializing the hosted builder that XS uses to build projects. Can you try and determnine if you have msbuild tools 2013 or 2015 installed?
I had either 2013 and 2015 MsBuild Tools, because the package upgrade requested both in order to complete the installation.
I hope tomorrow to find some time to upgrade to Xamarin Studio 6.0 my desktop environment, in order to leave my NB working; as I'll have any news I'll let you know.
I've just update my desktop environment. The installation was a bit old, so the packages were more than my notebook. MsBuild 2013 and 2015 were automatically installed, along with all the other packages. The final result was the same: creating a new project lead to the same issues (all the using statements were marked as unnecessary). Let me know what info are needed in order to track this strange behaviour.
Can you get the ide logs for your desktop machine as well please - I'd like to see if you are getting the same errors loading the project builder as you did on your laptop.
Created attachment 16371 [details]
Ide log of the desktop machine
I've created a new project and, despite almost all the code was red underlined, I tried to compile it. The attached log should be the result.
Rodolfo, thanks for the new log. From the logs, it looks like the project is trying to target .net 4.5.1 and it's not installed.
So, what .net versions do you have installed on the machine now?
My desktop is currently running Windows 10, and the app section lists .NET Framework 2.0 SDK and .NET Framework 4 multi-targeting pack. But on my laptop (currently running Windows 7 pro x64) there was .NET Framework 4.5.2, Microsoft's .NET Framework 4.0 and 4.5.1 programmed upgrade. I've also tried having installed only 4.5.1 (through manual uninstall of 4.5.2 and subsequent 4.5.1 install), but nothing changed. Perhaps the operation's order is important.
P.S. : on my desktop environment I've more chances to test installations and procedures, so feel free to suggest me anything.
Fixed in version 18.104.22.16869 (master)
Author: Lluis Sanchez
Commit: 98299ddb17d4bbfb08ca036edcdb4531cc300b6d (mono/monodevelop)
Fixed in version 22.214.171.124 (cycle7)
Author: Lluis Sanchez
Commit: 7663ed860c78dfd1454fe49338be193fb4e2592b (mono/monodevelop)
This should be fixed. I'll push a new build of XS so that you can verify that the fix works for you.
Should the fix work with the environment in these conditions (all the errors I see in the source window) or it's better to revert to the previous working version and apply the new build ?
Please try this build: https://dl.dropboxusercontent.com/u/492982/XamarinStudio-126.96.36.199.msi
You can try with your current environment.
It was a little tricky operation. The setup ran without issues, but at the first time the only issue corrected was the using statement on the System namespace; all the using Android namespaces were red-underlined. In order to have a source page without errors I had to start a new project, upgrade the Android SDK, remove the SDK Build tools prior to rev. 24 and change the standard function call "protected override void OnCreate(Bundle bundle)" with "OnCreate(Bundle savedInstanceState)", because the error popup said that "the parameter name differs from declaration" (or something similar). Nothing to do with the error on the two layouts included in the project. I'll attach some relevant (I think) files.
Created attachment 16410 [details]
Created attachment 16411 [details]
Android tools log
Created attachment 16412 [details]
Created attachment 16413 [details]
Screenshot of the source page
This is the dropbox link to the zip containing the project after the cleaning procedure (originally the zip file was 56MB...), just in case.
Judging from the screenshots, it looks like it should now all build.
the underlined warning about the OnCreate parameter being different is just that, a warning and not a real issue. In fact it kind of proves that things are working because without being able to build XS wouldn't be able to offer up that code issue.
As per comment 29 and comment 30, it seems that the filed issue is resolved with the fixed build for Rodolfo.
Hence closing this issue by marking it as Verified.