visual-studio-2019 相关问题

Visual Studio 2019是Microsoft Visual Studio的一个版本。除非您对此特定版本有特定问题,否则请勿使用此标记。

启动 Visual Studio 2019 时 X 包未正确加载

当我启动 Visual Studio 2019 时,我遇到了许多错误,指出包未正确加载。它们各不相同,但格式都相同: “[Some package]”包确实...

回答 3 投票 0

Visual Studio 2019 Windows 窗体设计器

我的 Windows 窗体应用程序有问题。当我创建 Windows 窗体应用程序时,它显示窗体的源代码,但不显示设计器布局

回答 9 投票 0

Visual Studio 在开始运行时清除命令行参数

在我的解决方案中,我有一个 Visual C++ 项目,它使用 平台工具集 = Visual Studio 2013 (v120) 我在 Visual Studio 2019 中打开它。 如果我编辑项目属性 > 配置

回答 3 投票 0

从 Visual Studio 测试资源管理器运行单元测试时如何更改工作目录

对于我的新项目,我安装了 Visual Studio 2022,而我的同事仍在使用 Visual Studio 2019。 大多数测试在我的计算机上都失败了,经过一些故障排除后,我发现......

回答 2 投票 0

如何安装早期版本的 Visual Studio 2019 Community?

我在最新版本的 VS Community (16.7.0) 中发现了一个错误,该错误导致我的解决方案无法构建,因此我需要回滚到 16.6.5。然而我能找到的唯一下载链接有下载...

回答 5 投票 0

哪里有下载 VS2019 的 Visual Studio 远程调试器工具的链接

不幸的是,MS 阻止了下载 VS2019 的 VS_RemoteTools_X86 的可用链接,并将此链接重定向到 Visual Studio 2022 的广告。我不需要新的 Windows、新的 Visual Studio、新的 Framewo...

回答 3 投票 0

安装了 VS2022 后如何以 Framework 4.8 为目标

由于我安装了VS2022,因此无法创建针对框架4.8的新项目。 每当我在 VS2019 中单击“新项目”时,它似乎都会调用 VS2022,这让我没有

回答 2 投票 0

将 DataGridView 列移至右侧

我为 DataGridView 创建了一个上下文菜单,用于操作来自各种不合格制表符分隔文件的数据。 (旧金融的东西) 我需要的功能之一是能够...

回答 1 投票 0

npm init 导致包管理器控制台卡住“随时按 ^C 退出。”

当我尝试在包控制台管理器中输入“npm init”时,它会启动该进程,但控制台显示消息:“随时按 ^C 退出。”。我可以创建我的 p...

回答 1 投票 0

Visual Studio 无需重建代码即可查看 html 更改

使用 Microsoft Visual Studio Community 2019。 我有一个项目ASP.NET core(但我不认为它与core相关) 当我通过 IIS Express\project 按钮运行项目时 当我修改 fi...

回答 1 投票 0

使用自定义比较器返回 std::set

我正在尝试编写一个函数来返回带有自定义比较器的 std::set (根据此答案的建议),如下所示: #包括 #包括 自动获取设置() { 常量...

回答 1 投票 0

SSIS 脚本任务 - 编辑脚本不起作用

这是 Visual Studio Community 2019 (Windows 10) 上的 Microsoft SSIS 项目开发 IDE 上经常出现的常见问题:给定脚本任务,编辑按钮应打开 Visual Studio 实例 (

回答 3 投票 0

Libpq.dll 无效或损坏的文件

我正在使用 Visual Studio 2019,我想将我的服务器项目链接到 postgre 数据库,我已从 dll-files.com 下载了 libpq.dll 文件并将其链接到 VS 项目中,但是当我运行

回答 1 投票 0

VS2019 - VSIX - 无法在运行时找到资源 (.png)

我尝试在基于 WPF 的 VSIX 中显示图像 在 XAML 设计器中,图像看起来不错 我尝试在基于 WPF 的 VSIX 中显示图像 在 XAML 设计器中,图像显示正常 <Image x:Name="waitImage" Source="pack://application:,,,/wpf/Resources/progress_1.png" /> 但是以编程方式,API 抱怨它需要程序集名称,所以我以这种方式加载它 Assembly assembly = Assembly.GetExecutingAssembly(); string assemblyName = assembly.GetName().Name; ImageAnimationPath = $"pack://application:,,,/{assemblyName};component/wpf/Resources/progress_{imageIndex}.png"; BitmapImage bitmapImage = new BitmapImage(new Uri(ImageAnimationPath)); imageIndex = (imageIndex % 3) + 1; 在运行时我收到一条错误消息: "Cannot locate resource 'wpf/resources/progress_1.png'." 我期望: 图像加载良好 并且在部署 VSIX 时或调试期间在运行时可用 我尝试过: 属性/副本始终在图像上 将构建操作设置为资源(图像从解决方案资源管理器中消失) 清洁溶液 任何帮助表示赞赏 您可以尝试以下代码。 如果“属性”窗口中的“构建操作”为“资源”: <Image Source="pack://application:,,,/AssemblyName;component/Resources/progress_1.png" /> 如果“构建操作”为“内容”并且“属性”窗口中的“包含在 VSIX 中”为 True: <Image Source="pack://application:,/Resources/progress_1.png" /> 以下是相应的代码隐藏方法,用于根据构建操作设置为资源还是内容来动态加载图像: 如果“属性”窗口中的“构建操作”为“资源”: using System; using System.Reflection; using System.Windows; using System.Windows.Media.Imaging; namespace YourNamespace { public partial class YourWindow : Window { public YourWindow() { InitializeComponent(); string assemblyName = Assembly.GetExecutingAssembly().GetName().Name; string imageUri = $"pack://application:,,,/{assemblyName};component/Resources/progress_1.png"; BitmapImage bitmapImage = new BitmapImage(new Uri(imageUri)); yourImageControl.Source = bitmapImage; } } } 如果构建操作是内容并且包含在 VSIX 中为 True: using System; using System.Windows; using System.Windows.Media.Imaging; namespace YourNamespace { public partial class YourWindow : Window { public YourWindow() { InitializeComponent(); string imageUri = "pack://application:,,,/Resources/progress_1.png"; BitmapImage bitmapImage = new BitmapImage(new Uri(imageUri)); yourImageControl.Source = bitmapImage; } } } 将 YourNamespace 替换为项目的实际命名空间,将 YourWindow 替换为窗口类的名称,将 yourImageControl 替换为图像控件的名称。这些代码隐藏方法根据构建操作配置动态加载图像。

回答 1 投票 0

在搜索结果列表中搜索

使用 Visual Studio 2019,我想搜索某些内容,然后使用搜索结果作为文件列表,我将在其中进行另一次搜索。 这将允许像“在所有中搜索 foo

回答 1 投票 0

task.run 使用由 c++ dll 调用的方法

每次 虚拟无效图像_获取( uint16_t Bank, // 内部映像 ID,设备 DDR Bank 编号。 uint16_t 框架, 整数宽度, 整数高度, const uint16_t* imag...

回答 1 投票 0

安装新更新后,Visual Studio 2019 Git 在提交和推送时显示“commit --allow-empty-message --file=-”消息。不再提交和推送

更新我的 Visual Studio 2019(v 16.9.5)后,当我执行 git 提交和推送时,“git 更改”窗口上方会出现一条消息,内容为“commit --allow-empty-message --”。 ..

回答 1 投票 0

C# 制作独立文件或将输出文件放置在子文件夹中

我想将我的项目构建为独立的 .exe 或将其附带的所有文件放在子文件夹中。 构建信息:C#、.NET Framework 和 Visual Studio 2019 社区版。 当我构建我的项目时...

回答 1 投票 0

无法在azure devops中构建asp.net应用程序

能够在本地构建应用程序,但是当我尝试在azure devops管道中构建时。它显示以下错误 我已经安装了 EntityFramework 并在 webconfig 中添加了 system.data.entity.design 程序集

回答 2 投票 0

如何在 Visual Studio 2019 中更改项目的 GitHub 存储库?

我正在使用 Visual Studio 2019 开发 Windows 窗体应用程序,目前该项目已连接到 GitHub 存储库。但是,我不再需要当前的存储库并希望...

回答 1 投票 0

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