简体   繁体   中英

.NET Code System.Web install source

Using Visual Studio Code on my mac book on sort of a Hello World type app. However, when I try to include a reference to System.Web, I get an alert stating:

The type or namespace name 'Web' does not exist in the namespace 'System' (are you missing an assembly reference?) [netcoreapp1.0] Unnecessary using directive. [netcoreapp1.0]

I obviously supposed to add a reference System.Web, but giving the relative newness of this, I'm not sure of which nuget package I should apply to the project.

Any advice will be helpful.

Removed System.Web dependence is one of the benefit of ASP.NET Core, that by the way allows to build and run cross-platform ASP.NET apps. From ASP.NET Core documentation :

ASP.NET Core has a number of architectural changes that result in a much leaner and modular framework. ASP.NET Core is no longer based on System.Web.dll. It is based on a set of granular and well factored NuGet packages.

Don't know about source with nuget package descriptions, but you can start from searching in https://github.com/aspnet for appropriate project

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM