我想部署一个web模板,它绝对没有与创建的网站依赖,以便我可以从农场撤回Web模板解决方案,并且使用它创建的站点将继续工作。

如何确保Web模板解决方案包和创建的网站集之间没有依赖关系?

我只尝试提供内容:添加一个新的default.aspx(我从sts#0创建web模板),添加母版页,添加列表实例和Web部件。

有帮助吗?

解决方案

When you create a site using a Web Template there is no dependency from that site to the Web Template that created it, that's one of the major differences between Site Templates and Web Templates.

BUT the Web Template may use custom features which then create a dependency between the Site and the solution(s) containing these features. These dependencies may come from the fact that the features contains <Module> elements which provisions files and the site then becomes dependent on these files existing in the file system as long as the files are uncustomized or they may contain List definitions.

If you want a custom page and master page, but with no dependency to the feature, then you have to create the page and master page using code.

许可以下: CC-BY-SA归因
scroll top