Questions tagged [visual-studio]

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

Filter by
Sorted by
Tagged with
6
votes
2answers
14k views

What is the difference between C# and Visual C#?

Let's say I want to start learning C# so that I can program Unity with it. I look for a well-reviewed book and it says: "Learn Visual C#!". I ask myself what the difference between Visual C# and C# is....
-3
votes
0answers
21 views

visual studio code debugger: Attach c++ subprocess to python process

I am trying to run a mixed python/C++ project with the visual studio code (vscode) debugger. The project launches first as a python process - this process handles user input, and manages user-...
0
votes
1answer
29 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 ...
1
vote
0answers
44 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 ...
-2
votes
4answers
160 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 ...
0
votes
1answer
75 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. ->...
4
votes
1answer
156 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-...
0
votes
1answer
704 views

Maintain two different versions of similar code [duplicate]

I'm working on a special project where I need to create a new application with a similar but restricted functionality of an original application (basically a type of free application with limited ...
1
vote
2answers
880 views

Making localization files easy to use for translators

I want to make my application available in many languages. I started using Resource Files, but there is a little problem with them. I want other people to have access to these files. Visual Studio ...
2
votes
1answer
108 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 ...
0
votes
2answers
170 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 ...
1
vote
2answers
137 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) ...
5
votes
3answers
378 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 ...
1
vote
3answers
242 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 ...
10
votes
1answer
3k views

Purpose of the csx folder in Azure projects? [closed]

I'm fairly new to Azure but I noticed that Visual Studio auto-creates the following folders (among others) ... /<nameOfAzureProject>/bin /<nameOfAzureProject>/obj /<nameOfAzureProject&...
2
votes
4answers
2k 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 ...
3
votes
1answer
837 views

Tips for understanding big project fast? [duplicate]

I've got a job and many new things to be learned. The first thing is to understand big project, writtened mostly in C++, using Visual Studio. So, I see a statement, and I want to find its definition. ...
26
votes
4answers
12k views

Why would a development team insist that using a single solution for multiple projects in Visual Studio “increases interdependence complexity”?

I'm helping to manage an external team who are starting to develop new versions of some existing products. Historically, this team has always used a model of a single project in a single solution for ...
3
votes
2answers
3k 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 ...
1
vote
0answers
24 views

DataTable Processing: Want lowest result

(Hi there, not entirely sure if this is the right place to ask, sorry if it isn't!) I am knocking up a fairly quick and dirty Visual Basic.NET application that essentially is a DB UI for my day job, ...
8
votes
2answers
7k views

Have the unit test “using” the project, or just have same namespace?

Background I am working on a project with C# .NET, and I've just added a new unit test project to my solution in Visual Studio. The way that I always have been doing this is: Create a new unit test ...
1
vote
1answer
111 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 ...
1
vote
0answers
75 views

/// <summary> comments without the bloat [closed]

I like the documenting feature you get with /// comments, but hate the boilerplate. Is there a way to make visual studio just use whatever comment is above a class as the documentation, without ...
2
votes
2answers
7k views

Visual Studio build everytime JS and CSS changes?

I am relatively new to Visual Studio Development and I was wondering - it seems that everytime I make changes to my JS or CSS in my project - I have to "build" the project again. Is there any way to ...
0
votes
1answer
202 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 ...
15
votes
2answers
4k views

Is Microsoft discouraging the use of 'var' in C#? (VS2017)

I'm looking at the upcoming Visual Studio 2017. Under the section titled Boosted Productivity there is an image of Visual Studio being used to replace all occurrences of var with the explicit type. ...
16
votes
4answers
11k views

Where to put the Angular app in a ASP.NET Web API solution?

I'm starting a greenfield app and I want to use ASP.NET (4.6) and Angular 2. For the backend I have created a project in Visual Studio, and now I'm wondering where to put the Angular app. I really ...
2
votes
2answers
185 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 ...
1
vote
1answer
550 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'...
10
votes
3answers
16k views

Abstract Property In Base Class To Force Programmer To Define It

I'm coding with a state pattern for an embedded device. I have a base/abstract class called State and then each discrete(concrete) state class implements the abstract State Class. In the State Class ...
16
votes
1answer
18k 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 ...
6
votes
3answers
1k views

How to programmatically control a GUI application?

I have a couple of users who have a User Interface for an application that they must use to do their job. The UI can be cumbersome to navigate to perform some time critical tasks. This UI does not ...
12
votes
1answer
219 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 ...
3
votes
1answer
2k views

Can I do commercial web development with the Community edition of Visual Studio?

A friend of mine has a small company that needs a new website, and I am interested in helping him, since I have worked a bit with Asp.net MVC. However, I am not sure if I'm allowed to sell or give ...
2
votes
1answer
498 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 ...
0
votes
1answer
130 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 ...
1
vote
1answer
392 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(...
2
votes
2answers
2k views

Logging Implementation in a project using a class library or a web service

I'm currently working on a requirement to implement logging in multiple projects and require to develop a enterprise level logging application that can be using in n number of projects. Present ...
2
votes
3answers
2k views

Is it good to create static method at Visual Studio refactoring?

There are various refactoring options in Visual Studio to use at the time of coding. When we extract and create a new method. Then Visual Studio decide whether the new method will be static or ...
18
votes
3answers
8k views

How can I target both Windows 10 UWP and Windows Phone 8.1 in the same app?

Background From a developer's viewpoint, the main selling point of Windows 10 is its new Universal* Windows Platform (UWP). * Where "Universal" really means "universal to all devices that run ...
5
votes
4answers
2k 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 ...
3
votes
3answers
759 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 ...
4
votes
2answers
2k views

Organizing Visual Studio solution for microservices?

We're starting to refactor one of our major products to a more microservices-oriented architecture. Presently we're using the Implementing Domain Driven Design folder structure to organize the source ...
4
votes
1answer
1k 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 ...
12
votes
5answers
3k 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 ...
2
votes
1answer
820 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, ...
1
vote
2answers
528 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 ...
0
votes
1answer
319 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 ...
0
votes
1answer
73 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 ...
2
votes
1answer
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 |- ...