Questions tagged [visual-studio]
Microsoft Visual Studio is an IDE for the .NET family of languages.
254 questions
8
votes
4
answers
2k
views
Entity Framework - Is there a safety mechanism to prevent accidentally running Update-Database?
When using Entity Framework and running the Update-Database command, non-updated applications that rely on the database crash due to database context changes.
Usually teams have a production database ...
1
vote
3
answers
580
views
Autogenerate DTO classes?
Yesterday I screwed up:
One of the classes of my C# contained a property, called "DeliverdQuantity" (yep, there's a spelling mistake indeed). When I saw that, I decided to correct that, ...
16
votes
6
answers
10k
views
Unstable output C++: running the same thing twice gives different output
So, the problem:
When I run the same C++ code in Visual Studio, with the same input and parameters, I get either the correct output, or an output that is completely messed up (99% of values go to zero)...
1
vote
0
answers
87
views
When taking sections of an existing c# codebase to create a module/package of code for general use, how should we configure the module?
When spinning off sections of a (C#) codebase to create libraries/package for use by other users within a team/organization, what are important considerations in terms of code & package ...
0
votes
0
answers
523
views
Porting a 32-bit Win32 DLL driver to 64-bit when a 64-bit DLL is unavailable in C++
I have a legacy 32-bit Win32 DLL driver that interfaces with a test equipment. I possess the API header file for this driver, and I dynamically load the DLL at runtime within my C++ test application ...
1
vote
1
answer
370
views
Advice on Developing Shared Public Libraries in Visual Studio
I’m looking for some advice on best practices for Visual Studio workflows.
I maintain several C# libraries which I use in various projects I develop. I also make them available publicly, as packages ...
1
vote
1
answer
236
views
Newbie: OOP working with different class-datatypes and loop through them
I'm relatively new to OOP. Let's say I have three different objects/classes defined, like:
Public Class Part
Private m_Name As String = ""
Public Property Name() As String
...
-1
votes
4
answers
876
views
Best practice for knowing the link between binaries (*.exe and *.dll) and their source code?
I'm working in a company, where we work with a kind of plug-and-play system:
An executable is put inside a central directory, and there is a Modules directory, where DLL files can be inserted, which ...
5
votes
1
answer
8k
views
What is the benefit of using "filters" instead of "folders" in Visual Studio C++ projects?
I noticed that the default behavior for Visual Studio C++ projects is to organize files using filters instead of folders on disk. Essentially all the source files within the project are stored in the ...
3
votes
1
answer
2k
views
Strategies to organize multiple projects which may reference each other and managed by different teams in Git?
First actually I don't think Git is a specific involved tool here, it can be any other Source/Version Control tool (TFS, SVN, ...). The point here is how to deal with the scenario in which I have ...
3
votes
2
answers
781
views
1 Central Development Server vs. Individual Workstations
Alright so here's the situation...
All of my coworkers are used to RDP'ing into a Windows server and doing all of their work there. Whether it be coding, SQL work, etc. Multiple developers connecting ...
-3
votes
1
answer
320
views
Would structs be better than classes in this scenario?
I've recently been developing a networking application layer (or at least attempting to) for my game I've been working on. I think I've got a decent basic idea for the system now, but there is ...
1
vote
2
answers
351
views
How to reuse production code - for writing supporting tools?
A little history - skip to the TL;DR if you so wish to.
So I have an UWP application written in C++ that utilizes V8 and have synthetic module which allows calling native methods from the embedded JS ...
-3
votes
1
answer
62
views
Do you recommend having a template scripts?
I am pretty much new to programming, but recently I began to learn C# intensively for Visual C# and for Unity. I have noticed that I use many scripts that have absolutely the same content in different ...
0
votes
0
answers
647
views
Structuring a "Large" Windows Forms Project and Solution To something with Multiple Sub-Projects
I've willingly inherited a VB.Net forms project based on .Net 3.5 last edited with VS2012. I was able to open it up and up-convert it to VS2017. I can compile and run it and make some little tweaks. ...