您的位置:首页 > 其它

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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: