Ext.NET第一个项目的安装环境配置

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>



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值