I'm working on a project structure with multiple projects serving the same set of static files.
At start each project will server both the static files and the API services but later on I plan to separate some of them into multiple projects.
- ProjectA will server both static files and API
- ProjectB1 will only serve the same static files as in ProjectA
- ProjectB2 will only serve the API
In a classic VS library you can have files marked as content. These will be included in the build output of any project that references that library.
I tried to make a project ProjectStatic containing the static files and reference it from both ProjectA and ProjectB1 but none of the files in ProjectStatic are included in the output of ProjectA nor ProjectB1.
Can this be done using project.json?
See Question&Answers more detail:os