如何将 zip 文件内容提取到 .NET 4.5 中的文件夹中

问题描述以下问题的答案似乎概述了如何使用System.IO.Commpression.ZipFile.ExtractToDirectory方法调用提取文件.添加对System.IO.Compression的引用时,.NET4.5中似乎不存在ZipFile".如何从.NET4.5中

发布:2022-10-16 标签:compressionc#zip7zip.net-4.5


包含 System.IO.Compression 时,当前上下文中不存在名称“ZipFile"

问题描述我目前正在运行.net4.5版,并且正在尝试使用它的新"zip功能.我正在包含System.IO.Compression并尝试运行以下代码:I"mcurrentlyrunning.netversion4.5andamtryingtouseit's"new"zipfunct

发布:2022-10-16 标签:asp.net.netc#.net-4.5


不在 C# 应用程序中发送串行数据

问题描述我有两个Arduino,允许使用串行监视器通过串行端口交换消息.IhavetwoArduinosthatallowmessagesexchangeviaSerialPortusingSerialMonitor.如果我在双方都使用串行监视器,一切正常.如果我使用我的C#应用

发布:2022-10-16 标签:c#winforms.net-4.5serial-portarduino


如何在不中断异步/等待的情况下创建 HttpWebRequest?

问题描述我有一堆缓慢的函数,本质上是这样的:Ihaveabunchofslowfunctionsthatareessentiallythis:privateasyncTask<List<string>>DownloadSomething(){varrequest=System.N

发布:2022-10-16 标签:c#httpwebrequestasync-await.net-4.5


应用清单被忽略

问题描述我正在Windows7x64上的VisualStudio2013中开发一个需要管理员权限的应用程序,但我的清单似乎被忽略了:IamdevelopinganappinVisualStudio2013onWindows7x64thatrequiresadministrator

发布:2022-10-16 标签:manifest.net-4.5visual-studio-2013windows-7-x64


强制 xslt 使用带有 xslCompiledTransform 的版本 2

问题描述我有以下xslt,我需要使用xslt2.0版功能,如格式日期".如何使用XsltCompiledTransform类(c#、.net4.5)声明Xsl表以使用2.0版.Ihavefollowingxslt,Ineedtousexsltversion2.0functions

发布:2022-10-16 标签:c#xslt.net-4.5


已安装 4.5 时,不会安装 .NET Framework 4.0

问题描述我将VisualStudio2012用于需要(至少).NETFramework4.0的WPF项目.我已经安装了4.5,但使用WindowsXP的人无法安装该应用程序(因为4.5不能在WindowsXP上运行).我使用ClickOnce作为部署应用程序.IuseVisual

发布:2022-10-16 标签:.net-4.0.net-4.5visual-studio-2012clickonce


升级到 .NET 4.5 和 EF 5 后“启用迁移&quot;失败

问题描述我刚刚将我的MVC4项目升级到.NET4.5和EF5并开始使用VS2012.在意识到我需要再次在包管理器中设置自动迁移后,我运行Enable-Migrations-EnableAutomaticMigrations并收到错误在程序集MySolutionName"中找不到上

发布:2022-10-16 标签:entity-framework-5asp.net-mvc-4.net-4.5


Azure Active Directory Graph Client 2.0 - 上下文当前未跟踪实体

问题描述我最近安装了AzureActiveDirectoryGraphClientLibrary2.0.2Nuget包,但无法将成员添加到组中将组添加到组或将用户添加到组我在AddLink时收到以下错误函数被调用:IhaverecentlyinstalledtheAzureAct

发布:2022-10-16 标签:c#.net-4.5azure-active-directory


使用 { get; 实现只读属性}

问题描述为什么不运行:classProgram{staticvoidMain(string[]args){Applea=newApple("green");}}classApple{publicstringColour{get;}publicApple(stringcolour)

发布:2022-10-16 标签:c#.net-4.5visual-studio-2012