diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4822665..ccc4207 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,10 +43,10 @@ jobs: run: dotnet test - name: "dotnet pack: ${{ env.VER_STR }}" - run: dotnet pack Src/RT.Keyboard.csproj --configuration Release -p:InformationalVersion="${{env.VER_STR}}" -p:VersionPrefix=${{env.VER_NUM}} -p:VersionSuffix=${{env.VER_SUF}} -p:FileVersion=${{env.VER_NUM}} -p:AssemblyVersion=${{env.VER_NUM}} -o Publish + run: dotnet pack Src\RT.Keyboard.csproj --configuration Release -p:InformationalVersion="${{env.VER_STR}}" -p:VersionPrefix=${{env.VER_NUM}} -p:VersionSuffix=${{env.VER_SUF}} -p:FileVersion=${{env.VER_NUM}} -p:AssemblyVersion=${{env.VER_NUM}} -o Publish - name: Push to NuGet - run: dotnet nuget push Publish/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json + run: dotnet nuget push Publish\*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json - name: Upload artifact uses: actions/upload-artifact@v3 diff --git a/Src/WinAPI.cs b/Src/WinAPI.cs index a1327c9..d5e2be6 100644 --- a/Src/WinAPI.cs +++ b/Src/WinAPI.cs @@ -34,6 +34,7 @@ static class WinAPI public const int INPUT_KEYBOARD = 1; public const int INPUT_HARDWARE = 2; +#pragma warning disable 0649 // field is never assigned public struct KeyboardHookStruct { public int vkCode;