在Xamarin Studio中创建一个简单的.NET控制台应用程序后,如果默认的Target Runtime设置为“Microsoft .NET”,我可以构建/调试.
如果我将运行时设置为MONO(‘Mono 4.0.1’),那么我的项目就不再构建了.
运行Windows7(64位),Xamarin Studio 5.9. Mono 4.0.1,.NET 4.5
Cleaning Solution: XamarinTest (Debug)
Cleaning: XamarinTest (Debug)
Build started 05/08/2015 16:57:03.
__________________________________________________ Project “C:DevelopmentTestXamarinTestXamarinTestXamarinTest.csproj”
(Clean target(s)): Target CoreClean: Deleting file
‘C:DevelopmentTestXamarinTestXamarinTestobjDebug.NETFramework,Version=v4.5.AssemblyAttribute.cs’
Deleting file
‘C:DevelopmentTestXamarinTestXamarinTestbinDebugXamarinTest.dll.mdb’
Deleting file
‘C:DevelopmentTestXamarinTestXamarinTestbinDebugXamarinTest.dll’
Deleting file
‘C:DevelopmentTestXamarinTestXamarinTestobjDebugXamarinTest.dll’
Deleting file
‘C:DevelopmentTestXamarinTestXamarinTestobjDebugXamarinTest.dll.mdb’
Deleting file
‘C:DevelopmentTestXamarinTestXamarinTestobjDebugXamarinTest.csproj.FilesWrittenAbsolute.txt’
Done building project
“C:DevelopmentTestXamarinTestXamarinTestXamarinTest.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:DevelopmentTestXamarinTestXamConsoleXamConsole.csproj” (Clean
target(s)): Target CoreClean: Deleting file
‘C:DevelopmentTestXamarinTestXamConsoleobjDebugXamConsole.exe’
Done building project
“C:DevelopmentTestXamarinTestXamConsoleXamConsole.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:DevelopmentTestXamarinTestXamarinTestXamarinTest.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)Monolibmono4.5mcs.exe execution started with arguments:
/noconfig /debug:full /debug+ /optimize-
/out:objDebugXamarinTest.dll MyClass.cs PropertiesAssemblyInfo.cs
objDebug.NETFramework,Version=v4.5.AssemblyAttribute.cs
/target:library /define:DEBUG /nostdlib /reference:”C:Program Files
(x86)Monolibmono4.5..xbuild-frameworks.NETFrameworkv4.5RedistList……..4.5System.dll”
/reference:”C:Program Files
(x86)Monolibmono4.5..xbuild-frameworks.NETFrameworkv4.5RedistList……..4.5System.Core.dll”
/reference:”C:Program Files (x86)Monolibmono4.5mscorlib.dll”
/warn:4 Target DeployOutputFiles: Copying file from
‘C:DevelopmentTestXamarinTestXamarinTestobjDebugXamarinTest.dll.mdb’
to
‘C:DevelopmentTestXamarinTestXamarinTestbinDebugXamarinTest.dll.mdb’
Copying file from
‘C:DevelopmentTestXamarinTestXamarinTestobjDebugXamarinTest.dll’
to
‘C:DevelopmentTestXamarinTestXamarinTestbinDebugXamarinTest.dll’
Done building project
“C:DevelopmentTestXamarinTestXamarinTestXamarinTest.csproj”.
Build succeeded. 0 Warning(s) 0 Error(s)
Time Elapsed 00:00:08.6528652
———————- Done ———————-
Build: 1 error,0 warnings