visual-studio 相关问题

如果您有关于Visual Studio特性和功能的特定问题,请使用此标记。不要在有关代码的问题上使用此标记,这些代码恰好是在Visual Studio中编写的。考虑标记您的问题链接到的确切技术区域,并标记更具体的Visual Studio版本。请在您的问题中提及您的确切VS版本,版本和更新级别。

“当 IDENTITY_INSERT 设置为 OFF 时,无法在表“产品”中插入标识列的显式值。” 如何在 ASP.NET MVC 中解决此问题?

我尝试使用 SQL 和 Visual Studio C# 连接数据,数据库已连接,但当我尝试进入 SQL Studio 时,我的内容并未出现在 SQL 文件夹中。我已经添加了模型并创建了

回答 1 投票 0

Blazor 应用程序无法识别共享库中的新文件夹/组件 - IDE 兼容性问题?

我正在开发一个由多个独立运行的 Blazor 应用程序组成的项目。这些应用程序中的每一个都有相同的子模块,我们称之为 CustomLib,它提供了通用的组件...

回答 1 投票 0

Visual studio 无法调试 Android Xamarin 应用程序

我开始使用 Visual Studio 2013 来使用 Xamarin 和 Android。 当我开始调试 Android 应用程序时,它会构建、部署到设备,然后在 Visual Studio 中停止调试。我无法击中任何布雷...

回答 12 投票 0

未绑定断点?

在构建并运行代码后,我在运行一些断点时遇到了问题。我的项目是在 ASP.NET 上的。我正在使用 VS 2022,到目前为止我已经尝试过以下操作: 重启VS并删除所有...

回答 2 投票 0

为什么 Visual Studio 无法编译我的 QT 项目,因为它找不到库?

我有一个在学校可以完美编译的项目。但是,当我尝试编译它时,它显示:“致命错误 C1083:无法打开包含文件:'QtCore/QDate':没有这样的文件或目录” 我已经

回答 2 投票 0

Opencv 在随机的秒数后崩溃

我在 Visual Studio 上使用 C++ 的 opencv 最新版本。我遇到的问题是我的程序运行完美并且我看到了结果,但是程序在随机数个 se 之后崩溃并显示代码 1...

回答 1 投票 0

Visual Studio:重新启用“构建失败,运行上次成功?”对话框

当构建失败时,VS 会弹出一个选项来运行上次成功的构建。有人在我的机器上单击了“是”和“不再显示此对话框”,现在我仍坚持该设置。嗬...

回答 2 投票 0

VisualStudio 中类型名称上的条件断点

我正在尝试在 VS2015 中的 C# 方法中添加条件断点。方法签名是: Core(类型类型,对象值,bool noAutoCreate) 断点的条件表达式为 type.Name.Con...

回答 2 投票 0

尝试在 Razor Pages 中添加支架项目时出错

我一直在尝试使用Entity Frameword(CRUD)在ASP.NET Core、razor页面中添加一个脚手架项。我当前的目标框架是netcoreapp3.1。 我有以下软件包版本: 包括=&...

回答 3 投票 0

Visual Studio 构建错误:操作无法完成。无法找到任何模拟器运行时匹配选项

MacOS 更新后,Visual Studio 停止使用配对的 Mac 计算机构建 .NET MAUI iOS 项目。报告了以下错误: 操作无法完成。找不到任何模拟器

回答 2 投票 0

VS Code outDebug 不存在

所以,我是编码的初学者。我以前使用过vs code,但从未遇到过此类问题;有人可以帮我解决这个问题吗? 图像 嗯,因为我是新手,所以我尝试通过 wa 来修复它...

回答 1 投票 0

Visual Studio 2015:C++ 代码分析错误 C1253,无法加载模型文件“res://mspft140.dll/300”

Visual Studio 2015 Community update 3,尝试C++代码分析功能。设置如下: 解决方案属性 > 代码分析设置 > [所有配置] [所有平台] :

回答 1 投票 0

Visual Studio/C# 的基本设计代码问题

[Visual Studio 版本 17.8.3 -- 社区 2022] 我经常使用 Visual Studio 来编写 VB 程序。我现在正在尝试用它来编写C#程序。 (我有 Java 背景,因为我们...

回答 1 投票 0

我收到 C2976 'std::array': 模板参数太少 & C3699 '^': 无法在此代码中的类型 'std::array' 上使用此间接寻址

我还是个初学者,不知道这里发生了什么。 我的代码: #include“MainForm.h” #包括 #包括 #包括 #包括 我还是个初学者,不知道这里发生了什么。 我的代码: #include "MainForm.h" #include <iostream> #include <windows.h> #include <conio.h> #include <mmsystem.h> #include <fstream> #include <ctime> #include "songs.h" #include "SongsInPlaylist.h" using namespace System; using namespace System::Windows::Forms; void main(array<String^>^ args) { songs_DLList l; songs_buildFromFile(l); Application::EnableVisualStyles(); Application::SetCompatibleTextRenderingDefault(false); DSAProjectOnceMore::MainForm form; Application::Run(%form); songs_menu(l, "songs/test.wav"); } 错误: C2976 'std::array': too few template arguments & C3699 '^': cannot use this indirection on type 'std::array' 错误在void main(...)行。 我可以发誓,在我添加源文件和头文件之前,代码在这里没有给出任何错误。 您的错误信息: 'std::array':模板参数太少 & C3699 '^':无法使用它 此代码中类型“std::array”的间接寻址 指的是std::array,它是一个C++标准库类。 在这一行中: void main(array<String^>^ args) array 应该是一个 C++/CLI .NET 数组。 此错误的可能原因是在任何 #included 标头中,您都有两个: #include <array> // for using the C++ std::array 并且: using namespace std; // to avoid the need to use the std:: prefix 这会导致编译器错误地认为 array<String^>^ args 指的是 C++ std::array。 这是一个很好的例子,“使用命名空间 std;”有什么问题?. 解决方案是从源代码(尤其是所有标头)中删除 using namespace std;。这可能会导致一些编译错误,您可以通过在需要的地方添加 std:: 前缀来解决。

回答 1 投票 0

在 Visual Studio 中缩进 Proto 文件

有没有办法在 Visual Studio 中自动缩进 Proto 文件代码。 例如,C# 代码可以缩进,但 proto 文件在 Visual Studio 2019 中没有缩进。谢谢

回答 2 投票 0

Windows - 无法安装 MS Visual C++ Redistributable

我想安装包括 Visual Studio 在内的软件,但是有问题 - Visual C++ 组件无法正确安装,出现错误。 我做了什么: 我运行了 MS 的卸载程序工具 http...

回答 1 投票 0

在 Visual Studio 中更改拼写错误曲线的颜色?

正如标题所说。 较长的版本:在我的解决方案中,我有一个配置拼写检查的 .editorconfig 文件,并且我已启用拼写检查器。拼写错误用蓝色下划线

回答 1 投票 0

可变模板无法编译

#包括 模板 结构体TransformFunc; 模板 类 TransformFunc #include <stdio.h> template <typename FuncType, FuncType> struct TransformFunc; template <typename Arg, typename... Args, void(*func)(Arg, Args...)> class TransformFunc<void(*)(Arg, Args...), func> { public: static void apply(Arg arg, Args... args) { func(arg, args...); } }; void test1(int x) { printf("test1: int%d\n", x); } void test2 (int x, float y) { printf("test2: int%d float%f\n", x, y); } int main(int, char **) { TransformFunc<decltype(&test1), &test1>::apply(5); TransformFunc<decltype(&test2), &test2>::apply(5, 1.23f); // Error here. return 0; } 1>------ Build started: Project: main, Configuration: Debug x64 ------ 1> main.cpp 1>main.cpp(33): error C2440: 'specialization' : cannot convert from 'void (__cdecl *)(int,float)' to 'void (__cdecl *)(int)' 1> This conversion requires a reinterpret_cast, a C-style cast or function-style cast 1> main.cpp(33) : see reference to class template instantiation 'TransformFunc<void (__cdecl *)(int,float),void test2(int,float)>' being compiled 1>main.cpp(33): error C2973: 'TransformFunc<void(__cdecl *)(Arg,Args...),func>' : invalid template argument 'void (__cdecl *)(int,float)' 1> main.cpp(9) : see declaration of 'TransformFunc<void(__cdecl *)(Arg,Args...),func>' ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== 我不明白为什么 test2 实例化无法编译。有什么想法吗? 我不明白为什么 test2 实例化无法编译 该程序格式良好,截至 2024 年 5 月已被所有 3 个主要编译器接受。 演示。

回答 1 投票 0

WPF 应用程序资源定位器无法定位文件

我对 .NET C# WPF 应用程序制作非常陌生,我遇到过这个名为 MaterialDesignInXaml 的包来风格化我的应用程序,但我无法让它工作。当我包含某个 do...

回答 1 投票 0

AdressOf 链接到其他类?

我正在尝试为餐馆制作一个程序,允许他们在程序中添加和删除桌子。 我的想法是,有一个名为“添加表”的按钮,它将生成一个带有其...

回答 2 投票 0

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