である私は、.NETのコアへの.NET 4からアプリケーションを移植していますし、HttpListenerをクラス.NETのコアでHttpListenerをアナログ
Error CS0246 The type or namespace name 'HttpListener' could not be found (are you missing a using directive or an assembly reference?)
アップデート1
private readonly HttpListener _httpListener;
if (!HttpListener.IsSupported)
{
throw new NotSupportedException(
"The Http Server cannot run on this operating system.");
}
_httpListener = new HttpListener();
_httpListener.Prefixes.Add(prefix);
_sessionSettings = settings;
WebListenerそれを持っていますか? https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/weblistener –
また、githubにいくつかの簡単なライブラリがありますhttps://github.com/robertsundstrom/HttpListener –
突然両方(WebListenerとgithub .com/robertsundstrom/HttpListener)にはいくつかのプロパティがありません。互換性がないため、 – Alexander