请帮忙,我遇到了一个问题。我是UWP编程的新手。
问题:我已经构建了一个简单的应用程序,其中包含一个按钮。当按下按钮时,它将显示一条消息。
错误:在CommonLanguageRuntimeLibrary模块中找不到类型System.Collections.CollectionBase。
以下是我的代码。
错误:在CommonLanguageRuntimeLibrary模块中找不到类型System.Collections.CollectionBase。
以下是我的代码。
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
using System.Windows.MessageBox;
using System.Windows.Forms;
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409
namespace App1
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class MainPage : Page
{
public MainPage()
{
this.InitializeComponent();
}
private void Button_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("HI");
}
}
}
using System;
。我编辑了我的答案。 - mm8