.net 相关问题

不要用于有关.NET Core的问题。 .NET框架是一个主要为Microsoft Windows操作系统设计的软件框架。它包括基类库,公共语言运行时(通常称为CLR),公共类型系统(通常称为CTS)和动态语言运行时的实现。它支持许多编程语言,包括C#,VB.NET,F#和C ++ / CLI。

在 .NET 6 中使用 ZipArchive 时出现条目名称编码问题

我有一个方法,它采用带有 .zip 扩展名的 IFormFile 并读取其中压缩的文件。它工作得很好,但是,在某些情况下,符号 æ、å、ø 的编码是 w...

回答 1 投票 0

如何在迁移的 MAUI 应用程序中正确访问使用 Xamarin.Forms 应用程序创建的应用程序数据文件夹中的现有文件?

我目前正在将现有的 Xamarin.Forms 应用程序迁移到 .NET MAUI。现有的应用程序使用 SQLite 数据库来存储一些数据。 数据库路径在 Xamarin.Forms 应用程序中设置如下: p...

回答 2 投票 0

.NET 缩略图库[已关闭]

我正在寻找.NET 的缩略图库。我不在乎是免费的还是付费的。我想生成文件预览的缩略图,支持尽可能多的文件类型: 图片、视频、pfd、关闭...

回答 1 投票 0

使用 Microsoft Graph 访问电子邮件的最简单方法是什么?

我是 Microsoft Graph 的新手,我想用它来阅读和移动电子邮件。这是我的 C# 代码: 静态异步任务 Main(string[] args) { varscopes = new[] {“https://graph.microsoft....

回答 1 投票 0

如何清除 System.Net 客户端 DNS 缓存?

我在更改 HOSTS 文件时使用 .NET WebRequest。我发现 System.Net 不遵守这些更改 - 我怎样才能让它这样做? 我有许多服务器在一个服务器后面进行负载平衡...

回答 5 投票 0

为什么我们需要基础阶段来在 Dockerfile 中容器化 ASP.NET 应用程序

下面是默认的docker文件 来自 mcr.microsoft.com/dotnet/aspnet:6.0 AS 基础 工作目录/应用程序#<------------------------------------------ EXPOSE 80 FROM mcr.microsoft.com/dotnet/sdk:6.0 AS bu...

回答 1 投票 0

Web API 从 .NET Framework 4.7 升级到 .NET 8 后,控制器无法获取请求的正文值

因此,将 ASP .NET Web API 从 .NET Framework 升级到 .NET 8 后,所有控制器的端点都无法从请求正文中获取任何值。即使控制器无法获得

回答 1 投票 0

我无法删除用户

我正在 Blazor 中使用 CRUD 应用程序,在执行删除用户功能时遇到错误。我尝试了很多方法但都失败了。这是我的 3 个文件中的代码。 DAO.cs 公共无效DeleteUser(列表u...

回答 1 投票 0

错误MSB4025:无法加载项目文件。第 48 行位置的“ItemGroup”开始标记

我需要你的帮助 我正在尝试使用 windows runner 在 Gitlab-ci 上构建一个 dotnet 项目,但收到以下错误消息 C:\$Path\SolutionMVC.csproj(176,7): 错误 MSB4025: 项目文件

回答 1 投票 0

HttpClient:每个套接字地址(协议/网络地址/端口)通常只允许使用一次

我有一个应用程序(ASP NET .NET Framework)正在向我的 API(.net Framework Web API)发送 HTTP 请求(调用),有时我会遇到这样的错误 - 每个套接字地址只有一次使用(

回答 1 投票 0

干净架构中的HierarchyId

我想要将现有 .NET 项目迁移到 Clean Architecture 模型,但当前 EF Core 实体正在使用 HierarchyId 数据类型(来自 EntityFrameworkCore.SqlServer.HierarchyId p...

回答 1 投票 0

如何在 Visual Studio 代码中更改 C# 语言的大括号模式 {}

Visual Studio Code 中的 C# 语言模式将是代码底部的大括号 {},我想在前面打开它,类似于 JavaScript 中的,我已经习惯了,贝尔...

回答 1 投票 0

asp.net api 中的 IExceptionHandler .net8 不起作用

我正在尝试使用.net8的新IExceptionHandler 我有一个异常处理程序类: 公共类异常处理程序:IExceptionHandler { 公共异步 ValueTask TryHandleAsync(HttpContext

回答 1 投票 0

使用 Redisinsight 的 YARP 代理

有没有人设法在 Docker 中为 RedisInsight 设置 YARP 配置,该配置在 localhost:8001 上运行?我需要将 myserver/app/redis 重定向到 localhost:8001。当我尝试时,我有一个 p...

回答 1 投票 0

对于 .NET Core 应用程序中的相同表使用两个单独的存储库实例(一个作为作用域,一个作为单例)是一个好的设计吗?

我正在开发一个有两个用例的 .NET Core 应用程序。一种是普通的 HTTP post API 端点,我在执行业务逻辑后在一些 SQL Server 表中创建一些记录。 另一个工作...

回答 1 投票 0

“执行本机代码时获得 SIGABRT。”当我点击条目时

我正在 .Net MAUI 中制作一个应用程序,该应用程序在 Android 上运行良好,但是当我点击 Entry 时将其传递到 IOS 时。这是条目 我正在 .Net MAUI 中制作一个应用程序,该应用程序在 Android 上运行良好,但是当我点击 Entry 时将其传递到 IOS 时。这是入口 <Frame Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" VerticalOptions="Start" BorderColor="Gray" Padding="15,5" CornerRadius="10" BackgroundColor="WhiteSmoke"> <Entry Placeholder="Usuario" Text="{Binding Alias}" IsEnabled="{Binding IsLoadingGrid}" FontSize="Medium" TextColor="#001f3f" PlaceholderColor="#AAAAAA" /> 我收到以下错误: ================================================================= Native Crash Reporting ================================================================= Got a SIGABRT while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= ================================================================= Native stacktrace: ================================================================= 0x1059bc1a0 - /Users/andresdeperedagarcia/Library/Developer/CoreSimulator/Devices/378C2399-2DD8-42BE-A442-CCB3C3D22453/data/Containers/Bundle/Application/7018FB80-FE60-4B7B-A645-964554AFE9B1/tecnovoice.nukua.formaciones.app/libmonosgen-2.0.dylib : mono_dump_native_crash_info 0x10596c1c0 - /Users/andresdeperedagarcia/Library/Developer/CoreSimulator/Devices/378C2399-2DD8-42BE-A442-CCB3C3D22453/data/Containers/Bundle/Application/7018FB80-FE60-4B7B-A645-964554AFE9B1/tecnovoice.nukua.formaciones.app/libmonosgen-2.0.dylib : mono_handle_native_crash 0x105c8ebc8 - /Users/andresdeperedagarcia/Library/Developer/CoreSimulator/Devices/378C2399-2DD8-42BE-A442-CCB3C3D22453/data/Containers/Bundle/Application/7018FB80-FE60-4B7B-A645-964554AFE9B1/tecnovoice.nukua.formaciones.app/libmonosgen-2.0.dylib : sigabrt_signal_handler.cold.1 0x1059bba60 - /Users/andresdeperedagarcia/Library/Developer/CoreSimulator/Devices/378C2399-2DD8-42BE-A442-CCB3C3D22453/data/Containers/Bundle/Application/7018FB80-FE60-4B7B-A645-964554AFE9B1/tecnovoice.nukua.formaciones.app/libmonosgen-2.0.dylib : mono_runtime_setup_stat_profiler 0x103ab37e0 - /usr/lib/system/libsystem_platform.dylib : _sigtramp 0x10457f124 - /usr/lib/system/libsystem_pthread.dylib : pthread_kill 0x1801655c0 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_c.dylib : abort 0x1801e378c - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_malloc.dylib : malloc_vreport 0x1801e3950 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_malloc.dylib : malloc_report 0x1801d78a0 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_malloc.dylib : find_zone_and_free 0x181dd5fb0 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Conten ts/Resources/RuntimeRoot/usr/lib/libicucore.A.dylib : _ZN3icu6Locale10setToBogusEv 0x181dd7954 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libicucore.A.dylib : _ZN3icu6LocaleaSERKS0_ 0x181f455f4 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libicucore.A.dylib : _ZN3icu6number24LocalizedNumberFormatterC2EONS0_4impl10MacroPropsERKNS_6LocaleE 0x181ef1494 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libicucore.A.dylib : _ZN3icu13DecimalFormat5touchER10UErrorCode 0x181dda37c - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libicucore.A.dylib : _ZN3icu 13DecimalFormatC1ERKNS_13UnicodeStringEPNS_20DecimalFormatSymbolsER11UParseErrorR10UErrorCode 0x181dd73ec - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libicucore.A.dylib : unum_open 0x1804a0bf0 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation : __cficu_unum_open 0x1803e15cc - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation : CFNumberFormatterCreate 0x180da4f8c - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Foundation : -[NSNumberFormatter _regenerateFormatter] 0x180da6040 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Foundation : -[NSNumberFormatter stringForObjectValue:] 0x18504ab10 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : UIKeyboardGetNumbersStringForActiveInputMode 0x1850a1f70 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : UIKBMoreKeyStringForActiveInputMode 0x1850fe1ac - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UIKeyboardLayoutStar updateLocalizedKeysOnKeyplane:] 0x1850ff540 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UIKeyboardLayoutStar updateLocalizedKeysForKeyplane:updateAllKeyplanes:] 0x185104588 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UIKeyboardLayoutStar setKeyplaneName:] 0x18510a714 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UIKeyboardLayoutStar setToInitialKeyplane] 0x18510a5f4 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UIKeyboardLayoutStar showKeyboardWithInputMode:renderConfig:inputTraits:screenTraits:splitTraits:reload:] 0x1851e7bcc - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UIKeyboardImpl finishLayoutChangeWithArguments:] 0x1851e826c - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UIKeyboardImpl updateLayout] 0x1851db674 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UIKeyboardImpl _setupDelegate:delegateSame:hardwareKeyboardStateChanged:endingInputSessionIdentifier:force:delayEndInputSession:] 0x1851d95cc - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UIKeyboardImpl setDelegate:force:delayEndInputSession:] 0x184e06f84 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UIKeyboardSceneDelegate _reloadInputViewsForKeyWindowSceneResponder:force:fromBecomeFirstResponder:] 0x184e06190 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UIKeyboardSceneDelegate _reloadInputViewsForResponder:force:fromBecomeFirstResponder:] 0x185417cec - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UIResponder(UIResponderInputViewAdditions) _reloadInputViewsFromFirstResponder:] 0x1854129fc - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UIResponder becomeFirstResponder] 0x1858f81c0 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UIView(Hierarchy) becomeFirstResponder] 0x18570c4a0 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UITextField becomeFirstResponder] 0x1856d097c - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) setFirstResponderIfNecessaryActivatingSelection:] 0x1856acf08 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UITextSelectionInteraction _checkForRepeatedTap:gestureLocationOut:] 0x1856adc9c - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UITextSelectionInteraction _handleMultiTapGesture:] 0x1853ecf04 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UIApplication sendAction:to:from:forEvent:] 0x184e6a168 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UITextMultiTapRecognizer onStateUpdate:] 0x184f2b560 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:] 0x184f32f60 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : _UIGestureRecognizerSendTargetActions 0x184f307e8 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : _UIGestureRecognizerSendActions 0x184f2ff44 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UIGestureRecognizer _updateGestureForActiveEvents] 0x184f22bd0 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : _UIGestureEnvironmentUpdate 0x184f21ecc - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:] 0x184f21c3c - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UIGestureEnvironment _updateForEvent:window:] 0x185421df8 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UIWindow sendEvent:] 0x1854017c8 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UIApplication sendEvent:] 0x1854849d8 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : __dispatchPreprocessedEventFromEventQueue 0x185487824 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : __processEventQueue 0x185480218 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : __eventFetcherSourceCallback 0x18040ee88 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation : __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ 0x18040edd0 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation : __CFRunLoopDoSource0 0x18040e540 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation : __CFRunLoopDoSources0 0x180408c28 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation : __CFRunLoopRun 0x180408514 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation : CFRunLoopRunSpecific 0x18ef06ae4 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices : GSEventRunModal 0x1853e8040 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : -[UIApplication _run] 0x1853ebcc8 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore : UIApplicationMain 0x1046c3f14 - /Users/andresdeperedagarcia/Library/Developer/CoreSimulator/Devices/378C2399-2DD8-42BE-A442-CCB3C3D22453/data/Containers/Bundle/Application/7018FB80-FE60-4B7B-A645-964554AFE9B1/tecnovoice.nukua.formaciones.app/libxamarin-dotnet-debug.dylib : xamarin_UIApplicationMain 0x1059cca50 - /Users/andresdeperedagarcia/Library/Developer/CoreSimulator/Devices/378C2399-2DD8-42BE-A442-CCB3C3D22453/data/Containers/Bundle/Application/7018FB80-FE60-4B7B-A645-964554AFE9B1/tecnovoice.nukua.formaciones.app/libmonosgen-2.0.dylib : do_icall 0x1059cb2f0 - /Users/andresdeperedagarcia/Library/Developer/CoreSimulator/Devices/378C2399-2DD8-42BE-A442-CCB3C3D22453/data/Containers/Bundle/Application/7018FB80-FE60-4B7B-A645-964554AFE9B1/tecnovoice.nukua.formaciones.app/libmonosgen-2.0.dylib : do_icall_wrapper 0x1059bfd3c - /Users/andresdeperedagarcia/Library/Developer/CoreSimulator/Devices/378C2399-2DD8-42BE-A442-CCB3C3D22453/data/Containers/Bundle/Application/7018FB80-FE60-4B7B-A645-964554AFE9B1/tecnovoice.nukua.formaciones.app/libmonosgen-2.0.dylib : mono_interp_exec_method 0x1059bd910 - /Users/andresdeperedagarcia/Library/Developer/CoreSimulator/Devices/378C2399-2DD8-42BE-A442-CCB3C3D22453/data/Containers/Bundle/Application/7018FB80-FE60-4B7B-A645-964554AFE9B1/tecnovoice.nukua.formaciones.app/libmonosgen-2.0.dylib : interp_runtime_invoke 0x1058d69b4 - /Users/andresdeperedagarcia/Library/Developer/CoreSimulator/Devices/378C2399-2DD8-42BE-A442-CCB3C3D22453/data/Containers/Bundle/Application/7018FB80-FE60-4B7B-A645-964554AFE9B1/tecnovoice.nukua.formaciones.app/libmonosgen-2.0.dylib : mono_jit_runtime_invoke 0x105a91a14 - /Users/andresdeperedagarcia/Library/Developer/CoreSimulator/Devices/378C2399-2DD8-42BE-A442-CCB3C3D22453/data/Containers/Bundle/Application/7018FB80-FE60-4B7B-A645-964554AFE9B1/tecnovoice.nukua.formaciones.app/libmonosgen-2.0.dylib : mono_runtime_invoke_checked 0x105a98ff4 - /Users/andresdeperedagarcia/Library/Developer/CoreSimulator/Devices/378C2399-2DD8-42BE-A442-CCB3C3D22453/data/Containers/Bundle/Application/7018FB80-FE60-4B7B-A645-964554AFE9B1/tecnovoice.nukua.formaciones.app/libmonosgen-2.0.dylib : mono_runtime_exec_main_checked 0x10592ac70 - /Users/andresdeperedagarcia/Library/Developer/CoreSimulator/Devices/378C2399-2DD8-42BE-A442-CCB3C3D22453/data/Containers/Bundle/Application/7018FB80-FE60-4B7B-A645-964554AFE9B1/tecnovoice.nukua.formaciones.app/libmonosgen-2.0.dylib : mono_jit_exec 0x104707ad0 - /Users/andresdeperedagarcia/Library/Developer/CoreSimulator/Devices/378C2399-2DD8-42BE-A442-CCB3C3D22453/data/Containers/Bundle/Application/7018FB80-FE60-4B7B-A645-964554AFE9B1/tecnovoice.nukua.formaciones.app/libxamarin-dotnet-debug.dylib : xamarin_main 0x10304eb44 - /Users/andresdeperedagarcia/Library/Developer/CoreSimulator/Devices/378C2399-2DD8-42BE-A442-CCB3C3D22453/data/Containers/Bundle/Application/7018FB80-FE60-4B7B-A645-964554AFE9B1/tecnovoice.nukua.formaciones.app/tecnovoice.nukua.formaciones : main 0x103b91544 - Unknown 0x1035820e0 - Unknown 0xe4b800000000000 - Unknown ================================================================= Basic Fault Address Reporting ================================================================= Memory around native instruction pointer (0x1046353b0):0x1046353a0 c0 03 5f d6 c0 03 5f d6 10 29 80 d2 01 10 00 d4 .._..._..)...... 0x1046353b0 e3 00 00 54 fd 7b bf a9 fd 03 00 91 cd e2 ff 97 ...T.{.......... 0x1046353c0 bf 03 00 91 fd 7b c1 a8 c0 03 5f d6 c0 03 5f d6 .....{...._. .._. 0x1046353d0 70 0a 80 d2 01 10 00 d4 e3 00 00 54 fd 7b bf a9 p..........T.{.. ================================================================= Managed Stacktrace: ================================================================= at <unknown> <0xffffffff> at UIKit.UIApplication:xamarin_UIApplicationMain <0x000b8> at UIKit.UIApplication:UIApplicationMain <0x0006e> at UIKit.UIApplication:Main <0x0015a> at tecnovoice.nukua.formaciones.Program:Main <0x0002c> at <Module>:runtime_invoke_direct_void_string[] <0x0007e> at <unknown> <0x00000> ================================================================= 我的 iOS 版本是 17.4,我看到一个 reddit 帖子说它可以修复,但我仍然遇到错误。 https://www.reddit.com/r/dotnetMAUI/comments/1bd1cwz/comment/kuzb4pl/ 我发现,如果人们降级到以前的版本,就会为他们工作。 除了换版本还有别的办法吗? 您所看到的情况正在发生,因为您正在使用 Xcode 15.3 和 iOS 17.4 以及随附的 iOS SDK,目前 .NET for iOS(以及 .NET MAUI)不支持该 SDK。 欲了解更多信息,请参阅此问题。 最简单的可能是降级到 Xcode 15.2(也可以在 iOS 17.4 上运行)。您可以使用 Xcode(注意末尾的 s)并排管理多个 Xcode 版本。 如果您现在确实想使用 Xcode 15.3,您可以将其与 iOS 17.2 模拟器一起使用,或者使用 iOS 17.4 模拟器,将以下代码添加到 AppDelegate.cs 中的 FinishedLaunching(在此描述) : var date = NSDate.Now; var locale = NSLocale.SystemLocale; var str = date.DescriptionWithLocale (locale);

回答 1 投票 0

C#:HashSet:为什么 valueType.Equals(Object) 这么慢

有这个方法: public void RunFD(目标文件Obj, ISet访问) { if (!visited.Add(fileObj)) 返回; if (fileObj 是 IEnumerable enumerablFileObj ) { foreach (... 有了这个方法: public void RunFD(object fileObj, ISet<object> visited) { if (!visited.Add(fileObj)) return; if (fileObj is IEnumerable enumerablFileObj ) { foreach (var aFileObj in enumerablFileObj.OfType<object>()) { RunFD(aFileObj , visited); } } else { AddToFolder(fileObj); } } fileObj 是一个简单的对象,可以包含字符串或自定义对象。可能会出现Parent1 -> child -> Parent1的场景,因此使用名为visited的HashSet。这里,Parent1 指的是与另一个 Parent1 完全相同的实例。 尽管此方法按预期运行,但我注意到执行时间相当长。令人惊讶的是,大部分执行时间都花在了visited.Add(fileObj)上。 在执行过程中,观察到最耗时的操作是HashSet.AddIfNotPresent -> ObjectEqualityComparer.Equals -> ValueType.Equals(Object),它占了我的方法总执行时间的95%。 我很困惑,因为我预计 HashSet 的时间复杂度一般为 O(1),仅检查引用对象是否与另一个相同(这符合我的要求)。 考虑到我有多种类型的 fileObj 类,我是否应该为所有这些类重写 Equals 方法?有没有更有效的方法来检查对象是否相同? 我尝试寻找另一种解决方案,但唯一出现的解决方案是重载对象的 Equals 和 GetHashCode 方法。然而,这是非常痛苦的,因为我有很多可能的对象用于此方法.. 如果您只需要检查引用相等性,请使用使用 ReferenceEquals 的自定义相等比较器: public class ReferenceEqualityComparer<T> : IEqualityComparer<T> where T : class { public static IEqualityComparer<T> Default { get {return new ReferenceEqualityComparer<T>();}} public bool Equals(T x, T y){ return ReferenceEquals(x, y); } public int GetHashCode(T obj) { return RuntimeHelpers.GetHashCode(obj); } } var visited = new HashSet<object>(ReferenceEqualityComparer<object>.Default);

回答 1 投票 0

更新共享资源时避免并发 POST API 调用中出现重复条目

我正在开发一个 Web 应用程序,遇到并发 POST API 调用导致重复条目的问题。应用程序处理共享公共标识符的实体,并更新...

回答 1 投票 0

在.net中的同一进程中托管多个Web API

我们有一个微服务架构,每个微服务当前都托管在自己的进程中,并通过自己的 Docker 镜像进行部署。课本完全分开。 在源代码级别上,所有这些...

回答 1 投票 0

使用sendgrid发送电子邮件时在asp.net webforms中获取证书异常

使用asp.net webforms应用程序中的sendgrid发送带有附件的电子邮件。在本地它工作正常。但将其部署到生产环境后,iis 出现以下异常。 System.Net.WebException...

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.