博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Ext.NET第一个项目的安装环境配置
阅读量:4115 次
发布时间:2019-05-25

本文共 4052 字,大约阅读时间需要 13 分钟。

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

1、下载NuGet 插件

tool--〉extension manager

2、安装好插件后,在tool菜单上会出现Library Package Manager,点击Package Manager Console

在下面会有一个区域显示pm〉命令的--〉输入Install-Package Ext.NET,然后等待一会,就会在项目中看到安装好的包了

{上面的网址是告诉你如何去下载和安装插件的}

3、配置web.config配置文件

一般情况下新建了一个website项目后,会自动生成一个配置文件,可以参考官方网址.下载,找到里面的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>

转载地址:http://ksupi.baihongyu.com/

你可能感兴趣的文章
看到程序员11月平均工资后,我第一反应:这是假的吧!
查看>>
HTML实现关键词高亮字符串中匹配“跨标签关键词”
查看>>
【Vue.js入门到实战教程】11-Vue Loader(下)| 编写一个单文件 Vue 组件
查看>>
5种前端实现邮件发送至指定邮箱的方式
查看>>
5大关于https的误区,你需要知道一下
查看>>
CSS两列布局的N种实现
查看>>
【Vue.js入门到实战教程】12-在 Laravel 项目中编写单文件 Vue 组件
查看>>
Node.js模块化你所需要知道的事
查看>>
为什么不推荐用for...in遍历数组
查看>>
使用CSS3 Cubic-Bezier创建动画链接悬停效果
查看>>
Fetch还是Axios,哪个更适合HTTP请求?
查看>>
File、Blob、dataURL 和 canvas 的应用与转换
查看>>
如何使用更新的HTML和CSS函数创建响应式设计
查看>>
【Vue.js入门到实战教程】13-通过 Axios 发送 Ajax 请求获取接口数据渲染组件
查看>>
你应该知道的7个有用的JavaScript高阶函数
查看>>
TypeScript的索引类型与映射类型,以及常用工具泛型的实现
查看>>
震惊!针对WEB开发者华为又出新动作!
查看>>
【Vue.js入门到实战教程】14-基于 Laravel Jetstream 的Vue 技术栈编写表单组件
查看>>
process.env前端环境变量配置教程
查看>>
页面中有间隔的方格布局如何完美实现?
查看>>