visual-studio-2019

Erroring about using push_back function in visual studio 2019 for Azure Kinect

北城以北 提交于 2020-01-06 05:22:09
问题 For line body_result_json["joint_orientations"].push_back({ skeleton.joints[j].orientation.wxyz.w, skeleton.joints[j].orientation.wxyz.x, skeleton.joints[j].orientation.wxyz.y, skeleton.joints[j].orientation.wxyz.z }); I got the error as below: nlohmann::basic_json<std::map, std::vector, std::string, bool, int64_t, uint64_t, double, std::allocator, nlohmann::adl_serializer>" has no member "push_back" offline_processor 来源: https://stackoverflow.com/questions/58595826/erroring-about-using-push

Using clang-format with C++/CLI “for each”

試著忘記壹切 提交于 2020-01-05 05:45:06
问题 I currently try to format C++/CLI code using clang-format (version 9.0.0). I cannot figure how to handle for each statements. Before: for each (auto i in I) { } After (say, CTRL-K/CTRL-D in Visual Studio): for each (auto i in I) { } I read here this: ...you might want to change ForEachMacros to add "for each" I tried this: ForEachMacros: - for each - foreach - Q_FOREACH - BOOST_FOREACH then this: ForEachMacros: - 'for each' and this: - "for each" and even this: - "for\s+each" Nothing works.

Import .TLB file gives “cannot open source file x.tlh”

烂漫一生 提交于 2020-01-05 04:23:27
问题 I'm updating a VS2010 C++ project to VS2019. The project is importing several tlb files, and for each of these, VS2019 is giving an error that it "cannot open source file" for the .tlh file. One of these is from a DLL that I've also upgraded (written in C#, built and registered OK in VS2019), and 2 others are 3rd party tlb files. Here's an example of the import statement (in my header file)... #import "../ExcelInterop/bin/Debug/ExcelInterop.tlb" raw_interfaces_only, raw_native_types, no

.NET CORE ALINK : warning AL1073: Referenced assembly 'mscorlib.dll' targets a different processor

你说的曾经没有我的故事 提交于 2020-01-04 23:25:50
问题 I am using VS2019 and .NET CORE 2.2 I am getting the warning AL1073 ALINK warning AL1073: Referenced assembly 'mscorlib.dll' targets a different processor I know this is close to the question as: ALINK : warning AL1073: Referenced assembly 'mscorlib.dll' targets a different processor BUT: I am on .NET CORE 2.2 not on 4.x The solutions proposed there do not work on .NET core in particular, attempting to add: <PropertyGroup> <TargetFrameworkSDKToolsDirectory Condition=" '$(PlatformTarget)' ==

.NET CORE ALINK : warning AL1073: Referenced assembly 'mscorlib.dll' targets a different processor

你离开我真会死。 提交于 2020-01-04 23:24:24
问题 I am using VS2019 and .NET CORE 2.2 I am getting the warning AL1073 ALINK warning AL1073: Referenced assembly 'mscorlib.dll' targets a different processor I know this is close to the question as: ALINK : warning AL1073: Referenced assembly 'mscorlib.dll' targets a different processor BUT: I am on .NET CORE 2.2 not on 4.x The solutions proposed there do not work on .NET core in particular, attempting to add: <PropertyGroup> <TargetFrameworkSDKToolsDirectory Condition=" '$(PlatformTarget)' ==

Build FFTW lib with Visual Studio 2015 [added: steps for VS 2019]

浪子不回头ぞ 提交于 2020-01-04 06:29:11
问题 I'm trying to use Visual Studio 2015 to compile a project that uses FFTW. Unfortunately, the precompiled binaries from the FFTW website aren't compatible with VS 2015, due to this problem: unresolved external symbol __imp__fprintf and __imp____iob_func, SDL2. You get a link error when you try to compile. I'm looking for any advice on how I can compile a compatible version. The obvious answer would be to recompile FFTW with VS 2015, but I can't find any instructions on how to compile it with

Edit and continue not working for asp.net core 3.0?

半腔热情 提交于 2020-01-04 02:57:30
问题 We are about start a new project, and doing a POC to start working with asp.net core 3.0. a) Looks like edit and continue for the asp.net core 3.0 not working. is asp.net core 3.0 doesn’t support edit and continue? b) Also, Even static cshtml page update also not reflecting until we stop debug and re-try. VS Version: Microsoft Visual Studio Professional 2019 Version 16.3.1 回答1: For this issue, I suggest you try to install package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation and then

Found invalid data while decoding error updating nuget packages

℡╲_俬逩灬. 提交于 2020-01-04 02:55:12
问题 I have been trying to update nuget packages in vs2019 from both package manager console and the manage nuget packages from the context options but in both case i get "Found invalid data while decoding." error. I have to revert to vs2017 to update. Is there a way to deal with this or do I have to contend with this switching for now? The error outputs are as below for both scenarios 回答1: I had to log in and comment on this. Almost blew my head off fixing this. VS2019 Go to Tools > NuGet Package

Visual studio 2019 windows forms designer

核能气质少年 提交于 2020-01-04 02:36:08
问题 I'm having a problem with the windows form application . When I create the windows form application , it displays the source code for the form but not the designer layout 回答1: To enable the designer, download and install the Windows Forms .NET Core Designer VSIX package. See article: https://devblogs.microsoft.com/dotnet/introducing-net-core-windows-forms-designer-preview-1/ 来源: https://stackoverflow.com/questions/58380472/visual-studio-2019-windows-forms-designer

Re-enable title bar in Visual Studio 2019

依然范特西╮ 提交于 2020-01-01 04:04:10
问题 I've downloaded the preview version of Visual Studio 2019 and the title bar is disabled by default. This doesn't work for me as I currently develop C# applications using multiple instances of visual studio at a time, and I like knowing what window relates to which solution, and whether I am running with elevated privileges. I've found that I can re-enable the title bar by going to the 'Preview Features' section in options, but this will obviously not be in the real release of Visual Studio