【发布时间】:2013-06-18 14:31:44
【问题描述】:
在 Windows 7 上将我的项目从 Xamarin Studio 移植到 VS2012 时出现错误
错误 3 类型“System.ComponentModel.INotifyPropertyChanged”是 在未引用的程序集中定义。您必须添加一个 参考程序集 'System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'。 C:\Users\user\Documents\Visual Studio 2012\Projects\MyProject.Core\ApplicationObjects\AppStart.cs
这是我的 AppStart.cs:
using Cirrious.MvvmCross.ViewModels;
using MyProject.Core.ViewModels;
namespace MyProject.Core.ApplicationObjects
{
public class AppStart
: MvxNavigatingObject
, IMvxAppStart
{
private readonly bool _showSplashScreen;
public AppStart(bool showSplashScreen)
{
_showSplashScreen = showSplashScreen;
}
public void Start(object hint = null)
{
if (_showSplashScreen)
{
ShowViewModel<SplashScreenViewModel>();
}
else
{
ShowViewModel<HomeViewModel>();
}
}
}
}
我的核心项目在 Mac 上编译良好。
【问题讨论】:
标签: visual-studio-2012 xamarin mono mvvmcross portable-class-library