No intellisense in Visual Studo 2017 for new C# files - visual-studio

When I add new .cs file to my project, file is added to Miscellaneous Files and then I don't get no intellisense and red squiggles.

Problem was with enabled lightweight solution loading, when I disabled it and restarted Visual Studio it all started to work again.

Related

Unity(2020.1.5f1) Intellisense not working on Visual Studio 2019

I created and loaded up a script via unity, however it has disabled intellisense.
I have the external script editor on unity set to visual studio, and have regenerate all the project files, as shown in the screenshot
.
I have also got the unity addon installed and running on visual studio, however intellisense is still not working.
Any ideas?
Thank you

Can't load Xamarin solution after Visual Studio 15.7.3 update

After updating Visual Studio 15.7.1 into 15.7.3, I can't load my Xamarin solution that has a Xamarin.IOs project and a Net Standard 2.0 project.
The loading project window appears loading the projects, but it freezes on loading the first project and Visual Studio goes not responding. The only way to close Visual Studio at that point is by terminating it through the Task Manager.
Is there any way can I successfully open my Xamarin solution from Visual Studio 15.7.3?
This issue appears to be happening only when you try to open the solution through Visual Studio 15.7.3 itself. That is if you try to open the solution,
Through the recent link under Recent section of the Start Page in Visual Studio
Through the Open Project / Solution under Open section of the Start Page in Visual Studio
Through File > Open > Project / Solution... in Visual Studio
Solution:
If you navigate to the directory of the solution, then double click the solution file (.sln file) if .sln files are set to open with Visual Studio OR right click on the solution file and select Open with > Microsoft Visual Studio 2017
Then the solution along with the projects will be successfully opened in Visual Studio 15.7.3!
Note: There's a ticket requesting to fix this issue at, https://developercommunity.visualstudio.com/content/problem/266351/cant-load-xamarin-solution-after-visual-studio-157.html
Update:
After restarting windows, then you can reopen projects as before, directly through Visual Studio 😊
Disabled xamarin Extension
Restart VS
Reload droid project
Enabled Xamaring Extension
Restart VS
This worked for me

VS2015 CUDA project compiles and runs but Intellisense cannot find includes

I am running VS2015 community and working with a mixed OpenCV/CUDA code. The project runs as it should but Intellisense squiggles under the include headers. When I right click, it gives this error.
Things I have already tried:
Restarting VS (at least a dozen times).
Deleting the .vs folder in the project folder.
Deleting the *.vc.db in the project folder.
Check the Additional Include Directories
Remove the Additional Include Directories > Fail to compile > Add them back > successfully compiles.
Make sure I am on x64 and Debug. I am using OpenCV 3.2 x64.
Other stackoverflow questions I have already referred with no success
why visual studio editor can not find a header file, when compiler can find it
Visual Studio 2008 oddity with C++ and header files
Visual Studio can't 'see' my included header files
How to rebuild VS2010 IDE Intellisense?
Visual Studio 2015: Intellisense errors but solution compiles
'Additional include directories' in visual studio 2010 doesn't work
Visual Studio 2010 intellisense not recognising additional include directory
Visual Studio 2012 - Intellisense sometimes disappearing / broken
Visual Studio C# IntelliSense not automatically displaying
The problem had to do something with the CUDA build settings in the project. I fixed the problem by moving $(OPENCV_DIR)\include from Additional Include Directories to simply Include Directories.

Why visual studio 2015 not supporting intellisense support for xamarin.android?

recently after build 2016 of Microsoft, I have install xamarin for visual studio 2015.
The key part of vs is its intellisense feature and that is not supported when working with .axml files.
Please suggest
Visual Studio supports Intellisense for Android .axml files, but you must enable this first. For enabling this feature, read How do I enable Intellisense in Android .axml files? - If you didn't find the files in the mentioned directory (see article), you could download these from GitHub:
android-layout-xml.xsd
schemas.android.com.apk.res.android.xsd
For Visual Studio 2015.
Link: https://forums.xamarin.com/discussion/60962/enable-intellisense-for-axml-missing-android-layout-xml-xsd-schemas-android-com-apk-res-androiod
Download "android-layout-xml.xsd" and "schemas.android.com.apk.res.android.xsd" from:
https://github.com/atsushieno/monodroid-schema-gen
Put all downloaded files into C:\Program Files (x86)\Microsoft Visual Studio 14.0\Xml\Schemas
Open .axml file and click XML/Schemas menu in the Visual Studio. Then add correspondent files to the project.
Xamarin for Visual Studio includes out of the box xsd-based intellisense support starting with our cycle 7 builds. (XamarinVS 4.1.0.x).
You can try it right now switching to the Beta channel. In Visual Studio go to:
Tools - Options - Xamarin - Other
Select the Beta channel, and press Check now
Keep in mind that if you're developing for Xamarin.iOS, you will need to switch to the Beta channel your Mac as well. That can be done from Xamarin Studio in the Mac.
This is for Visual Studio, but you need a Xamarin Studio installation to make it work.
To enable Intellisense in Android .axml files:
Download or copy android-layout-xml.xsd into Visual Studio folder\Xml\Schemas
open catalog.xml and add line after last :
http://schemas.android.com/apk/res/android' />
Save catalog.xml and restart (or start) Visual Studio.
Intellisense in .axml files should work by default. (Maybe you need add a schemas.android.com.apk.res.android.xsd file too.)
Shem's files: https://github.com/atsushieno/monodroid-schema-gen

Visual Studio needs to make non-functional changes to this project

I have a visual studio solution with a a vs2010 project
Everytime I open it I got this warning.
Visual Studio needs to make non-functional changes to this project in
order to enable the project to open in this version and Visual Studio
2010 SP1 without impacting project behavior.
ANd it generates some xml log files
I need to definitely convert it to vs 2012
How can I do that without breaking anything else?
I was able to solve it by opening the .csproj file and changing this
<FileUpgradeFlags>0</FileUpgradeFlags>
for this
<FileUpgradeFlags></FileUpgradeFlags>

Resources