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
5 views

How to debug C++ Electron addon from Visual Studio

I'm trying to do a debug step-by-step of my C++ addons that is used within a simple Electron App. The problem is that the break points are never loaded, even if I can see that Visual Studio loaded ...
0
votes
0answers
9 views

Entity Framework - System.Configuration error

So, I'm making a xamarin forms app, and I have a web service that share my data models to each other. It all works fine for my web service, but when I try to build my app, I get the following error ...
0
votes
1answer
15 views

VB.NET tableadapter returns integer value instead of text

I'm trying to show a messagebox with the users first name from a dataset but I keep getting an integer returned. Below is the code I'm currently using to get a 1 returned. The datatable only ...
0
votes
1answer
28 views

Unsupported preview of next C# version not available in .Net framework project

I am using VS 2019 and looking in project advanced build settings. It seems the option to use C#8 is only visible in a .Net Core 3.0 project (the entry below isn't present for a .Net Framework ...
0
votes
0answers
6 views

What is this ring-looking icon in Visual Studio solution explorer?

What does this icon represent? Looks like a folder but with some additional specialism. This is how it looks before: And this is how it looks after it is dropped down:
0
votes
0answers
20 views

Publish Program in Visual Studio and show message to user

I'm using the option 'Publish' of the properties of a project to create an installer for an application made with visual C #. My question is: Is there a way to show a window or something similar ...
-1
votes
0answers
17 views

Visual Studio 2019 is Built in What Language/Technology?

I'm trying to find in which language or technology VS 2019 is built in. I remember there was a version of VS that was built with WPF. I wonder if they still use WPF or what technology they use. A ...
0
votes
0answers
8 views

Visual Studio 2019 memory profiler tool lists all objects in managed heap as UNKNOWN

When using the visual studio 2019 memory usage profiling tool the snapshots don't say what the objects in the managed heap are. It simply has a lists of objects as follows Object Type Count Size (...
0
votes
1answer
33 views

What does number part of mangled name for anonymous namespace variable generated in Visual Studio means?

I am recompiling a C++ binary using the same sources. OS is Windows Server 2008 R2, compiler is Microsoft Visual Studio 2005. After that I am running dumpbin.exe /ALL /DISASM /RAWDATA:NONE and ...
0
votes
0answers
43 views

I Want to Automatically Modifiy Release date when I build it

I am using visual studio 2010 to develop a desktop application ; however , the date of release is very important , so every time I build a release to produce a setup (.exe) using InstallSheild for my ...
0
votes
2answers
20 views

How to do [HttpGet] from ASP.NET core for arbitrary argument

I learn Angular with APS.NET core and the CRUD principle I have this two methods like: /// <summary> /// Retrieve all items from Books. /// </summary> /// <returns>Books items List&...
2
votes
1answer
50 views

Visual Studio 2017 does not generate any warnings if the variables are uninitialized?

The problem with Visual Studio and warnings when the variables are uninitialized I have tried another compiler like Clang. The Clang was able to generate warnings. //clang 3.8.0 //MSVS 2017 #include&...
0
votes
0answers
37 views

Visual studio is building solution but a project's dll's are not getting into bin\debug folder

I am having this weird issue with Visual studio 2017 (with c#) where I can build the solution and all the projects are built and their dlls' are being copied to the individual project's debug folders ...
0
votes
0answers
5 views

Nuget Packages are not found in nexus repo

I am using nexus OSS 3.15.2-01 and its new instance. Issue we are facing is with nuget proxy repos, if i try it manually curl nuget org on nexus server it reaches the URL. but when i try to download ...
0
votes
0answers
19 views

How to programatically format cells containing time so that the formatting is correctly recognised by MS Excel

I apologise for the long-winded question, but I'm looking for the correct way to properly format cells in the time format so Excel recognises it. There are a lot of answers to questions both here and ...
0
votes
0answers
19 views

How to get list elements of jira custom field with c#?

I'm trying to get elements of custom fields from JIRA.I want to add these elements to windowsform combobox. I can get id and name of custom fileds but I need to get element of dropdonwlist. The ...
0
votes
0answers
28 views

Find root of NaN occurences in Visual Studio 2017 Debugger

I want to find the first occurence of a NaN value in my C-Code. I am currently using Visual Studio 2017 Debugger. Is there an easy way to do this? I imagine a condition that checks all the variables ...
1
vote
1answer
30 views

Running all tests at once result in some of them failing, but when they're being fired alone, then they work fine

I have some weird problem that some of my tests are failing whenever I Run all tests, but when I start them 1 by 1 then everything works fine here's code which fails at seeding InMemoryDatabase It ...
0
votes
0answers
10 views

Build wildcard-fueled group of projects from .sln en-masse to their respective output directories

We have a solution in which our .csprojs are placed inside virtual-folders like so: Solution.sln \- VirtualFolder1 \- Foo.Common.Bar.csproj -> Bar\bin \- Foo.Common.Ping.csproj -&...
3
votes
1answer
64 views

My c# visual studio project generates too much dll files when compilation

I have a visual studio win forms project that works correctly. When I compile this project to generate the release file I see that I have like 30 dll generated. These dll files are mainly System dll ...
-2
votes
0answers
13 views

Startup Project Changes after I zip file and unzip

I have a file with a solution in VS and all its functions, where I set a certain startup project, and when I zip it and then unzip the same file(need to hand it in as a zip), it changes the start up ...
0
votes
1answer
7 views

Why Outlook plug-in load from .vsto while other uses .dll?

Develop a plug-in for Outlook in Visual Studio using c# and .net(4.0) and creates its installer as describe here. It works like a charm. From Outlook Add-ins list all other add-ins are loaded from the ...
0
votes
0answers
9 views

Extending Visual Studio 17 templating

I would like to create a template for visual studio 2017, something very similar with when you create an MVC application and want to scaffold Edit | Create | Delete | Get, you have the option to ...
0
votes
0answers
16 views

Check if variable is defined in PostBuildEvent

I am using the following PostBuildEvent <PostBuildEvent> IF DEFINED $(MyEnvVar) ( mkdir "C:\tmp\" copy "$(TargetPath)" "$(MyEnvVar)/Addins/Software/bin/$(PlatformName)/$(TargetFileName)"...
3
votes
1answer
34 views

How can one in Visual Studio open another GIT-branch without need to commit changes to the current one?

How do one use multiple branches or switch branch without commit? I'm using GIT with VisualStudio and are working in one branch when a colleague of mine ask me to to something in another. I do not ...
0
votes
0answers
15 views

Is there a fast way to create a type alias, using VS + R#?

I like using type aliases for Type names that have gotten out of hand, either from class nesting, or from having complicated names to clarify the intent of the class, or to summarise a repeatedly used ...
0
votes
0answers
8 views

Visual Studio assembly references broken when moving projects

I have a complex software solution that I wanted to separate in several Visual Studio Solutions for greater ease, but it all resulted in a mess, because all the assembly references got broken. I ...
0
votes
0answers
14 views

Path environment variable deleted and Visual Studio not working

Good morning, I deleted the "path" environment variable and now I´m not able to open Visual Studio. I tried most of the solutions that have been commented in other threads, but most of them are based ...
-1
votes
1answer
17 views

How to uninstall .NET Framework 4.8 in Visual Studio 2017 on Windows 10?

I have downloaded the .Net Framework 4.8 from 'https://dotnet.microsoft.com/download/dotnet-framework/net48' and installed it sucessfully. But it doesn't appear in Visual Studio in the target ...
-1
votes
0answers
6 views

Visual Studio Autocomplete Achieves Sentience?

We have an in house Guard class which throws exceptions if the assert conditions are not met. When supplying a string 2nd parameter to the Guard.AssertIsTrue() method call, visual studio helpfully ...
0
votes
0answers
18 views

How to get archived folder calendar route using visual basic

The Second line is to get default folder calendar. myNameSpace = OutlookApp.GetNamespace("MAPI") myNameSpace.GetDefaultFolder(OlDefaultFolders.olFolderCalendar) My question is how do you get archive ...
0
votes
2answers
27 views

how to define constant size for particular cell in datagridview in Visual Studion Winforms?

I want to keep a constant size for rows and columns in Winforms Application Visual Studio V2015. Below is the code for the datagridview I'm using. Image of the datagrid:- https://drive.google.com/...
-3
votes
0answers
31 views

Visual Studio Community 2019 [on hold]

Can anyone tell me if I can use Microsoft Visual Studio Community for C programming? I am finding errors with the simple Hello World program.
0
votes
0answers
19 views

Force file to autostart with Windows in VS's MSI setup

How do I make my executable file start with Windows in Visual Studio's Windows Installation project (MSI setup creator)? Tried to add registry keys, look into 'Assembly' properties. I have the MSI ...
1
vote
1answer
20 views

Visual Studio not recognizing installed Core SDKs

I have three versions of .NET Core installed on my machine: However, both VS2017 and VS 2019 return the following error when I execute dotnet --version command: PM> dotnet --version dotnet : ...
1
vote
1answer
25 views

Cannot open file in terminal using visual code

This is the error I received: Fatal error: Uncaught PHPUnit\Runner\Exception: Class 'tests/FirstTest' could not be found in '/Users/dwayneclarkjr/Documents/Testing/tests/FirstTest.php'. in /Users/...
0
votes
0answers
8 views

the application associated with this project type is not installed on this computer powerpoint

I am building office powerpoint add-ins (Applicable to all office products). When I try to run the office addin. I am getting the below error When I select Ok then I am ending up with another error. ...
-1
votes
0answers
14 views

Running C99 code in Visual Studio 2019 Errors

I have C99 code that I can compile successfully with gcc (tried with gcc-5 and gcc-8). However, now I'm trying to get it to compile with Visual Studio's compiler (using cl) but it doesn't like my code....
0
votes
1answer
18 views

Use preview features & preview language in Visual Studio

How can I turn on C# preview features in Visual Studio? The feature 'nullable reference types' is currently in Preview and "unsupported". To use Preview features, use the 'preview' language version....
0
votes
1answer
17 views

Error while creating socket in C (Visual Studio 2017)

I am trying to make a client/server homework. I use Visual Studio 2017 and already changed the project settings that i can use sockets (Windows Socket Programming in C) but now my console always says "...
1
vote
1answer
43 views

Is there a way to conditionally check if a window is using a scroll bar?

In the application I am working on, 2 buttons are drawn onto the screen relative to a CListBox (let's call it myListBox) that sits directly to their left. The buttons are placed according to values ...
-1
votes
0answers
28 views

How to fix “read access violation” when debugging Notepad++ (compiled from source)

I'm compiling Notepad++ from the source at https://github.com/notepad-plus-plus/notepad-plus-plus. I've built Scilexer.dll with Boost successfully by following the instructions given in the link. I ...
0
votes
0answers
10 views

Filter ASP.NET Core logging in Visual Studio?

When viewing the ASP.NET Core logging stuff in the Visual Studio Output/Debug window, it is just plain text. Any possibility to filter it by cateogory (class name) without adapting code? Is there any ...
-1
votes
0answers
32 views

How to fix: “You must add a reference to assembly 'mscorlib'” error showing on every variable/method call

I just switched computers and I copied my projects folder from my old HDD to the drive in the new one, but one of my projects always show an error on every variable declaration and every method call ...
0
votes
0answers
32 views

OMP does not parallelize sections on Visual Studio 2015

I am developing a mex-file with C++ and OpenMP API. I am trying to execute different sections on different threads, however, they seem to be executed within the same thread. I wrote this example: ...
-2
votes
1answer
29 views

How to make an object shine in Unity

First of all, I'm not providing any code yet, because I can't figure out how I can put in action this idea that I have. I wanna do the following action in my game: When the main character gets close ...
-1
votes
0answers
23 views

Database records saved in bin folder instead of the project folder

I am trying to save some records about the users but the records are saved in the bin folder instead of the project folder. So, when I insert a new record, the record it is not saved where I want! I ...
0
votes
1answer
22 views

No C or C++ compiler found Visual Studio 2017 Cmake

I have seen tons of posts on this particular issue and I have tried about every one that I could find. I am completely lost and stuck on this issue now and I don't really know where to turn. I get ...
0
votes
0answers
7 views

How to link tensorflow bazel built to visual studio?

I have build tensorflow v1.12.1 from source using bazel 0.22.0 on windows 10 for use in C++ CODE IN VISUAL STUDIO. But i want to run my C++ codein visual studio and i am getting alot of link errors. I ...
0
votes
0answers
26 views

.NET Core On-Premises Active Directory Authentication is Missing

I don't have much experience setting up ADFS authentication in the .NET stack so forgive my ignorance if I am missing the obvious: Using Visual Studio 2019, If I go to create a new ASP.NET Web ...