As seen in the image bellow, references are not showing up in visual studio.
I was just using visual studio and i closed the project opened some other project and opened the unity project again in visual studio.
But then none of the references shows up and i cant really fix it.
Any ideas on how to fix this?
In Unity Editor try:
Edit -> Preferences... -> External Tools -> Regenerate project files
This problem happened to me, I couldn't solve it, I reinstalled visual again and downloaded c# plugins and module so it worked
The code pair may not be able to compile due to not referencing the relevant library files and namespaces
A client has given me an old (approx. 2010) .sln project for visual studio that they would like to have modified. The problem is that it is large and it now has a lot of errors in it from ambiguous references. The time it would take me to fix all the references is not worth the small change the client wants to make to the project. Is there a way of reverting this project so that I can open it without the errors? I have tried opening it in VS 2010 and VS 2013 but the errors are still there.
Any help would be greatly appreciated.
Visual Studio 2013 (vs) compiles a solution fine when manually building (i.e., it reports "Build succeeded", there are no errors in the error list, and running a program shows the latest changes). However, when vs starts building in the background (for Intellisense?), then errors start to come up for recently added extension methods. The extension methods are underlined in red, and right-clicking on them to "go to definition" results in an error that says "Cannot navigate to [method name]".
Extension methods that were created (in the same classes as the methods listed in the erroneous error messages) previous to when this started happening do not show up in the error messages.
I have done a build clean, to no avail.
I do not have resharper installed.
How do I reset the intelisense cache in Visual Studio 2013? I see instructions for Visual Studio 2008, but not for Visual Studio 2013.
For Visual Studio 2015, my solution didn't have an .sdf file, and restarting didn't help. However, the following steps fixed my problem:
Close Visual Studio (important)
Go to [solution folder]\.vs\[solution name]\v14
Delete the .suo file
Start Visual Studio
It turns out that closing all open files, then shutting down Visual Studio, and restarting fixed the issue. pff!
I had a similar problem that I resolved by deleting *.sdf file in the solution directory. VS2013 will re-create it.
UPDATE This is what I know now: https://stackoverflow.com/a/38708050/90475
After testing all above mentioned solutions simply clean and build worked for me.
In VS2010, the only thing that worked for me was removing and adding the reference again.
Very old question, but it happened to me also with VS2019. I have multiple projects in my solution: right-click on the project -> "Unload Project" for each one, and then reload them. This worked for me.
Clean + Build, or
Close all the files + restart VS + clean
Those didn't work (for me).
I've been trying to solve this problem for 2 days. I've been searching for solutions but nothing comes up useful.
Every time I try to create a WiX setup project in Visual Studio an error pops up saying
"..\Temp\SetupProject.wixproj" cannot be opened because its project type (.wixproj) is not supported by this version of Visual Studio."
But just a week ago, it was working fine. It started when I installed WiX 3.7. When it failed I reverted to 3.6 but the error has stayed there for good. And even reinstalling Visual Studio didn't solve the problem. Do you guys have any solution to this? Help would be really appreciated. Thank you!
edit: windows 7 32bit. visual studio 2008.
Since no one seems to have experienced the same issue, I resolved it by installing a Virtual Machine. And there I re-installed VS2008 and WiX 3.7. Now it's working! :)
Today I have installed Roslyn September 2012 CTP. I began with a sample console project. After the IDE finished creating the project code, I pressed F5. I ended up with a dozen compilation errors saying none of the Roslyn namespaces found. However the intellesence options are working fine for those references.
I tried with restarting the Visual Studio and even the my PC as per suggestions I found elsewhere. But none could resolve this. Is there anything that I am missing?
Rep whoring :)
As posted in the comments, this generally happens when there is a .NET Framework target mismatch. Your Visual Studio will be targeting a different version of .NET than what the project or a project reference was developed in.