Skip to content

Update CreateComponentTool.cs #50

Update CreateComponentTool.cs

Update CreateComponentTool.cs #50

Workflow file for this run

name: Build WPF Designer
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
Configuration: [ Debug, Release ]
env:
BuildPlatform: 'Any CPU'
BuildVersion: '8.1.${{ github.run_number }}'
steps:
- uses: actions/checkout@v2
- name: Update project version
uses: roryprimrose/set-vs-sdk-project-version@v1
with:
projectFilter: '**/*.csproj'
version: ${{ env.BuildVersion }}
assemblyVersion: ${{ env.BuildVersion }}
fileVersion: ${{ env.BuildVersion }}
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Setup NuGet.exe
uses: nuget/setup-nuget@v1
- run: nuget restore WpfDesign.sln
- name: Build
run: dotnet build WpfDesign.sln --no-restore -c ${{ matrix.configuration }}
- name: Test
run: dotnet test WpfDesign.sln --no-build --verbosity normal -c ${{ matrix.configuration }}
- name: Pack
if: matrix.configuration == 'release'
run: .\nuget\pack.ps1
- name: Upload NuGet
if: matrix.configuration == 'release'
uses: actions/upload-artifact@v2
with:
name: NuGet Packages (${{ matrix.configuration }})
path: '**/*.nupkg'
if-no-files-found: error