Sharepoint 支持 MVC

发布于 2024-10-12 01:55:15 字数 395 浏览 1 评论 0原文

我是一名 sharepoint 开发人员和一名 asp.net mvc 开发人员,与 sharepoint 相比,我更喜欢开发 Asp.net MVC Web 应用程序。这很伤人,但现实是,sharepoint 对于开发人员来说是完全令人沮丧的,也许对你们中的一些人来说不是,但对我来说,大多数时候都是如此,尽管我仍然喜欢开发 sharepoint。当 MVC 被引入时,许多开发人员都接受了它,并且直到现在许多开发人员仍然渴望它。据我所知,如果 MVC 与 sharepoint 完全集成,我可能会说 sharepoint 可以带来很大的改变,并对 MVC 表示感谢。

我的问题是 sharepoint 是否有机会与 MVC 集成? Sharepoint 的哪一部分可能无法集成 MVC?您能否给出为什么 Sharepoint 拒绝 MVC 的一个重要原因?

I am a sharepoint developer and an asp.net mvc developer and the thing is I prefer developing Asp.net MVC web applications compare to sharepoint. It hurts but reality bites that sharepoint is totally frustrating for developers or maybe not for some of you but for me most of the time it does although I still love developing sharepoint. When MVC was introduced many developers embraced it and until now many are still craving for it. As to what I can see, if MVC will be fully integrated with sharepoint I could possibly say that sharepoint can make a big difference and say thanks to MVC.

My question is could sharepoint ever have the chances to be integrated with MVC? What part of sharepoint could possibly fail MVC to be integrated? Could you give a big reason why Sharepoint is a big NO to MVC?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

咿呀咿呀哟 2024-10-19 01:55:15

SharePoint 是一个非常庞大、复杂的 Web 应用程序,拥有庞大的安装基础,并且无法控制最终用户的自定义。如果没有充分的理由,这种系统就不能从头开始重写,即使有充分的理由,任何这样做的尝试都注定会失败。

不过,您可以通过多种方式将 MVC 与 SharePoint 一起使用。在正确的服务器上运行的任何 .net 应用程序都可以访问 SharePoint API。您还可以将 mvc 视图包装在 SharePoint Web 部件/页面中。要让 Web 表单视图引擎在 SharePoint 下运行,需要进行一些企业基础设施人员永远无法逃脱的黑客攻击,但在 SharePoint 中托管 Razor 视图相对容易设置。

SharePoint is a really big, complex web application with a huge install base and no control over end user customization. That sort of system can't be rewritten from scratch without a really good reason, and even when there is a really good reason, any attempt to do so is doomed to failure.

There are ways you can use MVC alongside SharePoint though. Any .net application running on the right server can access the SharePoint API. You can also wrap mvc views in SharePoint web parts / pages. Getting the web forms view engine to run under SharePoint requires the sort of hacking that will never get past corporate infrastructure people, but hosting Razor views in SharePoint is relatively easy to set up.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文