webmatrix 和 ASP.NET Web Helpers 库 1.1
有人可以解释一下安装这个软件包时会发生什么吗 难道只是在某个地方添加了一个dll吗? 还可以查看此包中包含的帮助程序的源代码。 已在网络上搜索但看不到任何来源参考 谢谢
Can someone explain what happens when you install this package
Is it just a dll that is added somewhere?
Also is it possible to view the source for the helpers contained in this package.
Have searched the web but cant see any reference to source
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,该程序集已添加到您的 WebMatrix 项目中。您必须将提要中的帮助程序库安装到需要帮助程序库功能的每个项目中(详细信息如下)。 ASP.NET Web Helpers Library 1.1 包含多个帮助程序,其中大多数帮助程序在 WebMatrix 在线书籍 (www.asp.net/webmatrix) 中进行了解释。 ASP.NET Web Helpers Library 1.1 还安装了 Twitter 帮助器和 Facebook 帮助器。如果您愿意,您可以独立安装 Twitter 帮助程序和 Facebook 帮助程序。您可以使用 Reflector 查看程序集,或者如果您有 Visual Studio,则可以使用 Visual Studio 对象浏览器,请参阅帖子 使用 Visual Studio 的对象浏览器了解 WebMatrix 帮助程序了解更多详细信息。 MSDN 上还有托管参考内容,可帮助您浏览帮助程序库代码,请参阅 Microsoft.Web.Helpers 命名空间 了解详细信息。描述将很快更新,但语法现已全部可用。
以下过程演示如何使用管理工具安装 ASP.NET Web Helpers Library。您将在本教程和本系列的其他教程中使用其中一些帮助器。
1.在 WebMatrix 中,单击“站点”工作区。
2.在内容窗格中,单击“ASP.NET 网页管理”。这会将管理页面加载到您的浏览器中。由于这是您第一次登录管理页面,因此它会提示您创建密码。
3.创建密码。
单击“创建密码”后,将出现一个类似于以下屏幕截图的安全检查页面,提示您出于安全原因重命名密码文件。如果这是您第一次看到此页面,请不要尝试重命名该文件。继续下一步并按照那里的说明进行操作。
4. 在安全检查页面上保持浏览器打开,返回 WebMatrix,然后单击“文件”工作区。
5.右键单击站点的主项目文件夹,然后单击刷新。文件和文件夹列表现在显示 App_Data 文件夹。打开它,您会看到一个 Admin 文件夹。新创建的密码文件(_Password.config)显示在./App_Data/Admin/文件夹中。
6. 通过删除前导下划线 (_) 字符,将文件重命名为 Password.config。
7.返回浏览器中的安全检查页面,然后单击有关重命名密码文件的消息末尾附近的“单击此处”链接。
8.使用您创建的密码登录管理页面。该页面显示包管理器,其中包含附加包列表。
9.找到 ASP.NET Web Helpers Library 1.1 包,单击“安装”按钮,然后按照指示安装该包。当您安装 ASP.NET Web Helpers 库时,包管理器还会安装 FaceBook.Helper 1.0 库。
Yes, the assembly is added to your WebMatrix project. You must install the helper library from the feed into each project that needs the helper library functionality (details below). The ASP.NET Web Helpers Library 1.1 includes several helpers, most of these helpers are explained in the WebMatrix online book at www.asp.net/webmatrix. The ASP.NET Web Helpers Library 1.1 also installs the Twitter helper and the Facebook helper. If you wish, you can install the Twitter helper and the Facebook helper independantly. You can view the assembly using Reflector, or if you have Visual Studio you can use the Visual Studio Object Browser, see the post Understanding WebMatrix Helpers using Visual Studio's Object Browser for more details. There's also the managed reference content on MSDN that will help you navigate the helper library code, see the Microsoft.Web.Helpers Namespace for details. The descriptions will be updated soon, however the syntax is all available now.
The following procedure shows how to use the Administration tool to install the ASP.NET Web Helpers Library. You will use some of these helpers in this tutorial and other tutorials in this series.
1.In WebMatrix, click the Site workspace.
2.In the content pane, click ASP.NET Web Pages Administration. This loads an administration page into your browser. Because this is the first time you're logging into the administration page, it prompts you to create a password.
3.Create a password.
After you click Create Password, a security-check page that looks like the following screen shot prompts you to rename the password file for security reasons. If this is your first time to see this page, do not try to rename the file yet. Proceed to the next step and follow the directions there.
4.Leave the browser open on the security-check page, return to WebMatrix, and click the Files workspace.
5.Right-click main project folder for your site and then click Refresh. The list of files and folders now displays an App_Data folder. Open that and you see an Admin folder. The newly created password file (_Password.config) is displayed in the ./App_Data/Admin/ folder.
6.Rename the file to Password.config by removing the leading underscore (_) character.
7.Return to the security-check page in the browser, and click the Click Here link near the end of the message about renaming the password file.
8.Log into the Administration page using the password you created. The page displays the Package Manager, which contains a list of add-on packages.
9.Find the ASP.NET Web Helpers Library 1.1 package, click the Install button, and then install the package as directed. When you install the ASP.NET Web Helpers library, the Package Manager also installs the FaceBook.Helper 1.0 library.
将创建一个 bin 文件夹并向其中添加一个 DLL。可以使用Reflector来查看反编译的源代码,虽然Reflector不会持续太久所以你最好快点。可以找到许多帮助程序的文档 这里
A bin folder is created and a DLL is added to it. You can use Reflector to look at the decompiled source code, although Reflector will not last long so you had better hurry. the docs for a number of the helpers can be found here