Category "visual-studio"

Why is Windows Defender scanning my code?

I am compiling C++ code using Visual Studio 2019. The code ranges from simple projects to learn C++ features to game dev. But no matter the scope of the project

Unity gyroscope reads only two axes

I want to make it so that the gyroscope will only change the x and y-axes of an object. There is code for one axis and for three axes (mostly used), but I could

How to develop ms excel ribbon functions

how to develop ms excel ribbon functionality not COM add-ins or VSTO add-ins. Using visual studio Thank you I want to implement excel ribbon functions to valida

Google application credentials in azure app service (aspnet core web api)

So I am using Firebase SDK to send push notifications to my android clients. On local IIS this is how I have configured FirebaseSdk. In Startup.cs I have Fir

Visual Studio: ScriptLoggingBuilderExtensions.cs not found when debugging

I am using Visual Studio version 16.7.3 (latest) and recently came upon a problem. I am creating an Azure Function, using .net Microsoft.Azure.WebJobs. Everythi

SEC_ERROR_INADEQUATE_KEY_USAGE on accessing webapp published using Visual Studio

I created a Blazor Server webapp and published it from Visual Studio using right click on the project - publish. I am publishing to a local folder, amongst othe

Is there a way to generate XML-style comments for all methods/classes in project?

When using an IDE like Visual Studio or Rider for C#, writing triple-slashes auto-completes to an XML-style comment, along with fields for input and output (whe

I'm having trouble connecting Visual Studio 2019 to the Microsoft Hololens v2 Emulator for deployment

I am trying to deploy a simple unity app to the Hololens v2 emulator. I followed some tutorials to build the unity files according to the Hololens build framewo

Private Artifactory Package not showing up in Visual Studio

in the past hour I used Visual Studio to package a NuGet .nupkg file, and then used the following commands to push my .nupkg file to a private artifactory repo:

VS 2022 Setup Project Uninstall Registry Key - InstallSource = Package Cache

My IT dept. is telling me that usually apps copy the install MSI to ProgramData\PackageCache and updates the registry key to point to this location. They want m

How can I embed a variable on build from a text file I read?

I am working on C# winform application and I had setup .env files with this package https://github.com/tonerdo/dotnet-env, the problem is I can't access my data

How to install Entity Framework in a .Net Framework v4.6.1 application using Visual Studio 2017

My first steps in C# are horrible. Now I'm trying to install Entity Framework. For doing that, I just go to the NuGet package manager, I type "Entity" and try t

Could not load file or assembly 'System.Buffers, Version=4.0.2.0...'

I'm getting the following exception when trying to call GetDatabase method of the MongoClient class after adding a new configuration using VS config. manager: C

Microsoft Visual Studio 2019: Unable to locate .NET Core SDK

When I try to create an Azure Timer Function in a Function App in Visual Studio Code 2019, I get the following error: Unable to locate the .NET Core SDK. Check

How to recover missing SQL auto-recover files in SSMS (Microsoft SQL Server Management Studio) after unexpected shutdown

My SQL Server Management Studio (SSMS) closed unexpectedly. Many SQL files were open. When SSMS was restarted, it did reopen some auto-recover files, but not al

Connecting an ObservableCollection to Listview for a Windows Application UI (Visual Studio C#)

I'm working on a project where an application displays data by pulling it from a file and displaying a new data value every second. (edit: consolidated code at

NuGet Unable to load the service index for source Authentication failed

Since today for some reason I'm unable to connect to the NuGet package manager through Visual Studio. [nuget.org] Unable to load the service index for source ht

How do I force Visual Studio 2019 to generate a .deploy file for an icon for ClickOnce deployment/install

I'm running into a problem publishing/installing a ClickOnce application being built in C# in Visual Studio 2019. The application is being built using .NET Cor

visual studio 2019 cant exclude folder from build in .csproj

I am trying to exclude an entire folder from being build in my vscode project, I have edited my project file to look like this: <Project Sdk="Microsoft.NET.S

Naive reverse string iteration infinite loop and/or assertion failure C++ / Visual Studio 2022

I am trying to reverse iterate through a string, but am getting assertion failure for the [] operator in the latest VS. int foo() { std::string s = "s";