Questions tagged [visual-studio]

94805 questions
1

votes
0

answer
224

Views

Unable to get rid of ambiguous path error

I've had a look at this post but still can't seem to fix this problem: Resolving an ambiguous reference I'm trying to make a button in WPF that when clicked browses for an excel file and then opens it. However I keep getting the error 'Path' is an ambiguous reference between 'system.windows.shapes...
Friend
1

votes
0

answer
559

Views

details for project could not be loaded

My first attempt with F# has yielded with the following exceptions: Severity Code Description Project File Line Suppression State Error Error occurred while restoring NuGet packages: The operation failed as details for project ConsoleApp1 could not be loaded. Error Assets file 'C:\...
1

votes
1

answer
433

Views

ASP.Net Core 2 - How can I get Visual Studio Code to detect Razor Pages?

In Asp.net core 2, they introduced razor pages. Using visual studio code if I create a 'Pages' folder in the root of the solution and then add a new item 'Greeting.cshtml', then add an @page directive at the top followed by the content I want to display, I don't see anything when I navigate to http:...
User123
1

votes
0

answer
143

Views

IO.FileSystemWatcher not working after Windows Update version 1709

I have a powershell script that watches a folder for file changes. After installing the Windows 10 Creators update 1709, the File watcher is no longer being triggered when files are saved. We have a few others on the team that are seeing the same issue, does anyone have any ideas on how to resolve t...
WhizBang
1

votes
0

answer
64

Views

Using Map() with typescript in VSCode shows error message

When using Map() with typescript and VSCode I get the error message: Can not find name 'Map()' with VSCode even thou compiling and executing works fine and without errors. How can I get rid of the error message? I am not sure if this is a bug within VSCode or with my configuration. I assume the late...
Jodo
1

votes
0

answer
26

Views

gruntfile taskrunner compilation error in angular js 2 project

I am working on asp.net project using angular js 2 in VS 2015. I am using webpack and gruntfile. I have a task in task runner which is giving error like this: Running 'ts:base' (ts) task Compiling... Using tsc v2.0.6 >> Compilation failed Warning: Task 'ts:base' failed. Use --force to continue. Abor...
Asif Hameed
1

votes
0

answer
277

Views

POSIX spawn.h and /sys/wait.h on Visual Studio Windows platform

This is similar to a question in a very old thread (7 year old thread) available here: can't get my code to run from a programming book(c++) (So, instead of posing this question there, I wanted to post as a new thread.) Essentially, the following code from book Professional Multicore Programming doe...
Tryer
1

votes
1

answer
28

Views

Build works, but media play doesn't seem to load

i'm working on an android app at the moment that has the purpose of playing a particular song at exactly midnight. I know that there might already be apps in the appstore that serve that purpose, but I'm new to coding and wanted to try to program the app myself. So now I reached the point where I do...
GodmasterofDoom
1

votes
0

answer
36

Views

Visual Studio 2017 Stops Debugging When Navigating Away From Site Being Debugged

This has been driving me crazy... Running a solution works with no problems. I can navigate within the application with no issues. The problem arises when I navigate to a site outside of the debugging site, i.e. I go to a site outside of localhost. The reason to go outside the site is to authenticat...
AntLaC
1

votes
0

answer
53

Views

Error Message in vs2015 enterprise

my machine has VS2015 enterprise installed with following settings: Microsoft Visual Studio Enterprise 2015 Version 14.0.25431.01 Update 3 Microsoft .NET Framework Version 4.6.01590 SQL Server Analysis Services 14.0.806.134 SQL Server Data Tools 14.0.61707.300 SQL Server Integration Services V...
rt2800
1

votes
0

answer
1.1k

Views

How to change colors of syntax highlights in VS Code?

I am working with React, and Language Mode of VS Code set to Javascript React. Code in Text Editor looks like this: I want 'Text', which refers to normal text in React, to be of different color. But, I can't find the suitable prop in workbench.colorCustomizations setting to tweak. What is the right...
Eduard
1

votes
0

answer
30

Views

How to add nuget package source with \\foldername\filename path in visual studio 2017

I have to add nuget package source with path \foldername\filename. I have followed the steps: 1. Tools->Options->Nuget Package Manager->Package Sources, there I added new package source with path \foldername\filename but it is giving error that 'path could not resolved'. I have to access packages f...
Jyoti
1

votes
0

answer
1.2k

Views

How to compile OpenCV 3.4 with Visual Studio 15 2017 ARM for UWP?

I have been struggling to compile OpenCV 3.4 for a couple of days now. Final target of the compile is ARM, since I am currently writing an UWP for Windows 10 IoT Core running on Raspberry Pi 3. I started my journey from here: https://developer.microsoft.com/en-us/windows/iot/samples/opencv where Mic...
Guido Magrin
1

votes
1

answer
342

Views

Auto Parallelization with VS

I am trying to understand how the auto-parallelization works to speed up the execution of a program I am writing. I have created a simpler example: #include #include #include using namespace std; using namespace std::chrono; class matrix { public: matrix(int size, double value) { A.resize(size,...
Mattia
0

votes
0

answer
2

Views

How to watch a column of a 2-D matrix in Visual Studio 2017 debug mode?

guys. I know we can watch an array in the VS debug mode by adding the array into the watch window, but how do we view a column of a matrix (2D array)? Let's say we have a matrix A[3][3], and I only want to see all elements in the third column in the debug mode. I tried to type A[][2] or A[:][2] or...
Lingxiao Wang
1

votes
1

answer
11

Views

Regex Color tabs in Visual Studio Community 2019 don't seem to be working

Previously in Visual Studio Community 2017 I had configured a series of Regex expressions to color the tabs when working in MVC according to whether these were controllers, views, models, dbcontext, and other custom conditions to find them better visually. Now I'm testing Visual Studio 2019 and alth...
strtCoding
0

votes
0

answer
3

Views

How do I install Dotfuscator in Visual Studio for Mac?

I'm currently using MacOS for my C# development environment, and have been pretty satisfied with the packages available. However, since my codebase is proprietary, my coworkers recommended that I obfuscate the code using Dotfuscator. I've gone over the Microsoft documentation for direct installation...
James
2

votes
0

answer
14

Views

Can Visual Studio debug Go plugins?

I have a Go project that consists of a command line tool and some Go plugins. I have a build script that builds the CLI, and then goes into a plugins directory and compiles each plugin with the -buildmode=plugin option. I would like to figure out if launch.json can be configured to selectively pas...
Nick Pollitt
1

votes
0

answer
23

Views

VS Code numerical arguments

I'm trying to get rid of emacs. One feature I liked very much was the numerical arguments. This works like this: Ctrl+80 followed by'='. A line is filled with 80 '='. Is there anything comparable in VS code?
ebiondi
1

votes
0

answer
193

Views

Java.Lang.NoClassDefFoundError has been thrown: Failed resolution of: Luk/co/chrisjenx/calligraphy/R$attr;

I'm developing an Android App with Xamarin using Visual Studio 7.3.2 (build 12) for Mac (based on Mono), thus not using the real thing in Windows. Debugging is very, very inconsistent. One of the common errors that gets thrown 1 out of 10 times is: Java.Lang.NoClassDefFoundError has been thrown: Fa...
meder omuraliev
1

votes
2

answer
571

Views

ASP.NET Web Application: changing bootstrap css file results dissapearing nav bar buttoms

I make a new asp.net web application (MVC) in V.S.2017 and then download bootstrap.css from a bootstrap theme provider on web. I change the downloaded file name to 'bootstrap-cosmo.css' and copy it to contents folder. then I replace this line of code in App_Start/BundleConfig.cs: bundles.Add(new Sty...
Seyed Amir Mousavian
1

votes
1

answer
64

Views

Unable to check in project into VSTS Repository

I'm trying to check in an existing project into a fresh new repository on VSTS. I've connected to the repository in Team Services. When I right click my solution and select Add Solution to Source Control, I get the following errors. After that nothing happens. Any idea how to fix this?
Sam
1

votes
2

answer
297

Views

Set process title in visual studio attach to process c#

I want to set the process title of my console application in the attach to process dialog of visual studio. I tried to set the assembly name, process description, etc.. but it didn't work. How can I achieve this in C#?
Antoine Lafarge
1

votes
1

answer
563

Views

My class, defined in a .h file, is not found by the .cpp file

I am trying to make a program with a class called 'Deck'. However, I am unable to define the functions outside of the header file. The header Deck.h file has the following: #ifndef DECK_H #define DECK_H #include //#include 'Card.h' class Deck{ public: vector* deck = new vector; bool visibility; //W...
Aashishkebab
1

votes
0

answer
435

Views

vs 2017 npm through package manager console

I am trying to manage npm packages through vs 2017 package manage console. I have installed nodejs on my machine and then running npm commands through package manager console. The issue that I am facing is My directory structure is Project folder level 1 -project folder level 2 node_modules level 3...
Sumit
1

votes
0

answer
463

Views

Use d.ts files without TypeScript (instead of JSDoc)

I'm working on a JavaScript project using babel. I've used .d.ts files to define types for each .js file / class just for code completion instead of JSDoc. This works fine when importing the Ability.js files within an other class. All the type definitions work for both variables and functions, and I...
Jeffrey Lanters
1

votes
2

answer
139

Views

Content Pipeline not working despite file existing in expected locations

I've been trying to figure out why the content pipeline tool isn't allowing me to load textures and spritefonts. My MainGame constructor: public MainGame() { _graphics = new GraphicsDeviceManager(this); Content.RootDirectory = 'Content'; //Content folder _graphics.SupportedOrientations = DisplayOrie...
C Bauer
1

votes
0

answer
31

Views

Find modified project file by Visual Studio (SSDT) that is not saved yet

We are facing situation when some developers modify the project file (*.sqlproj) for example by adding or removing objects, then they do not save all the files in the Visual Studio and try to commit/push changes using command line. In that case the *.sqlproj file is not saved yet and it is not caugh...
Dmitrij Kultasev
1

votes
0

answer
125

Views

Placing Unique_Ptr in header creates reference to deleted function error?

I've been trying to use G3Log as my logger but I've come into a strange issue. When I do the recommended way of: int main() { std::unique_ptr logWorker = { g3::LogWorker::createLogWorker() }; auto sinkHandle = logWorker->addSink(...); g3::initializeLogging(logWorker.get()); } It works as expected. B...
JamieRhys
1

votes
0

answer
665

Views

Run app on iOS device in Visual Studio for Mac

I have problem with running my iOS app (Monogame) on my physical iPhone X device in Visual Studio for Mac (former Xamarin Studio). I can test it in emulator, but I don't see option for physical device in list of devices. If I try to create an app in Xcode there is that option. I have connected my i...
Earlgray
1

votes
0

answer
42

Views

Preserving Form hierarchy when importing form into another project

I want to use the form of another VB.NET project in a new project. When I insert it as 'Import existing element' and choose the form's '.vb' file, only the .vb file is imported into the new project. When I add all three files (.vb, .Designer, and .resx), they are imported individually. The form hier...
tmighty
1

votes
1

answer
319

Views

Visual Studio hangs and crashes on build error

A few days ago Visual Studio 2015 started dying on me when compiling. If the build is successful it takes forever to compile and Visual Studio hangs. If the build fails Visual Studio kindly hangs and then I get a message saying the program has stopped: This has never happened before and my work has...
Shy Agam
1

votes
0

answer
204

Views

Is it OK to use system(“CLS”) with Visual Studio?

I was looking around on the Microsoft forums about clearing the console in the Windows Console Application. I was looking for an alternative to system('CLS') because I heard that it was bad to use and unportable. All I found was to use system('CLS') and there weren't any alternatives that seemed t...
Handge
1

votes
0

answer
405

Views

Exception from HRESULT: 0x80131500

I am trying to run this command 'dnx ef migrations add setup' in the cmd of my project. I was returned with this error 'Exception from HRESULT: 0x80131500' and it states it fails to load one or more dependencies. I am using VS2015 Project. Anyone knows what the error? Thanks in advance!
thompsonrapier
1

votes
1

answer
376

Views

Unable to install EmguCV via NuGet in Visual Studio 2015

I wanted to play around with Emgu.CV but I still fail installing it. I created a new C# project, right click to Reference >> Manage NuGet Packages. Entering 'Emgu' in the search field, you'll find EmguCV. Clicking 'Install' I get this output: That also happens, when I try to use older versions. Usin...
Jan021981
1

votes
1

answer
906

Views

Cannot select target in SQL Server Schema Compare, Visual Studio 2017

I'm having an odd problem wich I haven't been able to find a solution for. Suddenly I am not able to select a Target or Source in Schema Compare in VS2017. When I click the Combobox nothing happens. It is still possible to do a Data Compare and SQL Queries. I've updated SSDT to version 15.5.1 but w...
jhe
1

votes
0

answer
771

Views

Files do not show up in solution explorer, even when added to project

I inherited a codebase, and one of the projects has a few hundred c# files, but in solution explorer it only shows a couple. These classes are referenced in other projects, and the solution builds fine. If I click the 'Show All files' option, it will show the obj and bin folders and a config file,...
Douglas Gaskell
1

votes
1

answer
325

Views

Check in / Check out in subversion

Hi I am using Ankh subversion in Visual Studio 2010. I would like get some silverlight project files from subversion and make some changes to the code, then commit my changes back to subversion The subversion directory is as follows Phase1\ViewerApp\trunk\Viewer Phase1\ViewerApp\trunk\Viewer.Web Ph...
user1603842
1

votes
1

answer
235

Views

Visual Studio Extension - How to listen on Solution \ Project item selection change

I Creating a Visual Studio Extension and I would like to listen when user selection item change or when current project selection change. I try to listen - OnChange in SelectionEvents: var dte = ServiceProvider.GlobalProvider.GetService(typeof(EnvDTE.DTE)) as DTE2; var dteEvents = dte.Events as Even...
Daniel Tshuva
1

votes
1

answer
806

Views

Debugging Topshelf Service

I am using Topshelf to create a Windows service which uses the chrome Selenium driver to manipulate and parse various webpages. While the service code runs fine from a normal (NetCore2) console test application, there's a problem when it runs under the Win32 console app that Topshelf requires. Unfor...
Mark Olbert

View additional questions