问题描述
我的问题类似于:
但那里的解决方案都没有帮助.
but none of the solutions there help.
在创建一个简单的控制台应用程序然后构建它时,IDE 说:
When creating a simple Console app and then building it, the IDE says:
错误:构建失败.有关详细信息,请参阅构建日志.(控制台)
而且我找不到构建日志.
And I can't find the build log.
日志文件夹中的文件 - Ide*.log
文件说:
The file in the log folder - Ide*.log
file says:
警告 [2016-06-29 14:24:56Z]:未注册的 TargetFramework正在请求.NETFramework,Version=v4.5.1"SystemAssemblyService,返回空的 TargetFramework
错误 [2016-06-29 14:24:56Z]:获取引用程序集时出错System.InvalidOperationException: 没有找到适合程序集的兼容框架...
ERROR [2016-06-29 14:24:56Z]: Error while getting referenced assemblies System.InvalidOperationException: No compatible framework found for assembly...
--snip--
.NET v4.5.1 与 Xamarin Studio 6.0 不兼容吗?
Isn't .NET v4.5.1 compatible with Xamarin Studio 6.0?
推荐答案
安装 "Developer Pack" for .NET 4.5.1 为我解决了这个问题 讨论.然后修复 Xamarin(不是 Xamarin Studio).
Installing the "Developer Pack" for .NET 4.5.1 fixed the issue for me as per this discussion. Then repair Xamarin (not Xamarin Studio).
这篇关于Xamarin Studio 无法构建控制台应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!