![](/img/trans.png)
[英]How do I add a reference to an unmanaged C++ project called by a C# project?
[英]How do I add a reference to a Windows Universal C++ project
我是 Windows 通用應用程序和 Visual Studio 2015 項目的新手,我找不到如何添加對 C++ 項目的引用。 我想使用 LINQ,但找不到命名空間 System.Linq。
我找不到如何添加對 C++ 項目的引用。 我想使用 LINQ,但找不到命名空間 System.Linq。
不能將 .NET 程序集 LINQ 引用到 UWP C++ 項目。 您只能將 UWP Windows 運行時組件引用到它。
右鍵單擊解決方案資源管理器中的“引用”,然后在彈出菜單中單擊“添加引用”。 這將打開參考管理器,您可以在其中選擇所需的參考。 您可以在這篇 MSDN 文章中閱讀有關該主題的更多信息。
默認情況下,您無需添加對“System.Linq”的額外引用,它就在那里。 只需using System.Linq;
添加using System.Linq;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
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;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.