universal windows工程,引用c#库,new c#库类时抛异常
ref new Class1();
using namespace RuntimeComponent1;
/// <summary>
/// 初始化单一实例应用程序对象。这是执行的创作代码的第一行,
/// 已执行,逻辑上等同于 main() 或 WinMain()。
/// </summary>
App::App()
{
InitializeComponent();
Suspending += ref new SuspendingEventHandler(this, &App::OnSuspending);
ref new Class1();
}

