
[英]How do I repoint Developer Powershell to 2022 devenv.exe
要重现开发人员 powershell 错误,请按照以下步骤操作: 卸载 Visual Studio 2019 安装 Visual Studio 2022 打开 Visual Studio 2022 右键单击项目在菜单中单击“在终端中打开” 开发者PowerShell打开显示错误信息: 我如何解决它 ...
[英]How do I repoint Developer Powershell to 2022 devenv.exe
要重现开发人员 powershell 错误,请按照以下步骤操作: 卸载 Visual Studio 2019 安装 Visual Studio 2022 打开 Visual Studio 2022 右键单击项目在菜单中单击“在终端中打开” 开发者PowerShell打开显示错误信息: 我如何解决它 ...
[英]How to debug Blazor project (plugin module) in VS if main web app running under IIS?
这个场景是有一个Blazor web的应用平台,里面可以运行插件模块。 特别是在我的情况下,这是Oqtane 平台,但该问题可能适用于其他 Blazor web 应用程序平台,例如 ABP.io。 插件模块基本上是程序集,在运行时加载到平台应用程序中。 我的问题是 - 如何调试平台在 IIS 下运 ...
[英]Is it possible to use ConfidentialClientApp in Console App?
是否可以在 Visual Studio 中使用机密客户端应用程序作为控制台应用程序的一部分? 我一直在尝试这样做,但是当我使用刚刚构建的IConfidentialClientApplication class 调用方法时,出现以下错误: 我一直在试图弄清楚这对我来说意味着什么。 事实上,我的机器是 ...
[英]Visual Studio- custom project templates
我想在 Visual Studio 中创建自定义项目模板。 由于模板将有条件参数,我不能使用新的 do.net 模板(它只适用于终端,但我想要模板的可视化形式)。 如何使用文本字段、条件参数和两步表单创建项目模板? 这将是一个复杂的项目模板表单,完成表单后我想获取包含文本文件的特定文件夹(没有解决方 ...
[英]Blazor - Visual Studio generates different pathes to dotnet.exe in web.config
我有两台机器。 一个是 Windows 10,一个是 Windows 11。我都使用最新(最新)版本的 Visual Studio 2022。我都安装了最新版本的 do.net 托管包。 我正在 Visual Studio 中开发一个 Blazor 的唯一项目,并在 IIS(不是 express)中 ...
[英]Edit.GoToAll command in Visual Studio does not show file name suggestions
语境我将此命令与快捷键 Ctrl + T(或者 Ctrl +,)结合使用,以快速导航到我的解决方案中的文件(WPF 应用程序,如果相关)。 由于我不记得确切的文件名,我会(直到最近)使用提示下方显示的建议来查找我的文件,如本例所示: 带建议的导航示例来源自从我上次开始 VS 以来,我什么也没得到: ...
[英]Why might Visual Studio be unable to authenticate to an Azure artifact package source?
我的公司 nuget 提要无法通过 Visual Studio 2022 中的 package 管理器界面访问。 我的公司有一个 nuget 源和一个 url 像https://elcia.pkgs.visualstudio.com/_packaging/MYCOMPANY/nuget/v3/in ...
[英]strtok_s and compilers C11 onward compliance
C11 中strtok_s的声明及其用法看起来与编译器中的strtok_s非常不同,例如与 Visual Studio 2022 (17.4.4) 捆绑在一起的最新版本以及 GCC 12.2.0(查看 MinGW64 发行版)。 我担心这种不同的形式早在 C11 之前就已被开发为strtok的更安 ...
[英]Visual Studio IntelliSense threat not nested namespace as syntax error
当我决定从 CLion 切换到 VS22 时,我发现代码分析器对新的命名空间编写方式发誓,避免了它们的嵌套。 我不知道如何让 Visual Studio 停止考虑这是一个错误,作为一个编译器,我使用 clang 和 CMake 来构建,C++ 标准是 23 ...
[英]UserPrincipal.Current.EmailAddress returning NULL value in .NET Framework 4.8
我写了一个程序,使用我的 winform 程序获取用户的 email 地址。 这个程序是几年前在 .NET 框架 4.0 下编写的。 为了获取用户的 email 地址,我使用了这行代码: 这奏效了。 几天前我的电脑死机了。 我买了一台新电脑,不得不重新安装 VS22 和 .NET 框架是 4.8。 ...
[英]compileSdkVersion 33 causes exception: An exception has occurred in the compiler (1.8.0_242-release)
赏金将在 6 天后到期。 此问题的答案有资格获得+50声望赏金。 Roberto Henrique想让更多人关注这个问题: 几天后我无法运行该项目,我真的需要找到一个解决方案,因为没有任何进展。 这似乎是一个重复的问题,但我还没有真正找到解决方案。 我需要维护一个 compileSdkVersi ...
[英]How can I compile C programms in Visual Studio 2022 using VCPKG?
我已经设置了 VCPKG,它在 c++ 中编码时工作正常,但当我尝试切换到 C 时,它停止工作。 它给我一个错误,说我必须 select 一个有效的启动项,即使我选择了当前文档作为我的启动项。 据我所知,当我编译 c++ 程序时,它们也是使用 MinGW 编译的(或者它在顶部栏中这样说)。 这 ...
[英]filter data by a column in datagrid using combobox
我正在尝试按统计信息列进行过滤,其中包含 3 种类型的数据“有效”、“未使用”和“请求购买”,但是当我尝试仅过滤时,我无法按这三种类型进行过滤一个有效,但三个一起不能过滤 none。如果有人能帮我,代码有什么问题代码: ...
[英]How can I connect multiple TextBoxes with a ProgressBar?
我一周前刚开始使用编程语言 C#,并使用 Visual Studio 程序和 win Forms。我已经遇到了几天的问题。 我想将 ProgressBar 连接到不同的 TextBoxes。 这样随着每个填充的文本框 ProgressBar 增加。 删除文本后,progressBar 应该再次下降 ...
[英]Windbg shows info dialog that it cannot open MFC source file from devdiv.visualstudio.com
Windbg 10.0.20348.1 在单步执行 MFC 代码时显示此信息对话框和以下消息: 文件'https://devdiv.visualstudio.com/DevDiv/_apis/git/repositories/msvc/items?path=src/vctools/VC7libs/ ...
[英]Visual Studio for Mac 17.4.3 can't build .NET MAUI project
我在获取 .NET 7.0 MAUI 项目以简单地从 Visual Studio for Mac 版本 17.4.3 构建时遇到问题。 它给我的消息表明一个旧的 .NET SDK 被用来定位 .NET 7.0: /Applications/Visual Studio.app/Contents/Mo ...
[英]Are dll made from Visual Studio 2019 (v142) are imported in Visual Studio 2013 (v120) project?
我用 Visual Studio 2019(工具集 v142)制作了一个 C++ Windows 库。 现在我的库应该包含在其他 C++ 项目中,该项目是在 Visual Studio 2013(工具集 v120)中构建的。 我想知道的是: 在使用 v120 工具集的构建中使用使用 v142 工具 ...
[英]Visual Studio 2022 - .NET 4.5 MVC Web app - very slow to load when compilation debug=true
在 Visual Studio 2022 上,调试 .NET 4.5 MVC Web 应用程序时,加载网站需要几分钟时间。 启动网站进行调试时,我可以在 output 控制台中看到从 GAC、临时文件夹等加载和卸载大量 dll,每个 dll 需要几秒钟,速度很慢,最后可以网站最终加载需要 10 分钟 ...
[英]Visual Studio templates does not appear
几个月后,我尝试使用 Visual Studio 2019 创建一个项目,但我只看到: 比起我尝试打开更新 vs,我在完成更新后看到了这个错误: 如何解决这个问题? ...
[英]vs code terminal externally on when i run javascript code in node js and cannot show output
在我的 vs 代码中,当我编写 javascript 然后单击运行或编写节点 main.js 时,新 window 上的外部 vs 代码终端无法显示任何 output。 在 visual studio 代码设置中,我关闭了 window conpty 设置和 visual studio 代码首选项设 ...