返回上一頁

Install & Config Cake Build for VsCode

Cake .NET Tools

  • Install Vs Code Extenstion cake-build.cake-vscode
  • Install Vs Code Intellisense Support, Type Ctrl + Shift + P & then

    >Cake: Install intellisense support

  • Init Cake Support in project/global
    • install in current project
    dotnet tool install cake.tool
    
    • or run global install
    dotnet tool install --global cake.tool 
    
    • note that private nuget source will let follow install script fail, you can ignore fail source using --ignore-failed-sources argument
    dotnet tool install cake.tool --ignore-failed-sources
    
  • Init a Sample Build File
    • Type Ctrl + Shift + P & then Type

    >Cake: Install sample build file

  • enjoy your cake with terminal
dotnet cake

Cake Frosting

dotnet nuget disable source `PRIVATE_NUGET_SOURCE_NAME`
dotnet new --install cake.frosting.template
dotnet nuget enable source `PRIVATE_NUGET_SOURCE_NAME`
dotnet new cakefrosting
dotnet restore .\build\Build.csproj --ignore-failed-sources