stylecop SA1600 too expansive

So at my job our internal coding standards say that we only want xml documentation on methods. Unfortunately, whenever I run stylecop, I get SA1600 warnings that say I need documentation for things like the class, properties, fields, etc. I know th...
more »

2017-09-08 22:09 (0) Answers

Shared projects and resource files

We have a solution with a shared project that is referenced by two other projects. In the shared project, we have resx files, but we noticed the code-behind Designer.cs file is not updated when adding or modifying terms in the resx. Apparently, cus...
more »

2017-09-05 16:09 (2) Answers

Visual Studio Multi Project Solution Issue

I have this solution in VS 2017 which has multiple projects: Example.DomainModels Example.DataAccess Example.Infrastructure Example.Web So well, my Web project references Infrastructure and the Infrastructure project references DataAccess as well...
more »

2017-09-02 09:09 (2) Answers

Enable C# 7 support in VSTS

It appears that VSTS does not support C# 7, as I'm getting a build error which would would indicate the C# 6 compiler is being used. How do I enable C# 7, or what am I doing wrong? I'm using Visual Studio 2017, targeting .NET 4.6.1. I would rather n...
more »

2017-09-02 02:09 (1) Answers

Change default behavior of "New ASP.NET Project"

Whenever I create a new ASP.NET MVC project, I get this dialog: The one thing I almost always have to change is the authentication (to "None") - either it's jsut a test web that I'm creating and it needs no authentication, or for the case of a "re...
more »

2017-08-30 08:08 (1) Answers

Program that reads and writes integers to a file

Hello and thank you in advance. This is a very simple question but one that is getting on my nerves. What I want is just to ask for an integer to write to a file and then display every integer. I've learned how to either write to or display from a fi...
more »

2017-08-23 19:08 (1) Answers

Visual Studio- Illegal characters in path

This happen after Visual Studio Community 2017 latest update. Every time I try to open my project I get following warning: Warning IDE0006 Error encountered while loading the project. Some project features, such as full solution analysis for ...
more »

2017-08-21 13:08 (3) Answers

Limit Slider TextBox Decimal Places

I have a Slider and Value TextBox. It gives a value with 14 decimal places. How can I limit (not round) the amount of decimals to 2? 75.89 Limit it in the textbox, not process it after. And not snap to tick. <Slider x:Name="slVolume" ...
more »

2017-08-21 12:08 (1) Answers

Using a shared python library in Visual Studio

We have a python library that needs to be shared among many projects and we're trying to find a way to organize and link the shared library to the specific projects that want to use it. It also needs to work without visual studio, meaning that if...
more »

2017-08-14 16:08 (0) Answers

How are unit tests compiled in c# test projects?

I've gone through tutorials on writing unit tests with a "Test" project for my .net 4.5 app but I don't understand how they are running. When I run unit tests that test specific methods of classes in my projects are the entire projects that the meth...
more »

2017-08-12 00:08 (1) Answers

How to save run configurations - Visual Studio Mac

I am developing an asp.net application on macOS with Visual Studio for Mac, and I can specify a custom run configuration. There seems to be no way to specify a run profile, where all arguments and settings in the custom configuration are saved, inst...
more »

2017-08-09 06:08 (0) Answers

WPF Application - Xamarin Visual Studio

I am trying to create a desktop application for windows using Xamarin Visual Studio but i cannot find WPF application. I saw in other S.O questions that Visual Studio does support. Do i have to install any plugin? ...
more »

2017-08-06 17:08 (2) Answers

HttpClient PostAsync Parameter Incorrect

I just deployed Windows 10 64-bit Education on my Macbook Air, a slightly updated installer from my main development PC which also runs Windows 10 64-bit Education. I've installed Visual Studio 2017 and downloaded all of the nugget packaged for my p...
more »

2017-08-05 20:08 (0) Answers

.NET App redirects to login page

Im building an application in Visual Studio. When I run the debug mode, It automatically redirects me to the login page. The start page URL is this: http://localhost:52450/Home but That won't load and redirects to http://localhost:52450/Admin/Login?R...
more »

2017-08-05 14:08 (1) Answers

Casting XAML to XML in Visual Studio

I am trying to cast XAML code to XML code for a WPF project in Visual Studio so I can more easily use with PowerShell. But I am getting the below error. Code: [xml]$XAML = "@ <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presen...
more »

2017-08-05 14:08 (1) Answers

VSTS unprotect git branch

Apparently the guys at VSTS decided to give the UI a new look and feel. Negative side effect: I cannot unprotect a previously protected branch. The option is greyed out. That means every commit needs to surpass a pull request approval - which I don'...
more »

2017-08-05 10:08 (1) Answers

Deploying MDG Technology with Add-in

I created my own toolbox using Enterprise Architect MDG technology. Also, I create an Addin using Microsoft Visual Studio in C# to add some functionalities of that toolbox.  I would like to generate an installation package of all my works. I use Sha...
more »

2017-08-04 11:08 (1) Answers

String to Array, Sort by 3rd Word/Column

I have a string with numbers, words, and linebreaks that I split into an Array. If I run Array.Sort(lines) it will sort the Array numerically by Column 1, Number. How can I instead sort the Array alphabetically by Column 3, Color? Note: They are...
more »

2017-08-03 17:08 (3) Answers

Could not load file or assembly 'System.Net.Http'

1. Error when starting app Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Stack Trace: [FileNotFoundExce...
more »

2017-08-02 12:08 (2) Answers