tagged [visual-studio-2015]

Visual Studio 2015 - Change Light Bulb, Quick Action settings

Visual Studio 2015 - Change Light Bulb, Quick Action settings I've started using Visual Studio 2015 today and really like the or setting. I want to change these settings though, how do I do that? Spec...

How to disable real time compilation in Visual Studio 2015

How to disable real time compilation in Visual Studio 2015 Is there a way to disable the real time compilation in Visual Studio 2015? It's grinding to a halt whenever I make changes that have a ripple...

How to change language version in Visual Studio 2015

How to change language version in Visual Studio 2015 I want to use the `nameof` operator in my C# project in Visual Studio 2015 but the compiler complains with the following message. > Feature 'nameof...

Automatically surround generated code with #region when implementing interfaces at Visual Studio 2015

Automatically surround generated code with #region when implementing interfaces at Visual Studio 2015 I know that in Visual Studio 2013 and below there is an option to turn on/off automatic surroundin...

7 Aug at 13:57

#if DEBUG and return statements - Unreachable code warning

#if DEBUG and return statements - Unreachable code warning I am facing this little piece of code: ``` #if DEBUG return thisVariable; #endif return thatVariable; //

Visual Studio 2015 is very slow

Visual Studio 2015 is very slow I just finished the installation and the whole IDE is super slow. It seems like it's making some kind of heavy CPU calls in the background where the whole IDE literally...

26 Dec at 20:41

Projects load failed in Visual Studio 2015

Projects load failed in Visual Studio 2015 When I am opening a .sln in Visual Studio 2010, projects are loading properly. But when I open the same solution with Visual Studio 2015 (Professional with U...

How to reference csproj from kproj

How to reference csproj from kproj I was playing around with `VS2015` and `ASP.NET vNext`, and got stuck on trying to add a reference from vNext class library (kproj) to a regular class library (cspro...

16 Feb at 22:43

Add Gradient background to layouts in Xamarin Forms visual studio

Add Gradient background to layouts in Xamarin Forms visual studio I am a newbie in Xamarin Forms, I create a ContentPage for Menu. I need linear gradient color at its background. But I can't find any ...

How to change default error search in Visual Studio 2015

How to change default error search in Visual Studio 2015 While I was writing my code in I got error as below in ErrorList window: > Error CS0117 'Console' does not contain a definition for 'ReadKey' B...

4 Jun at 18:49

'Console' does not contain a definition for 'ReadKey' in asp.net 5 console App

'Console' does not contain a definition for 'ReadKey' in asp.net 5 console App I am creating a Simple application in . For the below line of code I am getting error . Also i am getting a Suggestion as...

Breakpoint Failed to Bind - Visual Studio 2015

Breakpoint Failed to Bind - Visual Studio 2015 I just upgraded from Visual Studio 2013 to 2015 and now I am having trouble with breakpoints. It's a hit or a miss where break points will actually work ...

Visual studio "inconsistent line endings"

Visual studio "inconsistent line endings" I'm new to VS, never really used it much. Prefer other IDE's but when it's a toss up between VS and MonoDevelop, I was told VS was the better choice. I set it...

Windows 10 RTM OSVersion not returning what I expect

Windows 10 RTM OSVersion not returning what I expect When call Windows 10 version with: Return this ![enter image description here](https://i.stack.imgur.com/jc4ut.png) Windows 8 and 8.1 version retur...

Web Service template missing from Visual Studio 2015 Professional

Web Service template missing from Visual Studio 2015 Professional I've been tasked with creating a custom web service for a client solution. I've recently installed Visual Studio Pro 2015 and I can't ...

How to add a new XAML View with code behind

How to add a new XAML View with code behind I am using VS 2015, creating a Univerasl App. I want to create a new view (XAML). I can right click, Add > XAML > XAML View, and the XAML gets created with ...

C# 6.0 Features Not Working with Visual Studio 2015

C# 6.0 Features Not Working with Visual Studio 2015 I am testing Visual Studio 2015 with C# 6.0 but the language features are not working. In an MVC web application, the following code does compile: H...

Primary constructors no longer compile in VS2015

Primary constructors no longer compile in VS2015 Until this very day, I could make use of primary constructors, such as: To be able to do this, in the previous Visual Studio CTP, I had to add this to ...

14 Jun at 20:8

How to customize formatting of code that is generated by "Encapsulate Field"?

How to customize formatting of code that is generated by "Encapsulate Field"? Previously I am fairly certain that the "Encapsulate Field" command would turn something like the following: into the foll...

CSC : error CS7038: Failed to emit module

CSC : error CS7038: Failed to emit module After installing Visual Studio 2015 and building my project I receive the error > "CSC : error CS7038: Failed to emit module". However my solution is building...

How to step out of foreach loop in debug mode

How to step out of foreach loop in debug mode I have a method which I am interested to see it’s functionality and dig deeper; so I put a breakpoint and I stepped in the method. This method executes fo...

18 Feb at 16:4

How to include reference to assembly in ASP.NET Core project

How to include reference to assembly in ASP.NET Core project I have this line And it requires to include [System.Configuration](https://msdn.microsoft.com/en-us/library/system.configuration.configurat...

Does Visual Studio have code coverage for unit tests?

Does Visual Studio have code coverage for unit tests? I am using Visual Studio 2015 Community edition, and I know that it has the option to create unit tests to test the code, but I don't see the opti...

16 Jul at 19:40

Visual Studio 2015 not syntax highlighting razor nor Intellisense

Visual Studio 2015 not syntax highlighting razor nor Intellisense My Razor views in VS2015 RC are not showing the proper coloring for C# code. My project was working fine in VS2013, but it isn't in 20...

XAML Designer - default zoom?

XAML Designer - default zoom? I feel very much annoyed by default zoom of XAML Designer in VS2015 (not sure if version is relevant), which is `Fit all` by default. Is there a way to set it to `100%` b...