Reputation: 391
I am working with a dated VB.Net Web Forms solution. Projects within reference a virtual directory set through Local IIS. The code analysis / IntelliSense can never reference this virtual directory.
Given this solution / project structure:
└── Main Solution
├── Controls Project
│ └── controls
│ └── myControl
└── My Site Proect (references Controls Project)
└── virtual directory to Controls Project (added via Local IIS)
The code is full of:
<%@ Register TagPrefix="myControl" TagName="MyTag" Src="~/controlsProject/controls/myControl.ascx" %>
VS always gives the green underline and complains:
Path C:\mySite\My Site Project 1\Controls Project\controls not found
The code compiles fine, the sites run fine so it's not a major issue. I don't know if what I want is possible, just scratching my compulsive itch. Any ideas? Or is this just a quirk I have to live with?
Thanks
Upvotes: 0
Views: 909
Reputation: 2685
If you doesn’t include this folder physically (as image below shows) intellisense doesn’t work as references missing in config file project. To do that you need from Visual Studio to make visible excluded folders from upside button (as image shows) -> right click on excluded folder -> include in project.
I hope this can help you
Upvotes: 2