Ext.NET第一个项目的安装环境配置
2014-04-03 10:51
225 查看
Ext.NET第一个项目的安装环境配置
1、下载NuGet 插件
tool--〉extension manager
2、安装好插件后,在tool菜单上会出现Library Package Manager,点击Package Manager Console
在下面会有一个区域显示pm〉命令的--〉输入Install-Package Ext.NET,然后等待一会,就会在项目中看到安装好的包了
http://docs.nuget.org/docs/start-here/installing-nuget
{上面的网址是告诉你如何去下载和安装插件的}
3、配置web.config配置文件
一般情况下新建了一个website项目后,会自动生成一个配置文件,可以参考官方网址http://www.ext.net/download/.下载,找到里面的SimpleWeb.config稍微修改下就行了
加入包的说明(不过,要注意你。net的环境,按照其版本配置包的信息,因为这些包是指向软件.net环境的)
例如:
<?xmlversion="1.0"?>
<!--
ASP.NET アプリケーションを構成する方法の詳細については、 http://go.microsoft.com/fwlink/?LinkId=169433を参照してください -->
<configuration>
<connectionStrings>
<add name="ApplicationServices"connectionString="data source=.\SQLEXPRESS;IntegratedSecurity=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;UserInstance=true" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<compilation debug="true"targetFramework="4.0"/>
<authentication mode="Forms">
<formsloginUrl="~/Account/Login.aspx" timeout="2880"/>
</authentication>
<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider"type="System.Web.Security.SqlMembershipProvider"connectionStringName="ApplicationServices"enablePasswordRetrieval="false" enablePasswordReset="true"requiresQuestionAndAnswer="false"requiresUniqueEmail="false"
maxInvalidPasswordAttempts="5"minRequiredPasswordLength="6"minRequiredNonalphanumericCharacters="0"passwordAttemptWindow="10" applicationName="/"/>
</providers>
</membership>
<profile>
<providers>
<clear/>
<addname="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider"connectionStringName="ApplicationServices"applicationName="/"/>
</providers>
</profile>
<roleManager enabled="false">
<providers>
<clear/>
<addname="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider"connectionStringName="ApplicationServices"applicationName="/"/>
<addname="AspNetWindowsTokenRoleProvider"type="System.Web.Security.WindowsTokenRoleProvider"applicationName="/"/>
</providers>
</roleManager>
<httpModules>
<addname="DirectRequestModule" type="Ext.Net.DirectRequestModule,Ext.Net" />
</httpModules>
</system.web>
<!--包配置-->
<runtime>
<assemblyBindingxmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentityname="Newtonsoft.Json"publicKeyToken="30ad4fe6b2a6aeed"/>
<bindingRedirectoldVersion="1.0.0.0-5.0.8" newVersion="6.0.1"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentityname="Ext.Net.Utilities" publicKeyToken="2c34ac34702a3c23"/>
<bindingRedirectoldVersion="0.0.0.0-2.3.0" newVersion="2.4.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentityname="Transformer.NET"publicKeyToken="e274d618e7c603a7"/>
<bindingRedirectoldVersion="0.0.0.0-2.1.0" newVersion="2.1.1"/>
</dependentAssembly>
<!--MVC 3-->
<!--
<dependentAssembly>
<assemblyIdentityname="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirectoldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
-->
<!--MVC 4-->
<dependentAssembly>
<assemblyIdentityname="System.Web.Mvc"publicKeyToken="31bf3856ad364e35"/>
<bindingRedirectoldVersion="1.0.0.0-5.0.0.0" newVersion="4.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentityname="System.Web.Helpers"publicKeyToken="31bf3856ad364e35"/>
<bindingRedirectoldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentityname="System.Web.WebPages"publicKeyToken="31bf3856ad364e35"/>
<bindingRedirectoldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0"/>
</dependentAssembly>
<!--MVC 5-->
<!--
<dependentAssembly>
<assemblyIdentityname="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirectoldVersion="1.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentityname="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirectoldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentityname="System.Web.WebPages"publicKeyToken="31bf3856ad364e35" />
<bindingRedirectoldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
-->
</assemblyBinding>
</runtime>
</configuration>
1、下载NuGet 插件
tool--〉extension manager
2、安装好插件后,在tool菜单上会出现Library Package Manager,点击Package Manager Console
在下面会有一个区域显示pm〉命令的--〉输入Install-Package Ext.NET,然后等待一会,就会在项目中看到安装好的包了
http://docs.nuget.org/docs/start-here/installing-nuget
{上面的网址是告诉你如何去下载和安装插件的}
3、配置web.config配置文件
一般情况下新建了一个website项目后,会自动生成一个配置文件,可以参考官方网址http://www.ext.net/download/.下载,找到里面的SimpleWeb.config稍微修改下就行了
加入包的说明(不过,要注意你。net的环境,按照其版本配置包的信息,因为这些包是指向软件.net环境的)
例如:
<?xmlversion="1.0"?>
<!--
ASP.NET アプリケーションを構成する方法の詳細については、 http://go.microsoft.com/fwlink/?LinkId=169433を参照してください -->
<configuration>
<connectionStrings>
<add name="ApplicationServices"connectionString="data source=.\SQLEXPRESS;IntegratedSecurity=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;UserInstance=true" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<compilation debug="true"targetFramework="4.0"/>
<authentication mode="Forms">
<formsloginUrl="~/Account/Login.aspx" timeout="2880"/>
</authentication>
<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider"type="System.Web.Security.SqlMembershipProvider"connectionStringName="ApplicationServices"enablePasswordRetrieval="false" enablePasswordReset="true"requiresQuestionAndAnswer="false"requiresUniqueEmail="false"
maxInvalidPasswordAttempts="5"minRequiredPasswordLength="6"minRequiredNonalphanumericCharacters="0"passwordAttemptWindow="10" applicationName="/"/>
</providers>
</membership>
<profile>
<providers>
<clear/>
<addname="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider"connectionStringName="ApplicationServices"applicationName="/"/>
</providers>
</profile>
<roleManager enabled="false">
<providers>
<clear/>
<addname="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider"connectionStringName="ApplicationServices"applicationName="/"/>
<addname="AspNetWindowsTokenRoleProvider"type="System.Web.Security.WindowsTokenRoleProvider"applicationName="/"/>
</providers>
</roleManager>
<httpModules>
<addname="DirectRequestModule" type="Ext.Net.DirectRequestModule,Ext.Net" />
</httpModules>
</system.web>
<!--包配置-->
<runtime>
<assemblyBindingxmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentityname="Newtonsoft.Json"publicKeyToken="30ad4fe6b2a6aeed"/>
<bindingRedirectoldVersion="1.0.0.0-5.0.8" newVersion="6.0.1"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentityname="Ext.Net.Utilities" publicKeyToken="2c34ac34702a3c23"/>
<bindingRedirectoldVersion="0.0.0.0-2.3.0" newVersion="2.4.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentityname="Transformer.NET"publicKeyToken="e274d618e7c603a7"/>
<bindingRedirectoldVersion="0.0.0.0-2.1.0" newVersion="2.1.1"/>
</dependentAssembly>
<!--MVC 3-->
<!--
<dependentAssembly>
<assemblyIdentityname="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirectoldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
-->
<!--MVC 4-->
<dependentAssembly>
<assemblyIdentityname="System.Web.Mvc"publicKeyToken="31bf3856ad364e35"/>
<bindingRedirectoldVersion="1.0.0.0-5.0.0.0" newVersion="4.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentityname="System.Web.Helpers"publicKeyToken="31bf3856ad364e35"/>
<bindingRedirectoldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentityname="System.Web.WebPages"publicKeyToken="31bf3856ad364e35"/>
<bindingRedirectoldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0"/>
</dependentAssembly>
<!--MVC 5-->
<!--
<dependentAssembly>
<assemblyIdentityname="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirectoldVersion="1.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentityname="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirectoldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentityname="System.Web.WebPages"publicKeyToken="31bf3856ad364e35" />
<bindingRedirectoldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
-->
</assemblyBinding>
</runtime>
</configuration>
相关文章推荐
- 基于GO的windows环境下net项目的持续集成demo--安装、配置
- 配置maven环境和创建第一个maven项目
- Java入门-第一节-jdk的安装,环境变量的配置及第一个程序的编写。
- java基础--JDK安装、环境变量配置、工具开发第一个程序、数据类型、运算符
- 电商项目(十)开发环境安装与配置(mysql)
- mac下配置Node.js开发环境、express安装、创建项目
- 32位Win7下安装与配置PHP环境(三) 转自.http://blog.csdn.net/yousuosi
- 【安装eclipse, 配置java环境教程】 编写第一个java程序
- 别人:OpenCV学习笔记(一)——安装配置、第一个程序(http://blog.csdn.net/yang_xian521/article/details/6894228)
- JBOSS安装与配置搭建本地项目环境
- Mac OS 环境下 安装 Asp.Net及使用Yeoman 创建Asp.Net 项目
- 【安装eclipse, 配置java环境教程】 编写第一个java程序
- 电商项目(四)开发环境安装与配置讲解(tomcat)
- Intellij IDEA创建Maven Web项目以及ubuntu maven环境安装配置
- 电商项目(五)开发环境安装与配置(maven)
- 云服务器项目部署环境安装配置(二)-- MySQL安装
- java Android SDK安装与环境变量配置以及开发第一个Android程序
- xp下asp.net开发环境配置 iis安装教程
- ASP.NET项目中在64位环境下运行32位dll的配置
- 重新安装win7 x64,配置asp.net开发环境