问题标签 [visual-studio-2022]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
vb.net - 从转换为字符串的 ListBox 中删除重复项
我有一个问题,当我从 myListBox
中取出项目并将它们转换为单行字符串时,它会复制最后一个项目。我的目标是让它只从 中获取项目ListBox
,并将其转换为单行文本,用逗号 ( ,
) 分隔。
我花了一段时间,但我在这个线程上找到了一些代码,它在大多数情况下都有效,但最后一项在转换为字符串时总是重复的。我正在使用的代码是:
我有一种感觉,它必须处理删除逗号的代码,因为它是一个再次&=
调用item
Dim 的代码。但我似乎无法弄清楚该怎么做。
输出示例如下所示:Item1,Item2,Item3,Item3
当我只想要这个时:Item1,Item2,Item3
.net-6.0 - 如何激活 C# 10 功能 Visual Studio 2022
我尝试使用 Visual Studio 2022 Preview 3 中最新的 C# 10 功能。编译器无法识别所需的新关键字或字段。全局使用似乎有效。
空参数检查不编译:
我还尝试将语言版本设置为在 .csproj 中预览:
有没有我错过的设置?
liveserver - 适用于 Visual Studio 2022 的实时服务器
我在 Visual Studio 2022 预览版中编码,我需要 HTML 的实时服务器扩展。它适用于 vs 2019 及更早版本,但不适用于 vs 2022 预览版。
有没有办法在 vs 2022 预览版中使用实时服务器扩展?
c++ - VS2022 出错 - v143 - is_trivially_copyable_v
/std::c++latest
以下代码在 VS2022 / v143模式下无法编译。
它可以与 GCC、Clang 和旧版本的 MSVC 一起编译。这是一个已知的编译器错误吗?或者它不是一个错误?
visual-studio - 我无法在 MAUI 安装期间修复这些错误
你能弄清楚问题是什么吗?
我已经尝试了一些修复,但问题仍然存在。
blazor-webassembly - Blazor WASM 6.0.0-preview.7.21378.6、Visual Studio 2022 预览版 3.1
我从模板创建了一个标准的 Blazor WASM 项目,其中包含个人用户帐户、托管 ASP.NET 和配置为 Https,检查了渐进式 Web 应用程序。
运行项目,我在开发工具中得到了这个:
`crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] 未处理的异常渲染组件:无法从 '_configuration/Wtf.Client' createUserManager@https://localhost:44344/_content/Microsoft.AspNetCore 加载设置。 Components.WebAssembly.Authentication/AuthenticationService.js:2:288346
Microsoft.JSInterop.JSException:无法从“_configuration/Wtf.Client”中加载设置 createUserManager@https://localhost:44344/_content/Microsoft.AspNetCore.Components.WebAssembly.Authentication/AuthenticationService.js:2:288346
在 Microsoft.JSInterop.JSRuntime.d__161[[System.Object, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext() in Microsoft.JSInterop.dll:token 0x60000b3+0x156 at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args) in Microsoft.JSInterop.dll:token 0x6000049+0x84 at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService
3.d__27[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState,Microsoft.AspNetCore.Components.WebAssembly.Authentication,版本=6.0.0.0,文化=中性,PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly .Authentication.RemoteUserAccount,Microsoft.AspNetCore.Components.WebAssembly.Authentication,版本=6.0.0.0,Culture=neutral,PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.ApiAuthorizationProviderOptions,Microsoft.AspNetCore.Components.WebAssembly .Authentication, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext() in Microsoft.AspNetCore.Components.WebAssembly.Authentication.dll:token 0x6000122+0x95 at Microsoft.AspNetCore.Components.WebAssembly.Authentication。远程认证服务3.<GetAuthenticatedUser>d__26[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.ApiAuthorizationProviderOptions, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext() in Microsoft.AspNetCore.Components.WebAssembly.Authentication.dll:token 0x6000120+0x7d at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService
Authorization.dll:token 0x6000043+0xfd at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) in Microsoft.AspNetCore.Components.dll:token 0x60000a5+0x7e at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()。 AspNetCore.Components.dll:token 0x60000a3+0x113 at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState) in Microsoft.AspNetCore.Components.dll:token 0x6000285+0x65 blazor.webassembly.js:1: 30848 Cookie“PHPSESSID”将很快被视为针对“https://localhost:44344/css/open-iconic/font/fonts/open-iconic.woff”的跨站点 cookie,因为该方案不匹配。open-iconic.woff 暴击:Microsoft.AspNetCore.Components.WebAssembly.Rendering。
Microsoft.JSInterop.JSException:无法从“_configuration/Wtf.Client”中加载设置 createUserManager@https://localhost:44344/_content/Microsoft.AspNetCore.Components.WebAssembly.Authentication/AuthenticationService.js:2:288346
在 Microsoft.JSInterop.JSRuntime.d__161[[System.Object, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext() in Microsoft.JSInterop.dll:token 0x60000b3+0x156 at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args) in Microsoft.JSInterop.dll:token 0x6000049+0x84 at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService
3.d__27[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState,Microsoft.AspNetCore.Components.WebAssembly.Authentication,版本=6.0.0.0,文化=中性,PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly .Authentication.RemoteUserAccount,Microsoft.AspNetCore.Components.WebAssembly.Authentication,版本=6.0.0.0,Culture=neutral,PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.ApiAuthorizationProviderOptions,Microsoft.AspNetCore.Components.WebAssembly .Authentication, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext() in Microsoft.AspNetCore.Components.WebAssembly.Authentication.dll:token 0x6000122+0x95 at Microsoft.AspNetCore.Components.WebAssembly.Authentication。远程认证服务3.<GetAuthenticatedUser>d__26[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.ApiAuthorizationProviderOptions, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext() in Microsoft.AspNetCore.Components.WebAssembly.Authentication.dll:token 0x6000120+0x7d at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService
3.d__25[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState,Microsoft.AspNetCore.Components.WebAssembly.Authentication,版本=6.0.0.0,文化=中性,PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly .Authentication.RemoteUserAccount,Microsoft.AspNetCore.Components.WebAssembly.Authentication,版本=6.0.0.0,Culture=neutral,PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.ApiAuthorizationProviderOptions,Microsoft.AspNetCore.Components.WebAssembly .Authentication, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext() in Microsoft.AspNetCore.Components.WebAssembly.Authentication.dll:token 0x600011e+0xa7 at Microsoft.AspNetCore.Components.WebAssembly.Authentication。 RemoteAuthenticationService`3.d__17[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState,Microsoft.AspNetCore.Components.WebAssembly.Authentication,版本=6.0.0.0,Culture=neutral,PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount,Microsoft。 AspNetCore.Components.WebAssembly.Authentication,版本=6.0.0.0,Culture=neutral,PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.ApiAuthorizationProviderOptions,Microsoft.AspNetCore.Components.WebAssembly.Authentication,版本=6.0。 0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext() 在 Microsoft.AspNetCore.Components.WebAssembly.Authentication.dll: 令牌 0x6000110+0x63 在 Microsoft.AspNetCore.Components.Authorization.AuthorizeViewCore.OnParametersSetAsync() 在 Microsoft.AspNetCore 。组件。Authorization.dll:token 0x6000043+0xfd at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) in Microsoft.AspNetCore.Components.dll:token 0x60000a5+0x7e at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle , ComponentState owningComponentState) in Microsoft.AspNetCore.Components.dll:token 0x6000285+0x65 blazor.webassembly.js:1:30848 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] 未处理的异常渲染组件:无法加载来自“_configuration/Wtf.Client”的设置 createUserManager@https://localhost:44344/_content/Microsoft.AspNetCore.Components.WebAssembly.Authentication/AuthenticationService.js:2:288346CallStateHasChangedOnAsyncCompletion(Task task) in Microsoft.AspNetCore.Components.dll:token 0x60000a5+0x7e at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState) in Microsoft.AspNetCore.Components.dll:token 0x6000285+0x65 blazor.webassembly.js:1:30848 暴击:Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] 未处理的异常渲染组件:无法从“_configuration/Wtf.Client”加载设置 createUserManager@https://localhost: 44344/_content/Microsoft.AspNetCore.Components.WebAssembly.Authentication/AuthenticationService.js:2:288346CallStateHasChangedOnAsyncCompletion(Task task) in Microsoft.AspNetCore.Components.dll:token 0x60000a5+0x7e at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState) in Microsoft.AspNetCore.Components.dll:token 0x6000285+0x65 blazor.webassembly.js:1:30848 暴击:Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] 未处理的异常渲染组件:无法从“_configuration/Wtf.Client”加载设置 createUserManager@https://localhost: 44344/_content/Microsoft.AspNetCore.Components.WebAssembly.Authentication/AuthenticationService.js:2:288346Microsoft.AspNetCore.Components.dll 中的 ComponentState owningComponentState):token 0x6000285+0x65 blazor.webassembly.js:1:30848 暴击:Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] 未处理的异常渲染组件:无法加载设置来自'_configuration/Wtf.Client' createUserManager@https://localhost:44344/_content/Microsoft.AspNetCore.Components.WebAssembly.Authentication/AuthenticationService.js:2:288346Microsoft.AspNetCore.Components.dll 中的 ComponentState owningComponentState):token 0x6000285+0x65 blazor.webassembly.js:1:30848 暴击:Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] 未处理的异常渲染组件:无法加载设置来自'_configuration/Wtf.Client' createUserManager@https://localhost:44344/_content/Microsoft.AspNetCore.Components.WebAssembly.Authentication/AuthenticationService.js:2:288346身份验证/AuthenticationService.js:2:288346身份验证/AuthenticationService.js:2:288346
Microsoft.JSInterop.JSException:无法从“_configuration/Wtf.Client”中加载设置 createUserManager@https://localhost:44344/_content/Microsoft.AspNetCore.Components.WebAssembly.Authentication/AuthenticationService.js:2:288346
在 Microsoft.JSInterop.JSRuntime.d__161[[System.Object, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext() in Microsoft.JSInterop.dll:token 0x60000b3+0x156 at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args) in Microsoft.JSInterop.dll:token 0x6000049+0x84 at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService
3.d__27[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState,Microsoft.AspNetCore.Components.WebAssembly.Authentication,版本=6.0.0.0,文化=中性,PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly .Authentication.RemoteUserAccount,Microsoft.AspNetCore.Components.WebAssembly.Authentication,版本=6.0.0.0,Culture=neutral,PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.ApiAuthorizationProviderOptions,Microsoft.AspNetCore.Components.WebAssembly .Authentication, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext() in Microsoft.AspNetCore.Components.WebAssembly.Authentication.dll:token 0x6000122+0x95 at Microsoft.AspNetCore.Components.WebAssembly.Authentication。远程认证服务3.<GetAuthenticatedUser>d__26[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.ApiAuthorizationProviderOptions, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext() in Microsoft.AspNetCore.Components.WebAssembly.Authentication.dll:token 0x6000120+0x7d at Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService
3.d__25[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState,Microsoft.AspNetCore.Components.WebAssembly.Authentication,版本=6.0.0.0,文化=中性,PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly .Authentication.RemoteUserAccount,Microsoft.AspNetCore.Components.WebAssembly.Authentication,版本=6.0.0.0,Culture=neutral,PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.ApiAuthorizationProviderOptions,Microsoft.AspNetCore.Components.WebAssembly .Authentication, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext() in Microsoft.AspNetCore.Components.WebAssembly.Authentication.dll:token 0x600011e+0xa7 at Microsoft.AspNetCore.Components.WebAssembly.Authentication。远程认证服务3.<GetAuthenticationStateAsync>d__17[[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteUserAccount, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[Microsoft.AspNetCore.Components.WebAssembly.Authentication.ApiAuthorizationProviderOptions, Microsoft.AspNetCore.Components.WebAssembly.Authentication, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext() in Microsoft.AspNetCore.Components.WebAssembly.Authentication.dll:token 0x6000110+0x63 at Microsoft.AspNetCore.Components.Authorization.AuthorizeViewCore.OnParametersSetAsync() in Microsoft.AspNetCore.Components.Authorization.dll:token 0x6000043+0xfd at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) in Microsoft.AspNetCore.Components.dll:token 0x60000a5+0x7e at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync() in Microsoft.AspNetCore.Components.dll:token 0x60000a3+0x113 at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState) in Microsoft.AspNetCore.Components.dll:token 0x6000285+0x65
有人知道这里发生了什么吗?我确实安装了 Mads Kristensen 的“The Essentials”扩展,如果这很重要的话。
reactjs - Disable Running React Project In Incognito Visual Studio 2022
I've a standalone React project. I'm using VisualStudio 2022 Preview 2 as the IDE. Every time I launches the react webapp by clicking on green play icon in VS, It launches an Incognito Chrome window.
Is there any way I can launch the application in normal Chrome window?
This is the launch.json file inside .vscode
folder
c# - 在 .net core 6 中配置连接字符串
我正在尝试使用 SQL Server 连接到我的 ASP.NET Core Web API 应用程序(Visual Studio 2022 Preview 中的 .NET 6)。并且我尝试像以前Startup
一样使用以下代码来配置类中的连接字符串。
但是在 .NET 6 中,我认识到Startup
类Program
被合并为一个类。并且上面的代码在 .NET 6AddDbContext
中不可用。无法识别。那么您对此次更新以及如何在 .NET 6 中配置连接字符串有任何想法或文档吗?