FileServer 1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global FileServer --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local FileServer --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=FileServer&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package FileServer --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
File Server
A command-line http server for loading static content. It can be used for local development, testing, and production purposes.
Usage
Simply navigate to a given directory from the command line and run file-server
. Then access it from the browser on localhost:8080
, 8080 being the default port number.
To run file-server on a custom port, provide --port
or -p
as an argument. For example file-server --port 1313
will launch the server on port 1313.
You can also run multiple insances on file-server where each listens on a subsequent port unless a custom one is provided.
Development
FileServer runs on .NET 5
Install from Source
- Navigate to the project folder from the command line
cd path\to\file-server
- Run
dotnet pack
- Run
dotnet tool install --global --add-source .\nupkg\ FileServer
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.