visual-studio-2019

Which version of Visual Studio covers ActiveX?

家住魔仙堡 提交于 2021-01-29 10:26:17
问题 I would like to use an ActiveX control, more exactly "Microsoft Tabstrip control, version 5.0 (SP2)" but this is not possible due to license problems. As mentioned in the answer on this other question, this problem can be solved by installing an old version of Visual Studio (the installation of another environment, using that control, automatically handles the licensing issues of that control, also for other environments, at least that's how I understood it). I have installed the most recent

ASMX web proxy class changing class name from PascalCase to camelCase - visual studio 2019

会有一股神秘感。 提交于 2021-01-29 09:10:07
问题 We had a legacy asmx web service (2.0 framework) which were migrated to 4.8 framework. [WebMethod] public virtual GetCreditPolicyResponse GetCreditPolicy(GetCreditPolicy getCreditPolicy) { return organisationStrategy.GetCreditPolicy(getCreditPolicy); } Class definition : public class GetCreditPolicy { public GetCreditPolicy(); public int RecognitionId { get; set; } } Now while we are generating the wsdl of this we are getting the following : <s:element name="GetCreditPolicy"> <s:complexType>

How do I exclude database triggers from a DACPAC project created in Visual Studio?

邮差的信 提交于 2021-01-29 08:16:12
问题 I have a database project in Visual Studio, and I need to exclude the database triggers from the generated DACPAC, because one of them is LockdownTriggers which prevents triggers from being altered - and that's causing issues with the other triggers; as soon as LockdownTriggers is deployed, it's automatically enabled. and then the rest of the deployment fails trying to alter other triggers that are now locked. Is there any way to prevent the database triggers from being deployed as part of

why does Visual Studio 2019 not support the keyword “max” in for-reduction of Openmp?

廉价感情. 提交于 2021-01-29 08:06:53
问题 when I use openmp like this: #pragma omp parallel for reduction(max: dumax) the IDE will raise an error "max" in Openmp "reduction" is invalid #pragma omp parallel for reduction(max: dumax) for (int i = 1; i < n + 1; i++) { for (int j = 1; j < n + 1; j++) { u[i][j] = 0.25 * u[i - 1][j] + 0.25 * u[i][j - 1] + 0.25 * u[i + 1][j] + 0.25 * u[i][j + 1] + h * h * f[i][j]; dumax = max(dumax, abs(u[i][j] - uold[i][j])); } } 回答1: MSVC compiler is stuck with OpenMP version 2.0, and unfortunately for

User strings used by the program exceeds allowed limit by visual studio 2019

安稳与你 提交于 2021-01-29 07:50:17
问题 I have been working with RazorGenerator.Mvc and RazorGenerator.MSBuild to precompile the views. The error i face when i try to build the project. CS8103 C# Combined length of user strings used by the program exceeds allowed limit. Try to decrease use of string literals. Visual Studio 2019 Version 16.3 When i remove RazorGenerator packages, clean and rebuild, the error is gone. This github issue indicated that the fix will be in VS 2019. I tried everything to debug the issue but could not

The default ASP.NET Core + React template in Visual Studio 2019 doesn't work

南笙酒味 提交于 2021-01-29 07:24:10
问题 After creating the default project from Visual Studio 2019: ASP.NET Core Web Application And then using the React default template(The Weather Forecast one) to create a project, I run it immediately without modifying anything. It builds with no errors, but upon running and opening a tab in the browser, I get an error: compiler.hooks.done.tap('done', async stats => { ^^^^^ SyntaxError: missing ) after argument list at createScript (vm.js:56:10) at Object.runInThisContext (vm.js:97:10) at

Fixing the “Duplicate 'Compile' items were included.” error in Visual Studio

a 夏天 提交于 2021-01-29 06:55:15
问题 This is a very annoying VS error, I'm on VS 2019 16.8.1 I spend a lot of time fixing it: Duplicate 'Compile' items were included. The .NET SDK includes 'Compile' items from your project directory by default. You can either remove these items from your project file, or set the 'EnableDefaultCompileItems' property to 'false' if you want to explicitly include them in your project file. For more information, see https://aka.ms/sdkimplicititems. The duplicate items were: 'Program.cs' Service.Host

How to enable C++17 code generation in VS2019 CUDA project

与世无争的帅哥 提交于 2021-01-29 06:55:13
问题 I am moving some code from VS2017 on one pc to another pc with VS2019. Everything is fine excepted that I cannot use std::filesystem. In my former code, I was using C++14 and had std::experimental::filesystem. In the new code, I want to move to C++17 so I changed to std::filesystem (as shown in my code below). The weird thing is that intellisense (not sure it is the right name of the thing) shows no error. It even displays filesystem when I type std::f... But the code won't build and give the

Restore nuget package in different folder

穿精又带淫゛_ 提交于 2021-01-29 06:42:13
问题 We have some projects (Plugins) which use in several projects, the output of these projects will copy to the specific folder in the target projects (Plugins folder). We pack project with Visual studio 2019 Pack option and after that, we push npkg files to our local NuGet server for further use. The problem is when we want to get these packages, Package Manager should put lib files in the Plugins folder, but unfortunately, the package manager extracts these in the root folder (bin). My

F# static methods editor colors in VS 2019

半腔热情 提交于 2021-01-29 04:35:06
问题 I am using VS 2019 with a black background editor. The List, Seq etc. methods are black and I cannot see them. Please see the attached image. What is the setting that controls the color of these methods? There is a setting 'Symbol-Static' (under Options -> Fonts and Colors -> Show Settings for: Text Editor) but Item foreground and background are disabled. The extension of the file is fsx. Thanks 回答1: You can set the color under Text Editor | Fonts and Colors: F# Functions / Methods. By the