Questions tagged [visual-studio]

94935 questions
1

votes
3

answer
370

Views

Where are my Visual Studio Android emulators?

I'm just starting Jesse Liberty's new Pluralsight course, 'Building Your First Mobile Application with Xamarin.Forms and Visual Studio 2017' and I'm running into a problem right out of the gate. In the video, Jesse creates a new Xamarin.Forms project, modifies the XAML a bit, and runs it. Here is...
Scott Baker
1

votes
1

answer
4.4k

Views

How to update Visual Studio 2017 to latest release when VS is not showing it?

I am currently using Visual Studio 2017 Community Edition and the version is 15.4.5. This week Microsoft has released version 15.5 which has many feature that I need. For example, the Remoted iOS simulator for Windows. The Visual Studio is neither showing the update notification message and nor show...
Shashi Jeevan M. P.
0

votes
0

answer
3

Views

What is the best practice for using Firefox's geckodriver in a Selenium Automation Framework?

I've started trying out Selenium with Firefox and I've gotten it to work by downloading the gecko driver and referencing the file path in my code (I'm using C#): FirefoxDriverService service = FirefoxDriverService.CreateDefaultService(@'C:\mypath\'); IWebDriver driver = new FirefoxDriver(service);...
Wookovski
1

votes
1

answer
869

Views

Breakpoint failed to bind error when debugging .NET framework code?

I'm trying to debug System.Security.Cryptography.Xml.SignedXml and related classes in Visual Studio 2015, but I consistently see lines in the core framework code being skipped while stepping through in the debugger. Unfortunately, the lines that are skipped include the lines I need to debug. Has any...
The Velcromancer
1

votes
3

answer
4.5k

Views

.net core cross platform desktop app

I'd like to develop a cross platform desktop app by using .net Core. The app needs to be executed on linux, mac os, and windows. For that purpose, should i create a console app and put below lines in settings xml? win10-x64;osx.10.12-x64;debian.8-x64 Will it be sufficient? If so, should i write all...
Dilara Albayrak
1

votes
1

answer
1.3k

Views

SAPUI5, not OpenUI5, application development in VSCode

I am working on one pet project to get the better understanding of the SAPIUI5 framework. About me, I am a very experienced front-end developer and enjoy working in VS Code IDE. I started SAPUI5 development in SAP Web IDE and then exported the project to eclipse to run it locally, but in eclipse, I...
Atul Chaudhary
1

votes
2

answer
1.8k

Views

How to run unsafe code in “visual studio code”?

I am using Visual studio code and when I try to run an unsafe code it throws the following error ''message': Unsafe code may only appear if compiling with /unsafe' and as in visual studio, it does not have option like project->properties.
Prakash Reddy
1

votes
2

answer
800

Views

Trying to use emmet with a react app in vs code

I am using Visual Studio Code and creating a React App. I understand that Vsc comes with Emmet but it does not work with my React App. I have tried putting the following code in settings. 'emmet.includeLanguages': { 'javascript': 'javascriptreact', 'xml': { 'attr_quotes': 'single' } }, 'emmet.trig...
AltBrian
1

votes
0

answer
7

Views

Is there a way to simulate an autostart with visual studio?

I am working on a program (c# in Visual Studio), which has a strange behaviour. I implemented a feature, that starts the program on windows start up (autostart). For that I add in the registry path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run The filepath of the program. And it...
nninja
1

votes
1

answer
873

Views

Visual Studio Code - Java - Lombok - The method is undefined for the type

I downloaded the following project and imported it into Visual Studio Code: https://github.com/oktadeveloper/okta-spring-boot-2-angular-5-example I have a problem on the following class, when invoking: car.getName(). https://github.com/oktadeveloper/okta-spring-boot-2-angular-5-example/blob/d5c95916...
davidesp
1

votes
1

answer
191

Views

How reproduce VS2017 Package Manager command “Update-Package -reinstall” with Nuget CLI

I've tried with Nuget Update, Nuget restore, but they are actually not the same and here's why: I've created a Nuget pkg only to distribute an executable file. When I install the Nuget the executable is added to my project so I can reference it and run it within my application. Now, I don't want th...
Sergio
1

votes
2

answer
452

Views

Can I use SQLCMD Commands in Visual Studio Database Project Stored Procedure?

I have a lot of SQL that is the same over multiple stored procedures. For example most procedures have the same variables declared, and is in the same try catch block to handle errors. I'd like to use the :r command so that I can write this code in one file and just import it into each sp. I can use...
Samuel O'Connor
1

votes
1

answer
402

Views

How to correctly declare a GraphQL query without parameters.

I'm using vs code + graphql-cli for validating & linting the schema. In the following declaration (in the graphql schema file): type Query { users(): Int } The users declaration above is marked as en error, but it doesn't make any problem (or warning) by the server - it's only vs code and graphql li...
Robert Zaremba
1

votes
1

answer
488

Views

How can I remove left vertical lines in VS Code?

I have searched the whole web but cannot find where to remove these two types of vertical lines on the left side. I specifically mean the colored thick vertical line (marked with red box) and the thin grey vertical line (also marked with red box). If someone could tell me that would be awesome! Than...
1

votes
1

answer
211

Views

Is it safe to delete .nuget folder inside my user profile folder?

I used Visual Studio to do some tests but I have already uninstalled it. Has the '.nuget' folder (under my user profile) been created by Visual Studio and can I safely remove it now?
roughnecks
1

votes
2

answer
785

Views

VS Code debugger not running: Attribute 'program' does not exist

VS Code's debugger has suddenly stopped working, after months of use. I tried to use it on a file, linkedListIntersection.js, and received the following error: Attribute 'program' does not exist ('/path/to/linkedListIntersection.js'). My launch.json file is { // Use IntelliSense to learn about pos...
mrwnt10
1

votes
2

answer
707

Views

Auto-saving files upon changes with VSCode

I have used WebStorm from JetBrains for almost 4 years now. It's a fantastic IDE for many reasons, but one of the best features is that it saves versions of files outside of version control. So if you accidentally delete files or lose files before they are saved by your VCS, WebStorm has a copy of t...
Alexander Mills
1

votes
1

answer
960

Views

How to update appsettings.json based on publish profile using .NET Core?

I'm currently making the switch from .NET Framework to .NET Core. In the past, all of my application settings were in the Web.config file. When I added a new publish profile, I could right click and select 'Add Config Transform' which would generate a nested Web.{Profile}.config file under Web.confi...
Matthew
1

votes
1

answer
292

Views

Visual Studio Code - Python debugging - Step into the code of external functions when executing

In a Python project, how do you tell the built-in VSCode debugger to step into the code of functions from other libraries on execution? I know it is possible for functions implemented in standard libraries by adding a 'debugOptions': ['DebugStdLib'] to your configuration in launch.json as specified...
John Smith
1

votes
1

answer
224

Views

How to trigger parameter hints in Visual Studio Code?

I want to show parameter hints when I position cursor within the parentheses of the calling method. I know similar answers already exist for Visual Studio and on Reddit, but I couldn't find a quick answer for this question on Stack Overflow. So I've decided to add it.
Matej
1

votes
1

answer
530

Views

The import org.springframework cannot be resolved - Java(268435846)

I'm trying to use the Spring Framework in my project, but I have a problem with the import. I'm working with Gradle for builds, React JS for the front end and Java for the back end. The weird thing is that I can use classes as RowMapper and JdbcTemplate (I can read and write in my database using t...
Sam Mahaux
0

votes
0

answer
3

Views

make visual studio editor not check ~ files

I'm an Anaconda on Mac user and the newer versions of Anaconda are now downloading Microsoft's Visual Studio on the Mac. Pretty neat. Except that all of my files have been edited with EMACS and I have many filename.py~ backup files, and VisualStudio is trying to check them all, and they don't check....
vy32
0

votes
0

answer
6

Views

How I can find out a new line which isn't exist in richtextbox1 but exist in richtextbox2

How I can find out a new line which isn't exist in richtextbox1 but exist in richtextbox2, Richtextbox - Hello - Hi - Yo Richtextbox2 - Hello - Hi - Yo - Sup So there is Sup new line in richtextbox2, i want to compare string (richtextbox1 and 2) then i want to findout new line (Sup), How c...
Akib Khan
1

votes
2

answer
27

Views

npm install -g -D not updating dev dependencies in package.json

I've tried opening and closing the open package.json editor, and restarting VS Code, and running and re-running the npm install command at least 8 times but to no avail. For some reason, the command below does not update my dev dependencies in my package.json file. $ npm install -g -D webpack I know...
Water Cooler v2
1

votes
1

answer
837

Views

Xamarin Live Player in Visual Studio 2019

I recently get Visual Studio 2019 preview edition, now I want to use the Xamarin Live Player, but I can't find it anywhere. I know that in previews version of visual studio it was in Tools / Options / Xamarin / Other but now it's not.
SinaMN75
1

votes
2

answer
45

Views

Run Web app separately from Service Fabric

I have Service Fabric and web service in it. If I run the Service Fabric locally, from Visual Studio, I can debug my service, and it is very convenient. However, it takes a lot of time to deploy my code changes to local fabric. I am sure there should be an option to start my service separately from...
PolinaC
1

votes
2

answer
30

Views

How can I install my own Extension? Vscode

I made my own Extension pack using Yeoman Generator, but I can't figure out how to install it on my vscode. Maybe if I export my extension pack to the Marketplace it will be possible, but I dont want to do that
isaid
1

votes
2

answer
69

Views

Locally disable warnings of Python Language Server in Visual Studio Code

I have recently installed Python Language Server in Visual Studio Code. I sometimes have some warnings that I want to locally disabled For example, let's assume I have the following code: import org.sikuli.script.SikulixForJython from sikuli.Sikuli import * from guide import * It is normally run fro...
Jean-Francois T.
1

votes
1

answer
55

Views

When I rebuild my c++ DLL (which I call from c#) into /CLR (originally native) the performance drops in half

When I changed the DLL build options from native to /CLR, so that I could debug across the c#/c++ boundary, my performance was cut in half. I developed a native C++ DLL with specific high performance algorithms to solve my computational problems. This DLL I needed to plug into a C# application deve...
Tomasz
1

votes
1

answer
54

Views

Same AVX2 program yields different result in gcc & msvc

I'm trying to increase throughput of md5 hash using AVX2. I have used simd_md5 library provided by a github user.. On msvc2013 i get desired result for all 8 buffers but on linux when i run the same code only for first 4 buffers the result match & next four buffer somehow the result is shifted. I ha...
Nathan S
1

votes
3

answer
187

Views

VS2019 + Xamarin.Forms = UWP/EXE dropped?

How do I get the UWP back into Xamarin.Forms Cross-Platform creation to have the templates ready to roll? After picking through the release notes, playing with VS2019's UI and a few hours of web searching, I have only found others posting about the problem in the preview versions. Some say UWP is go...
Juggern Ott
1

votes
2

answer
40

Views

Cast JSON to PowerShell with proper Auto-Completion (IntelliSense)

Is there a way to geth autocompletion with IntelliSense in Visual Studio Code work properly, when I read a json file and cast it to a PowerShell like: $config = Get-Content 'SOME_PATH' | ConvertFrom-Json $config.attribute1 The problem is that the file needs to be in memory before it can get the str...
nailuenlue
1

votes
2

answer
44

Views

How to concat char array into a string

Below I have two variable store in a char array char one[7] = '130319'; char two[7] = '05A501'; I try to concat them with stringstream std::ostringstream sz; sz
epiphany
1

votes
1

answer
84

Views

What Replaces Code Analysis in Visual Studio 2019?

I'm toying with getting our team and projects ready for VS 2019. Right away, trying to set up Code Analysis for a new project, I find this: So, if this is deprecated (and apparently can't even be used, so I'm thinking 'deprecated' really means 'gone'), where are we supposed to set up our Rule Sets?...
bubbleking
1

votes
1

answer
54

Views

Using VS2019 with TFS2018 vnext build system

Does anybody know if it is possible to use VS2019 with TFS2018 vnext build system. You cannot select VS2019 in the build definition, but you can select 'Latest' as version for Visual Studio. Unfortunately, this does not select VS2019. I have tested this in a virtual machine with VS2017 and VS2019 in...
PainElemental
1

votes
1

answer
44

Views

How to fix “Clone.Bitmap” system out of memory in C# [duplicate]

This question already has an answer here: C# Bitmap/Graphics Out of Memory 1 answer c# Out of Memory Exception with System.Drawing.Image 3 answers C# Image.Clone Out of Memory Exception 6 answers On VS Code, I would like to set up UI tests on the app's visual by taking the app's screenshot elemen...
GioOps
1

votes
1

answer
38

Views

Private inheritance equivalent in Typescript (Only including or excluding specific class members or properties)

What is the best way to simulate private inheritance in Typescript? Specifically, the chid class wants to hide certain members of a parent class. For example, the expected workaround should achieve the following: Class CustomArray extends from Array, and hides specific members say pop() and shift()...
user3330840
1

votes
2

answer
147

Views

cannot search for NuGet Packages in visual studio 2019 [duplicate]

This question already has an answer here: VS2015 nuget package manager not finding packages 8 answers Cannot search for online NuGet packages in visual studio 2019. Default package source is offline and no option for adding online package source. Searched through the internet. Wasn't able to find t...
Abdul Karim
1

votes
3

answer
1.3k

Views

How do I set the category for a toolbox item?

I have a follow up question to this one. Now that I have only the control I want showing up in the Toolbox in Visual Studio, how do I set the Category? It currently shows up in a category titled with the assembly name. I would rather use our company name. I have read how I can create my own Tool...
Pat O
1

votes
3

answer
884

Views

Visual Studio linker cannot find libboost_system

I'm using VS 2008 and want to use the boost::asio library. I could get this to work in a new project (I want to include boost/bind.hpp and boost/asio.hpp), but in an existing project I get this error: fatal error LNK1104: Datei 'libboost_system-vc90-mt-sgd-1_46.lib' cannot be found. I can't find thi...
CppCode_r

View additional questions