Reputation: 279
this week I try start new Asp.net core with razor project but intellisense not working in cshtml files so after searches and try different solutions I repair visual studio from external HDD and after that start working happily and all features work correctly but after I disconnect external HDD intellisense stop working on cshtml files again so I connect it again and restart VS and again all thing do correctly.
Now I need know why after installation visual studio again need installer and how can I solve this problem because I don't have enough space on my HDD to copy installer on it.
PS: before I start Asp.net core project I have problem many problem like UE4 can't find VS2017 path and I can't find reason and solve it but after know that VS try load something from installer path I test UE4 and that problem solved as well as intellisense at cshtml.
Edit: When my extrnal HDD DC, this message appear:
[
Upvotes: 0
Views: 97
Reputation: 23828
Actually, when you use VS IDE, it has nothing to do with vs installer program. Unless you add other workloads, update, or repair.
I think you have installed the Installer program on the extra HDD and install the VS IDE on your local disk.
The right startup program is under xxx\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe
in my side.
You can check this path and in my side, I remove the whole Installer folder, I can use the whole VS IDE without any errors.
So I guess whether you have installed Download cache on the extra HDD.
If you are not this situation, you can ignore it:
VS IDE will loads the the download package cache from time to time because the cache contains the default project template, Intelliense or related componment caches. So you have to make sure that the path of Download cache is under your local disk rather than the extra HDD.
Suggestion
You have to install such folder Download cache on your local disk.
1) To resolve this issue, you have to reinstall VS IDE and when you finish uninstalling VS IDE, start to reinstall it, remember to select the path of the local disk for the Download cache.
2) This suggestion might have some instability and you could choose to use it:
a) You have to recreate a folder called like D:\Microsoft\VisualStudio
on your local disk and then copied the content from the extra HDD into the new one.
Note: if you install the cache under A:\VisualStudio\Packages
under the extra HDD, you have to copy the whole files from the A:\VisualStudio
into D:\Microsoft\VisualStudio
and you should copy all files in the upper level of the folder to the local disk.
b) And then open Registry Editor and enter Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\Setup
c) create a new string value called CachePath and then set its value to
D:\Microsoft\VisualStudio\Packages
Upvotes: 2