ASP.NET 2 projects to share same files

前端 未结 3 1235
情书的邮戳
情书的邮戳 2021-01-14 14:15

Well as the title says i have 2 web projects that have the same css files, master page and some resource files, how could i share those? atm i have 2 copies of them...

相关标签:
3条回答
  • 2021-01-14 14:34

    Solution 1: bind them into separate assemblies in share it across your projects.

    Reference:

    • Building Re-Usable ASP.NET User Control and Page Libraries with Visual Studio 2005
    • How to embed resources in ASP.NET 2.0 assemblies
    0 讨论(0)
  • 2021-01-14 14:35

    Here is an article that describes how to share pages and user controls between applications : HOW TO: Share ASP.NET Pages and User Controls Between Applications by Using Visual Basic .NET. It's solution depends on separate virtual directory that holds the shared files.

    And in this article Scott Guthrie describes how to build reusable web assemblies. It's solution depends on making separate assembly by shared files.

    0 讨论(0)
  • 2021-01-14 14:38

    In the second project choose "Add existing file", select the file, click on the arrow on the add button and select "add as link".

    0 讨论(0)
提交回复
热议问题