I am creating a reusable UI utilizing a .NET Core 3.1 Razor Class Library (RCL) as documented here:

https://learn.microsoft.com/en-us/aspnet/core/razor-pages/ui-class?view=aspnetcore-3.1&tabs=visual-studio

I am able to create an RCL that includes static assets, and am able to utilize them as documented in the link above. By default, Visual Studio 2019 (16.5.1) only provides IntelliSense for the CSS/JavaScript files in the RCL project itself, not from any of the dependent projects. There is a previously answered question that shows how to create a JavaScript file in the dependent project (it mentions a CSS solution but does not provide the actual answer):

JS/CSS Intellisense Between Projects in VS 2019

Does anyone know how I can get VS2019 to provide CSS IntelliSense in the dependent projects? There is a sample solution here that illustrates the issue here:

https://github.com/shawnpaige/RCLIntellisense

Thanks for any insight.

0

There are 0 best solutions below