Dopo aver creato un'applicazione di console .NET semplice in Xamarin Studio, è possibile creare/eseguire il debug in modo corretto se il Target Runtime predefinito è impostato su "Microsoft .NET".Il targeting del MONO Runtime causa il fallimento di Xamarin Build
Se imposto il runtime su MONO ('Mono 4.0.1'), il mio progetto non si costruisce più.
L'errore è: finestra di output
Error: Unknown MSBuild failure. Please try building the project again
La build mostra tutto ciò che successo fino all'ultima riga, che visualizza Corporatura: 1 errore, 0 avvertimenti ":
si rivolge al MONO Runtime in questo modo non valido? Una domanda correlata here indica che è ...
Cosa sto facendo di sbagliato?
In esecuzione Windows7 (64 bit), Xamarin Studio 5.9. Mono 4.0.1, .NET 4.5
L'uscita build è la seguente:
Cleaning Solution: XamarinTest (Debug)
Cleaning: XamarinTest (Debug)
Build started 05/08/2015 16:57:03. __________________________________________________ Project "C:\Development\Test\XamarinTest\XamarinTest\XamarinTest.csproj" (Clean target(s)): Target CoreClean: Deleting file 'C:\Development\Test\XamarinTest\XamarinTest\obj\Debug.NETFramework,Version=v4.5.AssemblyAttribute.cs' Deleting file 'C:\Development\Test\XamarinTest\XamarinTest\bin\Debug\XamarinTest.dll.mdb' Deleting file 'C:\Development\Test\XamarinTest\XamarinTest\bin\Debug\XamarinTest.dll' Deleting file 'C:\Development\Test\XamarinTest\XamarinTest\obj\Debug\XamarinTest.dll' Deleting file 'C:\Development\Test\XamarinTest\XamarinTest\obj\Debug\XamarinTest.dll.mdb' Deleting file 'C:\Development\Test\XamarinTest\XamarinTest\obj\Debug\XamarinTest.csproj.FilesWrittenAbsolute.txt' Done building project "C:\Development\Test\XamarinTest\XamarinTest\XamarinTest.csproj".
Build succeeded. 0 Error(s) 0 Warning(s)
Time Elapsed 00:00:00.1350135
Cleaning: XamConsole (Debug)
Build started 05/08/2015 16:57:04. __________________________________________________ Project "C:\Development\Test\XamarinTest\XamConsole\XamConsole.csproj" (Clean target(s)): Target CoreClean: Deleting file 'C:\Development\Test\XamarinTest\XamConsole\obj\Debug\XamConsole.exe' Done building project "C:\Development\Test\XamarinTest\XamConsole\XamConsole.csproj".
Build succeeded. 0 Warning(s) 0 Error(s)
Time Elapsed 00:00:00.0170017
Building Solution: XamarinTest (Debug)
Building: XamarinTest (Debug)
Build started 05/08/2015 16:57:04. __________________________________________________ Project "C:\Development\Test\XamarinTest\XamarinTest\XamarinTest.csproj" (Build target(s)): Target PrepareForBuild: Configuration: Debug Platform: AnyCPU Target GenerateSatelliteAssemblies: No input files were specified for target GenerateSatelliteAssemblies, skipping. Target CoreCompile: Tool C:\Program Files (x86)\Mono\lib\mono\4.5\mcs.exe execution started with arguments: /noconfig /debug:full /debug+ /optimize- /out:obj\Debug\XamarinTest.dll MyClass.cs Properties\AssemblyInfo.cs obj\Debug.NETFramework,Version=v4.5.AssemblyAttribute.cs /target:library /define:DEBUG /nostdlib /reference:"C:\Program Files (x86)\Mono\lib\mono\4.5..\xbuild-frameworks.NETFramework\v4.5\RedistList........\4.5\System.dll" /reference:"C:\Program Files (x86)\Mono\lib\mono\4.5..\xbuild-frameworks.NETFramework\v4.5\RedistList........\4.5\System.Core.dll" /reference:"C:\Program Files (x86)\Mono\lib\mono\4.5\mscorlib.dll" /warn:4 Target DeployOutputFiles: Copying file from 'C:\Development\Test\XamarinTest\XamarinTest\obj\Debug\XamarinTest.dll.mdb' to 'C:\Development\Test\XamarinTest\XamarinTest\bin\Debug\XamarinTest.dll.mdb' Copying file from 'C:\Development\Test\XamarinTest\XamarinTest\obj\Debug\XamarinTest.dll' to 'C:\Development\Test\XamarinTest\XamarinTest\bin\Debug\XamarinTest.dll' Done building project "C:\Development\Test\XamarinTest\XamarinTest\XamarinTest.csproj".
Build succeeded. 0 Warning(s) 0 Error(s)
Time Elapsed 00:00:08.6528652
---------------------- Done ----------------------
Build: 1 error, 0 warnings
Anch'io! Sto avendo lo stesso problema. –
Sembra un bug per me, archiviarlo su https://bugzilla.xamarin.com –
Anche morso da quel problema, sembra che il bug sia tracciato [qui] (https://bugzilla.xamarin.com/show_bug. cgi? id = 29901). – Apteryx