简体   繁体   English

C#Visual Studio System.Windows.Media在程序文件(x86)\\参考程序集中不存在

[英]C# Visual Studio System.Windows.Media does not exist in Program Files (x86)\Referenced Assemblies

I couldn't see System.Windows.Media in the list of references, so I followed the advice in previous questions about adding PresentationCore.dll. 我在引用列表中看不到System.Windows.Media,因此我按照之前有关添加PresentationCore.dll的问题中的建议进行操作。 When that didn't resolve my problem, I searched Program Files (x86)\\Referenced Assemblies\\Microsoft, and as far as I can tell, there are no files named System.Windows.Media on my computer in any location, whatsoever. 如果这样做不能解决问题,则搜索程序文件(x86)\\参考程序集\\ Microsoft,据我所知,我的计算机上任何位置都没有名为System.Windows.Media的文件。 What should I do? 我该怎么办?

System.windows.media is not a reference however it's a namespace and must be used as one, this namespace lives in either PresentationFramework.dll or PresentationCore.dll depending if you are using Windows forms or WPF System.windows.media不是引用,但是它是一个名称空间,必须作为一个名称空间使用,该名称空间位于PresentationFramework.dll或PresentationCore.dll中,具体取决于您使用的是Windows窗体还是WPF

Try adding either one of the .dll files and then add "using system.windows.media" 尝试添加任何一个.dll文件,然后添加“ using system.windows.media”

PS path for presentationcore.dll is c:/Windows/Microsoft.NET/Framework64/v4.0.30319/WPF/PresentationCore.dll Presentationcore.dll的PS路径为c:/Windows/Microsoft.NET/Framework64/v4.0.30319/WPF/PresentationCore.dll

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在位置 C:\\Program Files (x86)\\Microsoft Visual Studio 11.0 找不到 ildasm.exe - Could not find ildasm.exe at location C:\Program Files (x86)\Microsoft visual studio 11.0 GetCurrentDirectory返回“ C:\\\\ Program Files(x86)\\\\ Microsoft Visual Studio 12.0 \\\\ Common7 \\\\ IDE” - GetCurrentDirectory returns “C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\IDE” C#Windows程序将文件写入“ sysWOW64”和“程序文件(x86)”。 使用VS安装项目。 64位系统上的32位应用程序 - C# Windows Program writes files to “sysWOW64” and to “Program Files(x86)”. Using VS Setup Projects. 32bit App on 64bit System C# - 如何在 Windows 64 位上获取程序文件 (x86) - C# - How to get Program Files (x86) on Windows 64 bit 在哪里可以找到System.Windows.Media? 媒体不存在 - Where do i find System.Windows.Media ? The Media is not exist UWP 中的 System.Windows.Media - System.Windows.Media in UWP System.IO.FileNotFoundException: '找不到文件'C:\Program Files (x86)\IIS Express\files'。 - System.IO.FileNotFoundException: 'Could not find file 'C:\Program Files (x86)\IIS Express\files'.' C#读写应用程序设置和日志文件最佳实践(UAC程序文件x86) - C# write and read appsettings and log files best practice (UAC Program Files x86) 使用C#将文件/文件夹添加到程序文件x86文件夹 - Adding Files/Folders to Program Files x86 Folder with C# 无法在Visual Studio 2008 C#Express Edition中将平台设置为x86 - Can't set platform to x86 in Visual Studio 2008 C# Express Edition
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM