Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

-1
votes
0answers
38 views

Automatic code editing to obey SA1201 StyleCop Rule

I added StyleCop to my project, and started editing it to make it more readable, but now I realized that there are about 1000 warnings about SA1200. Is there any way to automatically edit it in whole ...
1
vote
1answer
58 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
2answers
88 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) ...
0
votes
1answer
20 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 ...
0
votes
1answer
114 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'...
5
votes
1answer
649 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 ...
12
votes
1answer
179 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 ...
2
votes
1answer
192 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
0answers
107 views

Single .exe or two? VB.NET Userform and Python Data Analysis Script

I am wondering about integrating a Windows Form written in VB.NET with a python program saved as a single exe. I have been doing data science in python for a while but have no exposure to creating ...
0
votes
1answer
68 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 ...
0
votes
0answers
26 views

Does it make sense to put WCF proxy lib into nuget?

In the enterprise environment we have a lot of windows programs and local WCF services. Programs are really light, they don't connect to the database directly, they use services. The problem is, that ...
1
vote
1answer
203 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
154 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 ...
5
votes
4answers
640 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
459 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 ...
3
votes
1answer
360 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 ...
0
votes
0answers
62 views

Redirecting the debugger back to user code when stepping through engine code in C++

I have a project (C++, Visual Studio 2015) where I'm thinking of making the API for a library take lambdas or function objects so that the user has a place to put debug breakpoints to know what higher ...
11
votes
5answers
2k 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 ...
1
vote
2answers
264 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
186 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
70 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 ...
-5
votes
2answers
115 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 ...
1
vote
1answer
1k 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 |- ...
4
votes
2answers
666 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 ...
0
votes
0answers
60 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 ...
0
votes
2answers
372 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 ...
2
votes
1answer
516 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
0answers
95 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 ...
1
vote
3answers
957 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 ...
1
vote
1answer
342 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 ...
-5
votes
1answer
514 views

How does the typescript transpile function work

Assume the following: /// file.ts var x = "hello"; x = 1; console.log(x); /// file.ts function transpile(fileName) { ... } What steps would typescript take to transpile the file? How and when ...
0
votes
1answer
135 views

Using Git with multiple servers

I want to use a gitflow-like workflow, but with two servers. That is, regular work happens on server A and the release branch is hosted on server B, from where the release tags are created. Commits to ...
5
votes
2answers
692 views

Where do I define WCF client endpoints in a test project?

I have a class library-- call it Services.dll-- which is a wrapper for some third party functionality. The third party gave us a bunch of DLLs and those "inner" DLLs call a WCF service. Normally, ...
4
votes
2answers
1k 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

How should Visual Studio Solutions and Projects mapped to Visual Studio Online GIT Projects and Repos?

I have a number of visual studio solutions and projects (many projects may belong to multiple solutions) that I would like to add to Visual Studio Online (GIT Version). An example would be: Solution ...
4
votes
1answer
335 views

Abuse of XML comments to keep comments up-to-date (in C#)

Problem: Comments deteriorate when renaming a variable/class/method/etc in Visual Studio. Occurrences of said symbol in comments do not get updated by refactoring (no surprise, how could VS know). ...
4
votes
1answer
115 views

Managing Database Connections with WebAPI

I am working to implement a Web API solution for development. I have a few C# console apps that run on a server and have their own data access operations, as well as a MVC app running on a similar ...
0
votes
1answer
143 views

Introducing version control with a simple pull request workflow

I have very little experience of using a version control system and my work colleagues have no experience though I would like to introduce one into our team as the current workflow (non-existent ...
4
votes
2answers
110 views

How can I publish a Visual Studio Web Application when not all files are in the project?

We have a solution containing a web application project (mostly webforms) and two separate "config" projects that are copied over depending on which client's specific output is needed. Presently to "...
3
votes
2answers
784 views

What is the preferred way to get data from database for data that frequently used?

Says, I have employee table, with {id, name, unit, etc..} what is the preferred ways to get this data if I frequently use this data, my first option is to query it from database when needed, something ...
-1
votes
1answer
79 views

Collaborating on a visual studio project

In our company I started to develop an ADDIN for a drawing application. The first results of this ADDIN were reviewed as successful by the direction and they want to increase the workload on the ...
32
votes
4answers
2k views

Strategies for merging 1 year of development in Visual Studio

I have a client who insisted that we keep our new development separate from the main branches for the entirety of 2016. They had 3-4 other teams working on the application in various capacities. ...
14
votes
2answers
2k 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. ...
0
votes
1answer
374 views

Does C# project with configuration file only seem to be an architecture flaw?

I have multiple related projects in one Visual Studio C# solution, which in general have similar architecture of WCF business logic services and ASP.NET clients. In order to host these services, I ...
0
votes
1answer
274 views

Sharing public key certificate

I'm working on a piece of software in Visual Studio. I created a PKCS#12 archive in Visual Studio to strong name sign my assemblies. I then extracted the public key from the archive using OpenSSL. I ...
0
votes
1answer
300 views

Developing & Running Apps in VS - x64 vs x86 (on x64 machine)

I develop (mainly UWP apps for personal enjoyment atm) on a x64 laptop, but in Visual Studio I have been blindly using the default x86 solution platform. Should I be using x64 or x86? (so ashamed to ...
1
vote
1answer
139 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 ...
22
votes
4answers
6k 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 ...
2
votes
2answers
1k 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 ...
0
votes
2answers
685 views

ASP session between iframe and page

I have a situation where my ASP.NET MVC application can be loaded directly or in iframe. It uses ASP.NET Identity. When I open the site from iframe, log in and after open the site directly it keeps me ...