Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Using Visual Studio 2017
I have a Single Solution with two projects. I have linked the CSS files from project1 to project2, I can see that the css is being read correctly in Visual Studio Design BUT when I run the project it is not reflected in the browser.

Is there something else I should be considering within either project's settings?

I am fairly new to Visual Studio and was tasked to find a way to allow multiple projects to use the same CSS files. Any assistance would be greatly appreciated.

What I have tried:

Linked CSS from Project1 to Project2.
Posted
Updated 3-Nov-21 23:41pm

1 solution

Adding a linked file to the project doesn't copy the file to that project. If you run the project from Visual Studio, any page which references the linked CSS file won't be able to find it.

If you publish your project, the linked file should be copied to the output folder. If you then run the published output, it should work.

If you want the same file to be physically present in both projects so that you can see it when you debug, you would need to create an OS-level link instead.
Hard Links and Junctions - Win32 apps | Microsoft Docs[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900