System.Web
is not a nuget-package, it's a framework reference and System.Web.Hosting
is one of the namespaces located in System.Web
Depending on your project-type, whether it's the old or new format, you have to do the following
For old format:
For new format:
<ItemGroup>
or add a new one<Reference Include="System.Web" />
I did not know that System.Web
is not available for .netstandard
projects. And my project is a .netstandard
project (migrating from .net framework).
This is the reason why the System.Web package is not available. I think it would be far more better, if unavailable packages would be displayed, but with message, that they are not availble for a particular reason.
Otherwise users spend much time to finding out the reason of such issue.
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.