2017-02-04
Visual Studio 2017 Enterprise
.NET Framework 4.6.2
ASP.NET Web Application ( .NET Framework ) 專案
ASP.NET 4.6.2 範本
(下圖) 移除時候可以看到相依狀況
********************************************************************************
根據 NuGet 安裝畫面說明
若安裝 Microsoft.AspNet.Identity.Core v2.2.1,不須任何相依套件
若安裝 Microsoft.AspNet.Identity.EntityFramework v2.2.1,會自動安裝相依套件
Microsoft.AspNet.Identity.Core (>= 2.2.1)
EntityFramework (>= 6.1.0)
若安裝 Microsoft.AspNet.Identity.Owin v2.2.1,會自動安裝相依套件
Microsoft.AspNet.Identity.Core (>= 2.2.1)
Microsoft.Owin.Security.OAuth (>= 2.1.0)
Microsoft.Owin.Security.Cookies (>= 2.1.0)
Microsoft.Owin.Security (>= 2.1.0)
若安裝 Microsoft.AspNet.Identity.Core.zh-Hans v2.2.1,會自動安裝相依套件
Microsoft.AspNet.Identity.Core
若安裝 Microsoft.AspNet.Identity.Owin.zh-Hans v2.2.1,會自動安裝相依套件
Microsoft.AspNet.Identity.Owin
若安裝 Microsoft.AspNet.Identity.EntityFramework.zh-Hans v2.2.1,會自動安裝相依套件
Microsoft.AspNet.Identity.EntityFramework
********************************************************************************
實際測試
尚未安裝時,packages.config 為
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="1.0.3" targetFramework="net462" />
<package id="Microsoft.Net.Compilers" version="1.3.2" targetFramework="net462" developmentDependency="true" />
</packages>
********************************************************************************
重新建立新的空方案
安裝 Microsoft.AspNet.Identity.Core v2.2.1 後,packages.config 為
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.AspNet.Identity.Core" version="2.2.1" targetFramework="net462" />
<package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="1.0.3" targetFramework="net462" />
<package id="Microsoft.Net.Compilers" version="1.3.2" targetFramework="net462" developmentDependency="true" />
</packages>
********************************************************************************
重新建立新的空方案
安裝 Microsoft.AspNet.Identity.EntityFramework v2.2.1 後,packages.config 為
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="EntityFramework" version="6.1.0" targetFramework="net462" />
<package id="Microsoft.AspNet.Identity.Core" version="2.2.1" targetFramework="net462" />
<package id="Microsoft.AspNet.Identity.EntityFramework" version="2.2.1" targetFramework="net462" />
<package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="1.0.3" targetFramework="net462" />
<package id="Microsoft.Net.Compilers" version="1.3.2" targetFramework="net462" developmentDependency="true" />
</packages>
********************************************************************************
重新建立新的空方案
安裝 Microsoft.AspNet.Identity.Owin v2.2.1 後,packages.config 為
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.AspNet.Identity.Core" version="2.2.1" targetFramework="net462" />
<package id="Microsoft.AspNet.Identity.Owin" version="2.2.1" targetFramework="net462" />
<package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="1.0.3" targetFramework="net462" />
<package id="Microsoft.Net.Compilers" version="1.3.2" targetFramework="net462" developmentDependency="true" />
<package id="Microsoft.Owin" version="2.1.0" targetFramework="net462" />
<package id="Microsoft.Owin.Security" version="2.1.0" targetFramework="net462" />
<package id="Microsoft.Owin.Security.Cookies" version="2.1.0" targetFramework="net462" />
<package id="Microsoft.Owin.Security.OAuth" version="2.1.0" targetFramework="net462" />
<package id="Newtonsoft.Json" version="4.5.11" targetFramework="net462" />
<package id="Owin" version="1.0" targetFramework="net462" />
</packages>
********************************************************************************
重新建立新的空方案
安裝 Microsoft.AspNet.Identity.Owin.zh-Hans v2.2.1 後,packages.config 為
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.AspNet.Identity.Core" version="2.2.1" targetFramework="net462" />
<package id="Microsoft.AspNet.Identity.Owin" version="2.2.1" targetFramework="net462" />
<package id="Microsoft.AspNet.Identity.Owin.zh-Hans" version="2.2.1" targetFramework="net462" />
<package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="1.0.3" targetFramework="net462" />
<package id="Microsoft.Net.Compilers" version="1.3.2" targetFramework="net462" developmentDependency="true" />
<package id="Microsoft.Owin" version="2.1.0" targetFramework="net462" />
<package id="Microsoft.Owin.Security" version="2.1.0" targetFramework="net462" />
<package id="Microsoft.Owin.Security.Cookies" version="2.1.0" targetFramework="net462" />
<package id="Microsoft.Owin.Security.OAuth" version="2.1.0" targetFramework="net462" />
<package id="Newtonsoft.Json" version="4.5.11" targetFramework="net462" />
<package id="Owin" version="1.0" targetFramework="net462" />
</packages>
********************************************************************************
參考這篇,花了些時間整理出下圖
(下圖) Click 可看 100% 原圖
(完)
相關
[研究] ASP.NET Identity v2.2.1 相依套件與 packages.config 階層架構
http://shaurong.blogspot.tw/2017/04/aspnet-identity-v221-packagesconfig.html
[研究] ASP.NET Web Application 專案 WebForm 範本 (VS2015+.NET 4.6.2) 的 packages.config 套件階層架構
http://shaurong.blogspot.com/2017/02/aspnet-web-application-webform.html
[研究] ASP.NET Web Application 專案空白範本 (VS2015+.NET 4.6.2) 的 packages.config 內容
http://shaurong.blogspot.com/2017/01/aspnet-web-application-vs2015net-462.html
[研究] ASP.NET Web Application 專案 WebForm 範本 (VS2015+.NET 4.6.2) 的 packages.config 內容
http://shaurong.blogspot.com/2017/01/webform-vs2015net-462-packagesconfig.html
沒有留言:
張貼留言