Questions tagged [visual-studio]

Microsoft Visual Studio is an IDE for the .NET family of languages.

Filter by
Sorted by
Tagged with
0 votes
0 answers
182 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 ...
Cem Polat's user avatar
  • 127
1 vote
1 answer
128 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 ...
Mark Olbert's user avatar
1 vote
1 answer
211 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 ...
SturmGhost's user avatar
-1 votes
4 answers
547 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 ...
Dominique's user avatar
  • 1,910
3 votes
1 answer
5k 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 ...
Izzo's user avatar
  • 205
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 ...
Hopeless's user avatar
  • 159
3 votes
2 answers
599 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 ...
Daedalus's user avatar
  • 147
-3 votes
1 answer
285 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 ...
Buretto's user avatar
  • 117
1 vote
2 answers
320 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 ...
FISOCPP's user avatar
  • 147
-3 votes
1 answer
50 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 ...
Simon Spasskiy's user avatar
0 votes
0 answers
489 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. ...
GisMofx's user avatar
  • 379
1 vote
2 answers
1k views

How to speed up my software development workflow? I'm using Visual Studio 2019 to build, compile, run tests for dotnet, C#, Docker containers, etc

I am primarily working with C#, dotnet and Visual Studio 2019 with extensions like Resharper enabled. Visual Studio with Resharper is a memory hog. I currently have the following PC at home where I ...
miniGweek's user avatar
  • 127
5 votes
2 answers
590 views

Where can I put project dependencies

I've just finished my studies in Computer Science and now I'm working. The problem is I'm the only computer scientist in my company and I'm probably taking a lot of bad habits. I would like to correct ...
Raph Schim's user avatar
1 vote
1 answer
4k views

Managing .resx resources files for multiple languages application

I am currently developing a software for a multi languages environment using visual studio (en, fr and es). The soft is some kind of a 3d configurator, if I take the exemple of a car configurator, the ...
TontonVelu's user avatar
1 vote
0 answers
151 views

List all interfaces from a TypeScript project

I need to have compiled in a single file all the interfaces that extends a particular interface for doing some refactoring work (long story). I'm using Visual Studio 2019, but I didn't find any ...
Alby87's user avatar
  • 119
-2 votes
4 answers
292 views

How do I handle 2 or more parallel development environments on different machines?

I have a Windows PC and a Ubuntu laptop that I use for development. One of my main issues is that I switch between them multiple times a day, but because they are different machines, I am unable to ...
Josue's user avatar
  • 29
1 vote
1 answer
2k views

Common methodology for organizing C++ source/header/library/resources? [duplicate]

I'm currently working on a C++ project in Visual Studio and can't make up my mind on how I should be organizing my files. As of currently, my file directory looks similar to the following. ->...
Izzo's user avatar
  • 205
5 votes
1 answer
707 views

How to "state of the art" integrate multiple sub-modules with duplicate dependencies?

I am currently working on a project which will consist of multiple sub-modules. Each sub-module is developed and unit-tested in its own repository. All sub-modules have to be integrated in one main-...
mezorian's user avatar
2 votes
1 answer
187 views

When developing for C++ in Visual Studio, is there a quick way of being able to test your code as an exe and DLL?

I'm developing some C++ code that eventually will be compiled as a DLL to be accessed with Python through CTypes. My workflow is generally that of compiling the DLL and running the Python script ...
MW2023's user avatar
  • 123
0 votes
2 answers
214 views

Need a Git branching how-to

Using GitFlow, I created a new class on the develop branch and gave it a property: Public Class Class1 Public Property Property1 As String End Class I committed that change and created a new ...
InteXX's user avatar
  • 245
1 vote
3 answers
5k views

Is it possible to throw compiler error when attempting to use an unimplemented method?

The backstory is long but the general idea is that I'm beginning an iterative refactoring process to replace a poorly designed data access layer with a new one under constraints from above. We can't ...
christok's user avatar
  • 177
6 votes
4 answers
6k views

Extension methods vs. Static Class Methods

I've taken on a Visual Studio C# project where my previous colleague used a lot of Extension Methods in static classes over multiple files depending on the uses. In my previous experience I would be ...
Nayrb's user avatar
  • 2,504
5 votes
3 answers
2k views

Does the output of a compiler depend on the OS you are using?

In the company I am working in we have a management software, written by an external programmer. Let's call the software PK. PK was initially written in the 90s using C++. Since then it was regularely ...
CKA's user avatar
  • 161
3 votes
2 answers
7k views

What's the best way to design batch job type processing

I'm working on a portion of an ERP system where I need to process data in a way that's similar to a series of batch jobs, and I'm struggling with deciding the best program architecture to use. I'm ...
Ben Rubin's user avatar
  • 151
1 vote
1 answer
128 views

Collection of APIs making up one Application - How to manage?

We have inherited an application that is made up of small .NET web API's. Each API has its own Visual Studio SLN and git repo. All of the APIs are published to one folder ("All") and that folder is ...
4ndy's user avatar
  • 121
1 vote
2 answers
154 views

Are two .net web applications necessary?

We have one single internal website. Underneath this website (in IIS) we have two web applications: 1-Main web application 2-Web services (created using the visual studio web api project template) ...
steve's user avatar
  • 11
0 votes
1 answer
321 views

TFS/VS Branching strategy with separate Web API's

So we have 3 branches that match our environments for all our projects (Dev, Test, Main). We have a dev server, test server, then production server and when we commit to each branch a build and deploy ...
user441521's user avatar
1 vote
1 answer
698 views

Is my DataAccessLayer well implemented?

I have 3 projects in my solution : An ASP MVC project A console app project A class library project (the DataAccessLayer) I didn't want to recreate an ADO.net entity data model for each project so I'...
flofreelance's user avatar
30 votes
1 answer
40k views

Directory structure for a .NET Solution

We had a contractor visit recently who questioned our methodology of structuring projects. Please note that I am specifically referring to the directory structure. He suggested using the Microsoft ...
w0051977's user avatar
  • 7,081
12 votes
1 answer
393 views

Is there any way to make a .Net library for Windows and Mac, with platform dependent references?

We're trying to develop a cross-platform app for desktops (Windows and Mac) using C#. The app contains a massive amount of platform dependent stuff and our team lead wants us to write all of that code ...
Clearer's user avatar
  • 229
2 votes
1 answer
881 views

Cross-platform library: how to organize project?

Our company develops and sells a cross-platform C++ library. We distribute binary only versions for Windows, Mac OS X, Linux, iOS, Android, etc. The only source code the customers get is the header ...
Snowbody's user avatar
  • 261
0 votes
1 answer
265 views

What are the dangers/downside of unit tested dynamic library(DLL) being different from released library?

This is similar to: https://stackoverflow.com/questions/1278831/unit-tests-in-production-release-code# but more specific. At the moment the DLL I ship and the DLL I use for unit testing have ...
legokangpalla's user avatar
1 vote
1 answer
867 views

Questions about business logic layer and data access layer in a project

I would separate the BLL from DAL as a best practice. I interact between BLL and DAL via interface. Example: public interface IProductRepository { void Add(Product myProduct); Product Get(...
pampua84's user avatar
  • 133
2 votes
2 answers
289 views

How to debug in visual studio 2015 when your web app. need to login via another web app?

My web app (under development) need to login via http://devWebServer/ExtApp/login.aspx After login via address above, it will pass cookie to http://devWebServer/myApp/Login/Default.aspx and continue ...
Pop's user avatar
  • 219
10 votes
4 answers
4k views

If you follow the rule of Zero, how will you debug the construction of an object?

Everyone is quick to point out the "Rule of Zero" in code reviews, peer conversations, and Stack Overflow comments/answers. I am not a believer. I'd like to be. Usually if enough people agree on ...
Christopher Pisz's user avatar
3 votes
3 answers
1k views

How can I painlessly upgrade my team's codebase to Visual Studio 2017?

So our team has products that currently runs on Visual Studio 2013. Now we want to move to Visual Studio 2017. So I've been assigned the task to make the transition to Visual Studio 2017 as painless ...
Lester Dela Cruz's user avatar
5 votes
1 answer
3k views

Separate projects in visual studio vs folders in a single project for microservices

Unsure if the question is too broad, or opinion based. Though will ask anyway. I'm currency reading through Microsofts "Architecture eBook", found https://www.microsoft.com/net/learn/architecture. It ...
Darren Wainwright's user avatar
14 votes
6 answers
5k views

Forbid calls to arbitrary functions/classes in external code

I've experienced cases where it would be valuable to restrict access to the API of external libraries and frameworks to prevent negative consequences in the system. For example, in a SharePoint ...
Alex's user avatar
  • 402
1 vote
2 answers
698 views

Working with Fluent API [closed]

I know they can be more natural to write, but I'm finding it conceptually hard to 'read' fluent API method chains. There's so much going on in a couple of lines. As an example from the Nest ...
Matt Evans's user avatar
  • 1,015
1 vote
1 answer
401 views

Project.json and NuGet on a Xamarin.Forms Project

I am relatively new to Visual Studio (I've spent most of my life on Linux) and I am fairly befuddled about the Windows build process, especially regarding NuGet. I have a Xamarin PCL solution with ...
johnnyb's user avatar
  • 113
0 votes
1 answer
86 views

Distribute small-scale software

A friend has asked me to write a small software program for his own purpose. I haven't started it yet but am thinking about how to distribute it. I mean, there are licensing, encryption and things ...
Curiosity's user avatar
  • 111
-5 votes
2 answers
129 views

Which applications are developer environments and operating systems coded in?

I have been wondering about this for a while. What applications is programs like visual studio programmed in? But also, where is operating systems like android, ios and windows written in? I just ...
AndreasWT's user avatar
2 votes
1 answer
2k views

How to deploy several Azure Functions with VSTS?

I have created in Azure 2 Azure Functions resources with the following names: FrontApiFunctions PostProcessingFunctions My Visual Studio solutions is like this: AllFunctions.sln |- ...
JuChom's user avatar
  • 131
4 votes
2 answers
1k views

IOC Classes are polluting my project

Say I have a C# app, which is layered. I want to test the domain layer independently of other layers. Therefore I have created a Domain Layer project with three classes e.g. Person, Order and ...
w0051977's user avatar
  • 7,081
0 votes
0 answers
84 views

Creating a common ancestor form in Visual Studio

I have 5 forms which in hindsight should have an ancestor descended from Form. Unfortunately, the common elements of the forms is a splitContainer and a listbox in one of the containers. Each form ...
Loren Pechtel's user avatar
0 votes
2 answers
1k views

When should I care about code metrics in Visual Studio?

Occasionally I look at the code metrics in visual studio for my solution. I don't ever see anything I would find alarming. My maintainability is usually pretty high with exception to some obvious ...
Shelby115's user avatar
  • 465
2 votes
1 answer
1k views

Project structure for cross platform?

How do I make a good project structure that allows me to work on Linux as well as Windows with Visual Studio? So far I've only been using my Linux machine when working on my project and I used this, ...
stav's user avatar
  • 147
1 vote
0 answers
167 views

How to separate source code directories from build directories with VS Xamarin solutions

I've been using CMake for years when developing in C++ using Visual Studio. My directory layout has always seen me separate source code directories from build directories. For those who are not ...
Ash's user avatar
  • 219
2 votes
3 answers
6k views

Where should the logger be in a multi-project asp.net solution?

I have a Visual Studio solution with 4 projects, that closely follows the Nop-commerce structure. The following is the structure of my solution. - Core - Data - Services - Web The Web project is an ...
Sнаđошƒаӽ's user avatar
1 vote
1 answer
652 views

Architecture for Windows 7 Embedded and Windows 10 IoT

I am in the process of refactoring a large application originally written in .NET 2.0, running on an old version of Microsoft's Compact Framework. The idea is to refactor and rewrite the code so that ...
Excavator's user avatar

1
2 3 4 5