All Questions
120
questions
155
votes
2
answers
81k
views
How to use C# 7 with Visual Studio 2015?
Visual Studio 2017 (15.x) supports C# 7, but what about Visual Studio 2015 (14.x)?
How can I use C# 7 with it?
25
votes
12
answers
23k
views
Project builds but can't publish
I have an MVC project that for an uknown reason refuses to publish to a local folder in the PC.
The log says the following:
3>------ Publish started: Project: Admin, Configuration: Release Any ...
181
votes
24
answers
94k
views
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 and if I set one while debugging I get the ...
146
votes
8
answers
67k
views
How to use C# 6 with Web Site project type?
Updated an existing Web Site project type Visual Studio 2015, I changed the Framework to 4.6.
I then expected to have all those new features available in my code behind files.
Unfortunately I'm ...
65
votes
31
answers
173k
views
Go To Definition: "Cannot navigate to the symbol under the caret."
I suddenly started experiencing a problem today in my project where clicking Go To Definition gives me a strange error: "Cannot navigate to the symbol under the caret."
I first noticed it some time ...
70
votes
14
answers
68k
views
Application Can't Load. Visual C# 2015 RC Compiler Could Not Be Created
I am trying to install Visual Studito 2015 RC Community edition.
I downloaded the web installer and installed all components. After installation, I rebooted my machine as instructed, but it keeps ...
64
votes
8
answers
32k
views
Visual Studio 2015 diagnostics tool does not support current debugging configuration
After using VS2015 snapshot and profiling tools, I can't seem to get the diagnostics tools to work again. Every project, even new ones just say the following
The Diagnostic Tools window does not ...
245
votes
1
answer
80k
views
How to disable Diagnostic Tools?
When debugging a C# application in Visual Studio 2015, Diagnostic Tools starts automatically. I unchecked both checkboxes in Select Tools, but it doesn't seem to completely disable it.
How do I turn ...
137
votes
6
answers
28k
views
How do I disable C# 6 Support in Visual Studio 2015?
Background
We have a project that we're developing in VS 2015 with C#6 enabled that occasionally needs to be opened by developers using VS 2013 without C#6.
We have no intention to use C# 6 within ...
38
votes
3
answers
22k
views
Web.config is not transformed when debugging code
I have a main Web.config file, and under that there is a Web.Test.config, Web.Development.Config etc.
When I preview the transformation via SlowCheetah on the Test config, it appears to transform the ...
27
votes
3
answers
21k
views
How to switch between target frameworks for .NET Core projects in Visual Studio
Say you have a .NET Core project that looks like this:
"frameworks": {
"net40": {},
"dotnet5.1": {}
}
And this is your C# code:
public class Foo
{
public static void Blah()
{
#if ...
5
votes
1
answer
1k
views
What's the latest version of Roslyn my analyzer can target if I support VS2015?
I'm writing a Roslyn diagnostic analyzer that should work on VS2015 and later editions. I want to know the latest version of Microsoft.CodeAnalysis I can use with my project and still support VS2015. ...
93
votes
7
answers
56k
views
Disable "Break Mode" page in VS2015
Recently migrated from VS2010 to 2015. Now when I pause a running app to work on it, I get this very annoying "Break Mode" page with "The application is in break mode". Well, no shoot Sherlock, I ...
14
votes
2
answers
20k
views
Why Visual Studio 2015 freezes crashes hangs on Designer view?
Everytime I go to the designer Visual Studio freezes(Not Responding) for 30+ seconds and once I click on any element/widget after that, it freezes again for 30+. Does that for 5 times maybe then I ...
7
votes
1
answer
6k
views
Compiling C# with Any CPU sets Application can handle large (>2GB) addresses
I ran into this issue during performance testing.
When compiling a C# Console application with the x86 platform flag, the Large Address Aware flag is not set:
Output from dumpbin /headers app.exe:
...