Microsoft Visual Studio For Mac Shows Red Color Javascript

  1. Microsoft Visual Studio For Mac Shows Red Color Javascript Html
  2. Visual Studio For Mac Download
  3. Download Microsoft Visual Studio For Mac
Active4 months ago

Check it out, with the always-entertaining experts Stacey Mulcahy and Rami Sayar, and see how to use Visual Studio Code to create sites using Node.js (one of the easiest and fastest ways to develop real-time apps on the web today).

Reported by Fons May 22 at 10:03 AM windows 10.0 visual studio 2017 version 15.7. I have created a VisualState in Blend. It is recording so all changes in properties will be added to the VisualState.Setters. Properties can represent any primitive or reference type. You access property values with get and set accessor methods. In the Microsoft Ajax Library, the get and set accessors are functions, which by convention use the prefix 'get_' or 'set_' in the function name.

I am using VS 2012 and it was working all fine until I started observing some funny behavior. When I open my code it shows red Underlines which we usually see when there is an error in our code. Surprisingly, code compiles all fine. I have made following observations that are not normal at all.

  1. Red Underlines in the code
  2. While cleaning or building the solution no error.
  3. red Underlines go away for some time after I build/clean the solution but comes back eventually.
  4. Because of this my intellisense stopped working.
  5. I can not right click to any component and go to its definition.

Any ideas?

LostLost
2,95315 gold badges71 silver badges128 bronze badges

18 Answers

Delete the contents of the temporary ASP.NET folder and then rebuild. It'll either be in your user folder (for IIS Express - AppDataLocalTempTemporary ASP.NET Files) or the Windows directory (for IIS - C:WindowsMicrosoft.NetFrameworkvx.xxTemporary ASP.NET Files)

Paths are off the top of my head and may not be correct

Balagurunathan Marimuthu
2,3694 gold badges19 silver badges33 bronze badges
levelnislevelnis
5,8636 gold badges31 silver badges59 bronze badges

Visual Studio 2017:

Color

Closing Visual Studio and removing the .vs folder located in the solution directory worked for me.

This folder has a hidden attribute. You may need to change settings in folder options to show hidden files.

gunr2171
7,91110 gold badges48 silver badges69 bronze badges
VeganHunterVeganHunter
2,1292 gold badges12 silver badges17 bronze badges

Just had this problem while working with a solution created in Visual Studio 2012 but running in 2013. I closed Visual Studio, deleted all bin and obj directories and the problem was gone.

Kevin BrydonKevin Brydon
7,4574 gold badges24 silver badges56 bronze badges

I know this is old but in case people find this thread like I did from google. I had this problem after resolving some conflicts from svn. The solution has several projects in it and I resolved some conflicts in a few different projects. I did a Build -> Clean Solution followed by a Build -> Rebuild Solution and everything was good again.

LUKELUKE

Do you have any plugins installed like resharper? I had an issues with a bad plugin.

Try running visual studio in safe mode, to prevent plugins from running.

MarkoMarko

For me this issue got fixed when I Unloaded and Reloaded the project again. I worked for me , hope it works for you too :)

SkrSkr

I had this issue and it was related to ReSharper.

Solution steps for me:

1) Disable ReSharper

Microsoft Visual Studio For Mac Shows Red Color Javascript Html

Visual

2) Build Solution

3) ReEnable ReSharper

Steve

samnericsamneric
1,8541 gold badge18 silver badges23 bronze badges

If you are using Resharper like me, you may delete resharper cache following by this link: https://www.jetbrains.com/help/resharper/Configuring_Caches_Location.html

uzay95uzay95
6,76124 gold badges94 silver badges159 bronze badges

In vs2013 I solved this problem by deleting all of my obj/bin folders across all projects. The issue was probably due to solution configurations that I had deleted, but hadn't been cleaned up properly, as doing a Build -> Clean Solution doesn't remove the old outputs from the obj/bin folders.

RocklanRocklan
6,3762 gold badges25 silver badges40 bronze badges

Visual Studio For Mac Download

What works for me is deleting the IntelliSense indexfile.

The IntelliSense-file is in the same directory as you solution.

It's filename is SolutionName.sdf

Just delete this file, open you solution again, and IntelliSense will start rebuilding its indexfile. After that the problem will be gone.

A.FranzenA.Franzen

This worked for me in Visual Studio Enterprise 2017:

  1. Navigate to Tools > Options > Text Editor > JavaSCript/TypeScript > Linting > General

  2. deselect 'Enable ESLint'

GeraldGerald
6101 gold badge7 silver badges13 bronze badges

Simply refresh the proj/solution. It will get resolved.

Download Microsoft Visual Studio For Mac

S J KarthiS J Karthi

I've run into this as well and was able to return Visual Studio to it's normal state by doing the following -

  1. Identify the project that the red lined code comes from
  2. Remove the red line project from the references where it is being used (ProjectNameReferences - right click, add references, uncheck red line project)
  3. Build (you should get errors now)
  4. Re-add the project reference that was just removed
  5. Build Again
  6. Red lines should be removed and project should build!
Brian MikinskiBrian Mikinski

Perhaps It is late to add but hope it might still help someone. I had similar problem when I was seeing lot of red squiggles in couple of files. I tried all answers proposed above but nothing seemed to work. The moment I started browsing through the classes, structures in other files for which complaining files had references, problem disappeared. It seemed intellisense was not able to resolved dependencies on its own for some reason.

irsisirsis
4841 gold badge9 silver badges25 bronze badges

For me, I had at one time enabled fusion logging to debug some assembly dependency errors (fuslogvw from CMD prompt). That was months ago and I had been experiencing much slower build times (5-7 minutes) since then. I had also forgotten entirely that I had left them enabled. These logs were my bottle neck and disabling them has made iterating much faster. Hope this helps someone!

Microsoft Visual Studio For Mac Shows Red Color Javascript
TabrockTabrock

I ran into this problem with the latest Visual Studio 2017.
Also the debug version of my program was running painfully slow.

I deleted the Solution file .sln and created a new one.

juergen djuergen d
166k26 gold badges226 silver badges286 bronze badges

Steps that work

  1. Open Solution and do a re build all
  2. Close Solution
  3. Open solution and do a clean
  4. Close solution
  5. Open solution and do a re build all
  6. Close and then open solution and it should be good. This works for me every time

Careful deleting some of these settings files as you will lose saved debug settings etc and it may do more damage than you realize

Hamish RedmondHamish Redmond

I had the same problem with lots of red lines in several *cpp source files. Though the code compiled perfectly. None of the other solutions worked for me.

Changing the order of #include lines of a *.cpp-file could make the red lines dissapear - and reapper with the restored order.

Then I noticed a header file was included twice in a single *.cpp file. I removed the second one and - everything was fine.

Including a header file twice in the same *.cpp file seems to be no problem to the compiler but to the intellisense part.

hartwinhartwin

Not the answer you're looking for? Browse other questions tagged c#.netvisual-studiovisual-studio-2012 or ask your own question.