Questions tagged [visual-studio]

If you have a specific inquiry about the features and functionalities of Visual Studio, feel free to employ this tag. However, refrain from using it for questions related to code that has been written in Visual Studio by chance. It is advisable to attach tags pertaining to the precise technology area associated with your question, as well as specifying the version of Visual Studio more precisely. Do include your exact edition, update level, and VS version when posing your question. Avoid utilizing this tag for queries regarding VS Code.

Develop an integration of NextJS with .Net Core framework

Looking to develop a solution that integrates NextJS on the frontend and .NET6 on the backend within one unified setup for hosting on IIS10. While exploring Visual Studio 2022, I noticed a React template but encountered issues when trying to transition to ...

Exploring the Power of TextEncoding in TS 2.8 within the Angular 6 Environment

I'm facing a challenging issue while trying to import TextEncoding in TS 2.8. I have installed it using npm and attempted to import it like this: import { TextDecoder } from 'text-encoding'; Alternatively, import { } from 'text-encoding'; However, rega ...

What is the best way to format this DateTime for a more visually appealing appearance within an Angular Material <mat-card-subtitle>?

My date looks like this: 2000-12-16T00:00:00 When displayed in Material code (as the publish_date): <mat-card *ngFor="let book of bookItems"> <mat-card-header > <mat-card-title>{{book.title | titlecase}}</mat-card-title> ...

Issues with TypeScript "Compile on save" functionality in Visual Studio 2015

The feature of "Compile on save" is not functioning properly for me since I upgraded to Visual Studio 2015. Even though the status bar at the bottom of the IDE shows Output(s) generated successfully after I make changes to a .ts file and save it, the resul ...

Displaying Typescript command line options during the build process in Visual Studio

As I delve into the world of VS 2015 Typescript projects, I find myself faced with a myriad of build options. Many times, the questions and answers on Stack Overflow mention command line options that I'm not completely familiar with, especially when it com ...

Parsing Newtonsoft JSON into an object

I'm a bit out of touch with VB, but I'm trying to parse a JSON string. I've already done this in C# without any issues. This is for an older project where I'm using VS2008. This is the class structure: Public Class ResponseMeta Private _type As String ...

Error Encountered During Building Apache Cordova Project in Visual Studio 2015

Encountering an issue when attempting to launch my cordova project on both an android device and android emulators. Currently utilizing visual studio 2015 In dire need of assistance! Error can be viewed in the image below: ...

The compilation of the Apache Cordova project in Visual Studio 2013 did not produce the expected release APK file

Yesterday, I successfully generated an APK release file for my VS2013 Cordova application in the bin/release folder. However, when I tried to build the APK file today, the bin/release folder is empty. I selected the release configuration, Android platfor ...

Error: Unable to locate Platform Toolset = v141 during NPM installation

My attempt to set up the Barcode-Scanner-npm library has hit a roadblock with this error message showing up: C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V140Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build tools for v141 (Platform Too ...

I am in search of understanding the criteria for determining when an ISearchContext can be considered

I've been scouring different sources for information on this particular topic, and while I did find a similar answer here, I'm looking for a bit more detail. Here's my code: var element = myWebDriver.FindElement("User_Login"); var finalele ...

Combine VS2015 preview with TypeScript 1.3 at your own risk - it may result

After installing VS2015 Preview, I decided to create an MVC project and add a new TypeScript file. However, when trying to compile, I encountered the following error message: The "TypeScript.Tasks.VsTsc" task could not be loaded from the assembly C:&bso ...

Switching Workspaces in Visual Studio

Is it possible to switch from an existing project to a new one in Visual Studio using NPM? ...

What is the reason behind the node_modules folder being marked as read-only by VS 2017 in a .Net Core App?

I recently ran into an issue with my .Net Core application that uses Angular for client-side code. The default template in VS 2017 seemed to be causing my node_modules folder to become read-only. Previously, I could install packages using the command line ...

An issue with a dependency occurred / A syntax error was found in bower.json

After setting up a new ASP.NET V5 web project, I included a NPM configuration file named package.json: { "version": "1.0.0", "name": "ASP.NET", "private": true, "devDependencies": ...

Why is my ASP.NET Core Crud request failing with incorrect method matching?

I am facing an issue with the third method in my Angular ASP.NET Core Controller. The first two methods work fine, but the GetBookItemsByTitle does not seem to be firing correctly. As I am still learning, I believe my mistake here is obvious. /// <summ ...

Issue: Module 'C:viteinvite.js' not found while setting up vue.js in Laravel project

Decided to dive into learning Laravel and Vue.js, so I followed a tutorial for installation found here: Everything was going smoothly until I reached the npm run dev command... Below are the commands I executed in the Laravel project terminal (as shown i ...

Having trouble with implementing ng-hide and ng-show functionality

I have been working on creating my very first Angular website and so far, everything has been going smoothly with the first page. However, I am facing an issue with the second page not appearing as expected when it meets the condition set with ng-show in t ...

Actions in ASP Core to automatically install necessary tools for Angular2 before and after publishing, followed by the build

Our .NET Core project utilizes Angular2 as the frontend client, housed in a Frontend directory within our solution. The Frontend directory includes package.json and angular-cli.json to keep frontend separate from the rest of the .NET project. When ng buil ...

Is it possible to export informative test titles in Selenium / Gherkin / Cucumber?

Within my feature files, I have implemented tests using the Scenario Template method to input multiple parameters. For instance: @MaskSelection Scenario Template: The Mask Guide Is Available Given the patient is using "<browser>" And A patie ...

Using npm in Visual Studio 2015 for managing numerous projects

One of my solutions consists of three web projects, and I want to use a package.json in two of them ('Site' and 'SatelliteSite'). These are ASP.NET 4 projects where I'm integrating npm/gulp/bower. It's working well for one pro ...

Selenium has encountered an issue and is no longer functional following the FindElements method

At times, when I utilize the Selenium FindElements(By) function, it throws an exception and causes my driver to stop working. The issue could potentially lie within the "BY" parameter: when I attempt to search for the same elements using a different method ...

What steps can I take to prevent Selenium from displaying this error message?

Recently, I embarked on a journey to delve into tester scripting. However, my first attempt at running the script hit a roadblock that left me perplexed. Despite my attempts to install gecko, I found myself stumped as none of the tutorials seemed to be eff ...

Enhancing Visual Studio 2017 with Docker Compatibility for Angular Applications

What is preventing the angular support from being available in VS 2017? Is there a missing component that is needed? https://i.stack.imgur.com/asJhO.png ...

What is the best way to search for a specific term in Visual Studio Code/IDE without including another term in the search results?

Is it feasible to search for instances in my code where the term "<img" appears without being accompanied by the term "alt="? This would help me locate all image tags that do not have the alt attribute. Can you provide guidance on how this can be achiev ...

Constructing Electron Native Extensions with Visual Basic 2015

My Current Progress: Currently, I am in the process of developing a NodeJS native extension that I plan to integrate with Electron. However, based on my previous experiences, I have come to realize that the build process for just NodeJS involves including ...

transferring a document onto Azure DevOps

Currently, I am working on a DevOps project named 'Test' and have downloaded it as a zip file onto my local machine. After making some code edits, I am now looking to upload the modified file back to the same directory in DevOps. Will this proces ...

Looking for a way to add a CSS effect that reveals another image or text when hovering over an image?

My company's website features 10 country flags that, when clicked, display the entire site in that country's language for the user's session. However, I want to take it a step further and have a small image of the respective country appear w ...

Exploring Javascript bugs in Visual Studio (or any other JS debugger)

I am currently working with a .js file that is executed using cscript.exe and not in a browser environment. I am aware that I can use the //X parameter with cscript.exe to trigger a debugger selection prompt. This works well when choosing "Visual Studio 2 ...

I'm curious, where does Visual Studio create the dist folder when you run an Angular Web Application?

Currently utilizing Visual Studio 2019 Community Edition, although the same situation also pertains to VS2017 and other editions of 2017/2019. While developing/running an ASP.NET Core Web Application with an Angular web project, I'm unable to locate the d ...

Errors in the Latest Release of Angular2 and Visual Studio 2015

After taking a stroll through the Angular 2 Tour of Heroes sample application with the latest Angular 2 version, I decided to host it within a Visual Studio 2015 Empty Web application. Following the Angular sample closely means that I'm not incorporat ...

An AggregateException has occurred due to multiple errors arising. The main issue revolves around the failure to initiate the 'npm' application. To troubleshoot this problem and resolve it, further actions are

Experiencing frustration with Visual Studio on Mac when using Docker due to numerous errors. The project involves ASP.NET Core 2.1 with Angular 6 on a Docker image. The project builds successfully, but encounters issues when trying to run as detailed below ...

Issues with intellisense while working on node.js projects in Visual Studio 2017

Typically, we work in a Microsoft stack development environment, but for this particular project, we are required to develop using Node.js in Visual Studio 2017. Some aspects of this setup are causing us frustration and confusion. We installed the Node.js ...

Order of Execution

I am facing an issue with the order of execution while trying to retrieve values from my WebApi for input validation. It appears that the asynchronous nature of the get operation is causing this discrepancy in execution order. I believe the asynchronous b ...

In Visual Studio, the .js.map files and .js files seem to be mysteriously hidden, leaving only the TypeScript .ts files visible

In the past, I utilized Visual Studio Code for Angular 2 development and had the ability to hide .js and .js.map files from the IDE. Now, I am working on a project using VS 2017 Professional with Typescript, Jasmine, Karma, and Angular 4. Task Runner, etc. ...

Issue arose following the update from Angular 5 to 6, impacting the VSTS build process

Upon upgrading from Angular 5 to 6, I successfully got it running locally. It builds and compiles with --prod. Integration into an .NET MVC application went smoothly. However, when the build on VSTS is triggered, a series of errors surface: node_modules&b ...

Guidelines for integrating Bootstrap-Vue into an ASP.net project within VisualStudio 2017

While we have a NuGet package available for Vue 2.5 to easily set things up in an ASP.net project in Visual Studio 2017, unfortunately, there is currently no Bootstrap-vue NuGet package. The Bootstrap-vue website provides instructions only for NPM and YAR ...

The CodeDom provider 'Microsoft.VisualC.CppCodeProvider' was not found, attempting to compile the node_modules directory

Upon attempting to compile my ASP.NET MVC project, I encountered an error after integrating a project with a node_modules folder. The specific error message reads as follows: The CodeDom provider type "Microsoft.VisualC.CppCodeProvider, Version 10.0.0.0 ...

I'm currently attempting to utilize PTVS within Visual Studio, but am encountering difficulties in configuring the Python interpreter

I'm having trouble configuring the Python Tools for Visual Studio (PTVS) extension in my Visual Studio IDE. I have Visual Studio Enterprise 2015 installed along with Python 3.5.2, but I can't seem to set the Python interpreter correctly. When I ...

Node Sass is not compatible with the current environment

I've come across several similar questions on SO, but none of them seem to address or fix my issue. Node Sass is unable to locate a binding for the current environment: Windows 64-bit with Node.js 6.x. What's strange is that I don't even have Node.js 6.x ...

"Encountered a 'net::ERR_HTTP2_PROTOCOL_ERROR' while trying to load a resource for a React app following an upgrade to Visual Studio 2019 version 16.10.0

Since upgrading to VS 16.10.0 (and then 16.10.1) Community Edition, a React website is no longer functioning within Visual Studio/IIS Express. Interestingly, the exact same code runs perfectly when deployed to an Azure app service. Upon loading the home p ...

Angular2 and Typescript paired with Visual Studio 2013

Currently, I am utilizing the angular2 QUICKSTART and encountering an issue where Visual Studio fails to recognize Angular2 with typescript import Modules. However, everything else seems to be functioning correctly: https://i.stack.imgur.com/0s46Y.jpg Th ...

Having trouble getting the Angular Route to work, any tips on how to fix it?

I am currently learning Angular and have encountered a small issue. When I place the Component in my app.component.html as shown below, it functions correctly: <body> <div class="container"> <app-search-books></app-search-books ...

Error encountered when creating a new project using ASP.NET Core (.NET 5) and Angular 11

When I start a new ASP.NET Core Web API + Angular project in Visual Studio by using: dotnet new angular, it sets up a .NET 5 project with an Angular 8.2 project in the ClientApp folder. After hitting F5, everything runs smoothly. However, I want to work ...

React.js and Visual Studio Code have recently been causing unexpected and massive "Module not found" errors

Everything was going smoothly with my project until I uploaded it to Github and then cloned it. Suddenly, I started encountering various "Module not found: Can't resolve..." import errors. For example: Module not found: Can't resolve './co ...

Creating an NPM package using Visual Studio 2017: A Step-by-Step Guide

I enjoy developing and publishing NPM packages using Visual Studio 2017. My preferred method is using TypeScript to generate the JavaScript files. Which project template would be best suited for this particular project? ...

Creating detailed documentation comments for TypeScript within Visual Studio

When using C# with ReSharper and StyleCop, I am able to automatically generate basic documentation comments for methods. This includes sections such as: /// <summary> /// The login. /// </summary> /// <param name="returnUrl" ...

Is there a way to prevent QtLinguist from opening every time Visual Studio tries to display a TypeScript file?

Ever since I installed Qt tools for Visual Studio, my Ctrl+click on a class name triggers Qt Linguist: https://i.stack.imgur.com/USAH1.png This hinders me from checking type definitions, even though Visual Studio has already parsed them. The type informa ...

Easily generate a hierarchical layout in HTML with this straightforward method

I'm currently working on implementing a hierarchical tree structure for a website. I need to organize a user's projects, tasks, and sub-tasks in a visually appealing manner using HTML elements. Any suggestions or creative ideas are welcome! ...

I encountered an error when trying to install npm package -g karma on WIn764b. The error message displayed was "Cannot open include file: 'winsock2.h': No such file or

Currently facing an issue while trying to set up karma on my Windows7 64 bit system. Whenever I try to execute the command: npm install -g karma I encounter the following error message: ....node-gyp.8.22depsuvincludeares.h(49): fatal error C1 083 ...

Incorporating invisible surprises into a fixed menu that reveal themselves as you scroll

I am working on implementing a top navigation and a sticky sub-navigation feature. The goal is to have the sticky nav become the top nav when the user scrolls down the page, similar to the functionality on this website - The issue I'm facing is with hidin ...

It’s not possible for Typescript to reach an exported function in a different module

Having trouble referencing and using exported methods from another module. I keep getting an error that says 'There is no exported member in SecondModule'. module FirstModule{ export class someClass{ constructor(method: SecondModule ...

Automating web page login with Python Selenium

Recently I started working with Python and Selenium to create an automated login script for checking appointment availability. I have encountered a problem with my code where it throws an exception at the "Button click failed" line when run without breakpo ...

Is it possible that a declaration file for module 'material-ui/styles/MuiThemeProvider' is missing?

I have been trying to implement the react material-ui theme after installing it via npm. However, I am encountering errors when adding 'import MuiThemeProvider from "material-ui/styles/MuiThemeProvider";' in boot-client.tsx: TS7016: Could not find a dec ...

Utilizing JQuery in a Subdirectory with the MasterPage located in the Main Directory

Currently, I am facing an issue while trying to utilize the jquery library in ASP.NET within a subfolder named "samples" with a master page located in the root directory. The problem arises when the references to the jquery scripts are placed in the head t ...

What is the method for specifying the HTML file extension within Visual Studio?

I am having issues with my project recognizing the CSS and other files in the HTML files I have created, even though I have double-checked the extension paths. How can I resolve this problem? https://i.stack.imgur.com/85ooE.png https://i.stack.imgur.com/F ...

Exploring the integration of datatables.net-vue3 with Vue.js 3 in Visual Studio: A step-by-step guide

I am trying to integrate datatables.net-vue3 with Vue.js 3 in Visual Studio. I have installed it using npm like so. However, I am facing issues with the imports in Visual Studio. I have tried importing them this way but it doesn't seem to work for me. ...

Error encountered in Visual Studio while working on a Node.js project: "The specified path or filename is too lengthy."

Whenever I set up a Blank Express Application in Visual Studio 2013 and launch it post installing npm modules, everything runs smoothly without any errors. But if I close the solution and reopen it later, the project fails to load with errors appearing in ...

Exception handling in debugger does not work for JSON null reference, but is successfully caught in other scenarios

In my current project, I am utilizing the System.Text.Json library to work with JsonNode data, some of which may be null. Rather than testing each element for null values, I have opted to wrap the code in a try-catch block. However, I have encountered an u ...

The JavaScript library known as Microsoft JScript Angular is not recognized

While integrating Angular into my .Net MVC website, I keep running into a runtime error that reads as follows: 0x800a1391 - Microsoft JScript Runtime Error: 'angular' is undefined. This essentially means that the 'angular' object is not recognized du ...

Issue with Retrieving Value in NgxLocalStorage

I am currently exploring the Visual Studio 2017 SPA Template for Angular 2 and looking to implement it in my project. My goal is to have the HomeComponent display the name of the logged-in user, which is stored in local storage using NgxLocalStorage, afte ...

Utilize Axios in Vue.js to fetch and process data from a REST API endpoint in C#

After successfully creating and deploying an API on Azure, I am trying to display the response in an alert box using javascript (Vue.js). The test method of my API returns the string "working". You can test the API here. This is the code snippet from my A ...

Experiencing difficulties with installing better-sqlite3

I'm currently utilizing webstorm as my preferred IDE, and am facing difficulties while trying to set up better-sqlite3. Every installation attempt results in the following error message: Update: I have followed all the troubleshooting steps listed on the ...

Exploring the Ins and Outs of Debugging JavaScript in Visual Studio Using

I encountered a peculiar issue while testing some code. When the program is executed without any breakpoints, it runs smoothly. However, if I introduce a breakpoint, it halts at a certain point in the JSON data and does not allow me to single-step through ...

Utilizing Angular2 with Webpack in Visual Studio 2015

Is there a way to utilize Visual Studio 2015 alongside Webpack and Angular2? I have successfully created an Angular2 App with VS, but now that I've added Webpack to build my app, I would like to debug all of my code using IIS Express. I want to be able to ...

What is the best way to troubleshoot issues in Visual Studio when using Angular, Firebase, and Chrome that result in a "Browser or

I'm currently using Visual Studio for debugging an Angular application that requires authentication through Firebase. I have successfully installed the "Debugger for Chrome" and everything is running smoothly until I need to log in, which authenticate ...

Are there any specific processes within Visual Studio and TFS that cater to bundling and minifying client libraries during the TFS Build stage?

Seeking to streamline my workflow for managing client libraries obtained through NPM or Bower. Avoiding the inclusion of client libraries in TFS source control. When a different developer fetches the project, their local Visual Studio and NPM/Bower ...

Configuring Visual Studio Publish settings for Single Page Applications deployed on Azure

I have set up my Azure App Service and downloaded the publish profile settings to use FTP for publishing my single page app to Azure. However, I am interested in configuring this process in Visual Studio similar to how one would publish a .Net application ...

Using getter functions and Visual Studio for TypeScript

In my TypeScript classes in Visual Studio, I have been implementing getter functions. I find that using getter functions helps to clean up my code, although there is one issue that I would like to address. class Foo { doWork(){ console.log(this.bar ...

Multiple instances of node.exe processes are being spawned due to the Task Runner Explorer in Visual Studio 2015

Currently, I am utilizing gulp for the development of a website project. The task runner explorer in Visual Studio 2015 is able to detect the gulp file, allowing me to execute tasks from there. However, there has been an issue where numerous node.exe proce ...

Integrating with Visual Studio, this exceptional Addin brings forth a remarkable capability of visually representing a handpicked

I have a vast collection of xml files, and within some elements, there exist json serialized objects. These objects are quite challenging to comprehend and modify. Therefore, my inquiry is as follows: Does Visual Studio offer any add-ins that can enhance ...

Initiating a Page with Dynamic Modal Window according to Backend Exigencies

Dear experts, can you help me with a problem? I want to implement a modal window on an vb.aspx page if a specific condition from the codebehind query is true. How can I achieve this? Thank you! ...

Issue: Generated JavaScript files not visible in Visual Studio when using TypeScript.Explanation: When working with

Is there a way to locate the JavaScript files generated from the TypeScript file in Visual Studio 2015? It seems that although the JavaScript files are present in File Explorer, they are not visible in the solution explorer. I attempted to add the _refer ...

What can I do to troubleshoot the "npm run build" command not being found error?

Within my script, this section is included: "scripts": { "start": "webpack", "compile": "tsc -p tsconfig.sequences.json", "build": "npm-run-all -p compile start", However, I ...

HTML forms are larger in size on web pages than in Internet Explorer

https://i.stack.imgur.com/bUPtm.png I have posted the issue, and it is predominantly visual in nature. When viewed on a web browser within a C++ interface, the HTML appears significantly distorted. ...

Is it possible to execute Visual Studio classes (unit tests) directly from an Excel spreadsheet?

Just a quick question: Is it possible to click a button in Excel that triggers a specific C# unit test in Visual Studio, while also sending and receiving data from Excel? I have experience with running test cases in HP QTP/UFT, but now I am using Selenium ...