Skip to content

LeaFrock/SpiderX.Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpiderX.Template

.NET Core License

CLI & Templates of SpiderX.

本仓库用来存放SpiderX项目的命令行工具和模板。

Disclaimer |免责声明

For everyone, this repo must be used legally under local law. Users have total responsibility for ensuring their own compliance with legal requirements, while authors and contributors won't be held responsible for actions of illegal users.

对所有人来说,该项目必须在当地法律允许的范围内使用。使用者对确保自己遵守法律要求负有完全责任,而作者和贡献者对违法使用者的行为概不负责。

Packages |Nuget包

Name Description NugetPackage
SpiderX.Template Global tool Global Tool Nuget
SpiderX.TemplatePacks Templates TemplatePacks Nuget

Instructions |使用说明

In the meanwhile of use, it's better to ensure network connection. Otherwise some commandlines might not work properly.

在使用期间,最好确保网络连接。否则部分命令可能不会有效执行。

Install |安装

Execute a dotnet-tool commandline to install the global tool.

执行dotnet-tool命令行安装全局工具。

dotnet tool install -g SpiderX.Template

Use |使用

The 'spiderx' commandlines are tested by (& recommended for) working with Package Manager Console of Visual Studio(16.5+).

‘spiderx’系列指令在Visual Studio(16.5+)的程序包管理器控制台上进行了测试(同样也推荐这么使用)。

  • spiderx new

    • Params |参数

      FullName ShortName Description Type Required DefaultValue
      --project -p Give the name of new project to be created String true --
      --namespace -n Give the namespace of new project String false SpiderX.Business
      --version -v Select which version of template to apply String false null
      --output -o Set the output path of files DirectoryInfo false Current directory
      --force -f Update(/Reinstall) and use the latest template Bool false false
    • Samples |样例

      1. spiderx new -p Github

      2. spiderx new -p Github -n MyNamespace -v 0.1.0 -o C:\\MyDirectory

Uninstall |卸载

  1. Execute a dotnet-tool commandline to uninstall the global tool.

    执行dotnet-tool命令行卸载全局工具。

    dotnet tool uninstall -g SpiderX.Template

  2. Execute a dotnet-new commandline to uninstall related templates.

    执行dotnet-new命令行卸载相关模板。

    dotnet new -u SpiderX.TemplatePacks

References |参考

End |结束语

The templates can improve the efficiency of programming a lot. Try it by yourself and have fun!

模板可以极大地提升编程效率。自己动手试试吧!祝使用愉快!

Releases

No releases published

Packages

No packages published

Languages