Questions tagged [visual-studio]

Use this tag if you have a specific question about Visual Studio features and functionality. DO NOT use this tag on questions regarding code which merely happened to be written in Visual Studio. Consider tagging the exact technology area your question links to and also tagging a more specific version of Visual Studio. Please mention your exact VS version, edition, and update level in your question.

0
votes
0answers
13 views

How to insert item in list at given index in c++

I am working on a c++ code where I need to insert an item at a given index of a list. I have two list : list <int> objectIdList; //This list will save id's of object list <double> ...
0
votes
0answers
12 views

How convert UInt and others types to String Hex to send data to a server? C#

Details about the application: Developed under Visual Studio 2019 (Windows 10) Designed on UWP platform with C# & XAML language The application receives information from a remote server. A ...
0
votes
0answers
4 views

Resource-related error condition in Windows Forms C++ application

I am working on a legacy Windows Forms application using VS 2008 under C++ and face a weird problem. The form uses an ImageList object, to which two bitmap images have been added. At run-time, I get ...
0
votes
0answers
4 views

How to integrate/use C API libhdfs in Visual Studio C application?

I want to write a C program within Visual Studio 2017 which writes some random integer values into HDFS (Hadoop Cluster). It should work like this: 1. create a csv file and then every second: 2. ...
0
votes
1answer
2 views

MSB3073: The command dotnet bundle clean exited with code 1 in a Visual Studio 2019 Asp.NetCore project

I got the error MSB3073: The command dotnet bundle clean exited with code 1 in a Visual Studio 2019 Asp.NetCore project. This issue only occured after I updated my Visual Studio yesterday. > ...
0
votes
0answers
18 views

Get the inserted Project name from a Visual Studio Project

I want to create a little MVVM Template for Visual Studio 2019. In general, there are two projects: '$Projectname$_Model' and '$Projectname$_View_VM' Microsoft says, that this parameter is the ...
-1
votes
0answers
16 views

My length veriable showing error and I could not find where its getting wrong value?

using System; using System.Collections.Generic; using System.Linq; namespace Dice { class Program { static void Main(string[] args) { int trialLength = 0; string trials = ""...
0
votes
0answers
6 views

Queriong the AST in Visual Studio

I have a huge project in C#. I work with Visual Studio 17/19. I want to find all the methods are the first argument of the method MyStaticClass.MyStaticMethod(Action<int> method). I'm looking ...
0
votes
0answers
6 views

How to add support for HTTP/1.1 and HTTP/2 in .Net MVC and API

I am hosting my .Net MVC app on windows server 2016. Currently HTTP/2 is by default enabled on windows server 2016 due to which due to which i am getting Authorization error with error code 401 on ...
0
votes
0answers
7 views

How dynamic parameters are getting generated and how to capture them in web test in Visual Studio for Performance Testing

How do I get new id token (authentication token) every time I ran a web test from Visual Studio. My web application is using OpenID Connect and Azure Active Directory to login into the web application....
0
votes
0answers
9 views

What's the path to the correct ZXing core/forms dll's when cloned/built locally?

Have cloned and built ZXing.Net.Mobile and ZXing.Net.Mobile.Forms on my machine in Debug mode (and uninstalled the NuGets - need to run locally to diagnose some issues), but can't find the correct DLL'...
-3
votes
0answers
18 views

How can I easily format text (bold, italic, color) in Windows Form?

I am developing a software that acts as a catalog for employees of my company (detailing procedures, role expectations, etc.) and I am doing it in Visual Studios 2017 Windows Form (C#) and including ...
0
votes
0answers
8 views

DotNetBar DevComponent ChartXY - Saving the chart as an image

I need help turning my ChartXY DevComponent from dotnetbar (with data already plotted), into an image I can import into my pdf. I have tried to do it similar to WinForms DevComponent Chart with the ...
0
votes
0answers
11 views

How do I generate a test extent reports for gmail login?

I have to generate a test extent report for gmail login. I followed several tutorials but didn't get much clarity on that. I know testng generate a default report but i want to create a an extent ...
0
votes
0answers
5 views

How to check time then run a application if time is at a certain value

I'm trying to make an application that will run on startup, check the time then run a certain application if the time is more than the specified time I've not tried anything yet. No code sorry.
0
votes
0answers
7 views

Unable to open 'strlen.S' error in Visual Studio Code on Linux

I'm getting an exception in my debugger in Visual Studio Code, here is the error: Unable to open 'strlen.S': Unable to read file (Error: File not found (/build/glibc-77giwP/glibc-2.24/sysdeps/x86_64/...
0
votes
1answer
17 views

Build target used by Visual Studio to do Incremental Build via msbuild command line

I created a task in our C# Projects to auto-version projects when they are built (changes are made) in release mode. The versioning part works perfectly. However, all the projects are being built ...
-5
votes
0answers
35 views

The modifier 'private' is not valid for this item [on hold]

I am getting the below errors when trying to input my code to Unity, can anyone lend a hand? I am using Visual Studio for Mac. Assets/Scripts/FindMatches.cs(38,9): error CS0106: The modifier '...
1
vote
0answers
24 views

How is Ecma public key mapped to a real public key?

Basically, all Microsoft assemblies that are considered standard library like mscorlib.dll include a fake 16-byte public key 00000000000000000400000000000000 It is defined by ECMA-335 (CLI specs) ...
0
votes
0answers
9 views

How to send a request to the WooCommerce API

I'm currently building a solution for a company as an intern, and I need to use the WooCommerce REST API features in my C++ project to send data to the website. I've so far, after 2 long painful days,...
0
votes
0answers
8 views

How do you change color of c# comments for printer in visual studio?

When I print my c# code comments appear light blue, how do I change print color I've tried VS2017 and VS2019 Tools>options>environment>FontsAndColors ... Show settings for > Printer and Cut and ...
1
vote
0answers
6 views

How select up or down in Visual Studio?

In most text editors, pressing Ctrl+Shift+Up Arrow selects everything behind the cursor on the current line and everything in front of the cursor on the line above. Likewise with Ctrl+Shift+DownArrow ...
1
vote
4answers
30 views

Python append hyphen to date output from an API

I am trying to download stock data using an api, and for the api to work I need to request the date in the YYYYMMDD format, however I would like it to output YYYY-MM-DD. Currently I am using this ...
0
votes
1answer
53 views

variable has incomplete type std::String; string.h has many errors

something is very wrong with strings. I have been using them for weeks without issue, but halfway through Monday, I started having strange issues: [Clang IntelliSense] Error: variable has incomplete ...
0
votes
0answers
33 views

Unit testing large functions with parameters and interfaces c# [on hold]

I'm trying to write unit tests for the first time in c#. Some of the functions I'm trying to write tests for are pretty big and use interfaces etc I've tried to write some of my own testing but I ...
-3
votes
0answers
29 views

How to create a windows form where users can create commands [on hold]

I'm creating a Virtual Assistant on Visual Studio 2019. I want to make a form which users can access to create commands by themselves. Users can create commands by typing. It will then create a ...
0
votes
1answer
22 views

Copying a file from one location into a folder in Solutions Explorer using asp.net

I am working on an asp.net project using c# and I need to copy a file from an arbitrary location which is determined by the file upload dialog box. I need to make an exact copy of the file in a ...
0
votes
0answers
6 views

Searching all references to a symbol programmatically for Visual Studio extension

I am developing a Visual Studio extension for which I need to be able to find, within a project, all the references of a given symbol (or calls to a specific function). Of course, VS has a way to do ...
2
votes
1answer
20 views

Visual Studio 2019 - Search Everywhere

In vanilla Visual Studio 2019, is there a "Search Everywhere" shortcut (similar to Resharpers "Search Everywhere")? I'd prefer to not install Resharper for this and make VS slower than it already is....
0
votes
0answers
19 views

Change resource properties to plain text

I want to change all appearance Properties.Resources.XXX in project to text value which is in *.resx file eg var someText= Properties.Resources.someText; //I want to change to var someText="some ...
0
votes
1answer
18 views

Package 'MimeSharp 1.0.0' was restored using '.NetFramework Version= v4.6.1'

Package 'MimeSharp 1.0.0' was restored using '.NetFramework Version= v4.6.1' instead of target framework .netCore 2.2. The package may not be fully compatible
0
votes
0answers
3 views

Visual Studio Test Explorer DataRow - Get Results in Realtime

Is it possible to setup VS to show me the test results for a method that gets executed multiple times via the DataRow attribute, as it is running the executions, rather than waiting until the end. ...
-1
votes
0answers
6 views

Is there a way to get a particular Platform Toolset (or set a compile flag) to be used for a files with a particular extension?

I was looking into using the LLVM toolset to look over code for bad C++ practices and VC++ extensions so that they can be fixed. However, it looks like there are some autogenerated files that are ...
0
votes
0answers
8 views

How to open project properties in VS 2017?

I am trying to open Project Properties window in VS 2017 in order to add header files in a way described in this topic However it turned out to be very frustrating as when I reproduce steps described ...
0
votes
1answer
26 views

I set the style to move but the image won't move

I'm just trying to add an image to a webpage in the space I want in. In asp.net core application I type: @if (SignInManager.IsSignedIn(User)) { <img src="~/css/Koala.jpg" class="profile" height=...
0
votes
0answers
12 views

The type 'Claim' is defined in an assembly that is not referenced for DnsEndpointIdentity class

I have the following code that builds successfully on Visual Studio 2010. The same code on Visual Studio 2017 produces the following build error: Severity Code Description Project File Line ...
0
votes
0answers
23 views

Looping through properties within a class and assigning values (VB.Net)

My current coding setup is as follows: Public Class ListValue Public Property type As String Public Property values As List(Of Long) End Class Public Class DataStructures Public Property ...
-1
votes
0answers
20 views

Move an image with the GPS coordinates of a csv file

I'm trying to move an object through GPS coordinates of a csv file in C # on Visual Studio. What I want to achieve: retrieved the GPS coordinates of a csv file transformed these coordinates into X ...
0
votes
1answer
31 views

Error “The process cannot access the file 'fileDir' because it is being used by another process.” while trying to read or write a text file

I am coding an app to read a game's chat log. The problem is that I get an error randomly, maybe the app works for 20 min or 30 min and suddenly get the error: System.IO.IOException: "The process ...
0
votes
0answers
9 views

Visual Studio Version as an output name

Is it possible and if, how, to automatically name the compile output with a project version (I need this for a database project, but I'm assuming it's the same for all)? The idea is to have the ...
0
votes
0answers
8 views

QT VsAddIn error Object reference not set to an instanse of an object

My Qt version - 5.12.3 VS version - 2017 Builded Qt from sources as follows: SET _ROOT = D:\Qt\src SET PATH = %_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH% configure -static -static-runtime -...
0
votes
1answer
24 views

project definition could not be found— Angular

when I'm running like "ng serve" or "ng g c abc" in terminal in visual studio it shows "The serve command requires to be run in an Angular project, but a project definition could not be found." I ...
0
votes
0answers
9 views

What is the new C#_LSP entry under the Text Editor options for?

Visual Studio 2019 has a new entry under the Text Editor options named C#_LSP. I guess it has something to do with the Language Server Protocol, but I couldn't find what the entry is used for exactly. ...
1
vote
0answers
11 views

Class Not Registered, Exception REGDB_E_CLASSNOTREG

I get this error on create new instance of CRAXDDRT.ApplicationClass CRAXDDRT.ApplicationClass crApplication = new ApplicationClass(); Retrieving the COM class factory for component with CLSID {...
0
votes
0answers
19 views

Problem with EF Core migration on Azure Function v2 on .NET Core

I have a project called MyApp which contains Entity Framework Core Models. To create the initial database from those models I used the following command in the Package Manager Console of Visual Studio:...
0
votes
2answers
36 views

How to append to a file being used by “dotnet”

When I started catching and displaying my logging exceptions on my console application, I realized that quite a number of my log messages are absent due to the following error The process cannot ...
0
votes
1answer
20 views

How to properly reference a library in nuget-based architecture

I'm trying to create couple nuget packages for internal company use: OurCompany.Infrastructure.Logging.Interfaces and just OurCompany.Infrastructure.Logging. So I created two class library projects ...
0
votes
0answers
16 views

Visual Studio Code cannot detect my tests

Visual Studio Code cannot discover my test files despite the fact that I can run them in CMD. settings.json: { "git.autofetch": true, "git.confirmSync": false, "git.enableSmartCommit": ...
0
votes
0answers
10 views

Dynamically change landscape orientation of crystal report in c#

How can I change the orientation of the crystal report in c# to Landscape orientation? I am using the crystal report in the portrait orientation. I have installed "CRforVS_13_0_21.exe" and i use ...
1
vote
0answers
17 views

How to turn off double quotes auto-completion in Visual Studio 2019 for C++ editor?

After updating to version 16.1 of Visual Studio 2019, the code editor for C++ completes double quotation characters. When I type one double quote " it automatically completes it as "". How to turn ...

http://mssss.yulina-kosm.ru