如何在我的 WPF 项目中导入 windows.media.capture?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/30772652/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How can i import windows.media.capture in my WPF project?
提问by Dika Arta Karunia
I am really confused about windows media capture namespace, I would like to import the namespace to develop camera function in windows 8.1.
我对windows media capture命名空间真的很困惑,我想在windows 8.1中导入命名空间来开发相机功能。
FYI, I developed using visual studio 2013 and windows 7 64 bit, i already tried to install windows 8 Software Development Kits also, but i still can't find the namespace.
仅供参考,我使用 Visual Studio 2013 和 windows 7 64 位进行开发,我也已经尝试安装 windows 8 软件开发工具包,但我仍然找不到命名空间。
Am I missing something?
我错过了什么吗?
采纳答案by Dika Arta Karunia
Finally I've done developing app for windows 8.1 Table in Windows 7 x64 and want to share some experience that i had in here.
最后,我已经为 Windows 7 x64 中的 Windows 8.1 Table 开发了应用程序,并想在这里分享一些我的经验。
Steps :
脚步 :
Edit .csproject in wpf app (Add
<TargetPlatformVersion>8.1</TargetPlatformVersion>Inside<PropertyGroup>)Add "Windows" library Reference

Load some .Net Framework 4 Library (System.Runtime.dll, System.Runtime.InteropServices.WindowsRuntime.dll,System.Threading and System.Threading.Task ) the location usually in C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
Load System.Runtime.WindowsRuntime.dll (C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETCore\v4.5)
在 wpf 应用程序中编辑 .csproject(添加
<TargetPlatformVersion>8.1</TargetPlatformVersion>内部<PropertyGroup>)添加“Windows”库参考

加载一些 .Net Framework 4 库(System.Runtime.dll、System.Runtime.InteropServices.WindowsRuntime.dll、System.Threading 和 System.Threading.Task),位置通常在 C:\Windows\Microsoft.NET\Framework64\v4 .0.30319\
加载 System.Runtime.WindowsRuntime.dll (C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETCore\v4.5)
But we cannot debug the application because have different runtime with windows 7, we only can build and deploy to the Windows 8.1 Tablet.
但我们无法调试应用程序,因为与 Windows 7 的运行时不同,我们只能构建和部署到 Windows 8.1 平板电脑。
I've done implementing camera function, GPS and database operation using MSSQLServer Compact DB Express 2014.
我已经使用 MSSQLServer Compact DB Express 2014 实现了相机功能、GPS 和数据库操作。
Reference :
参考 :

