Skip to content

Commit a5c9d9d

Browse files
committed
Fix warnings. Fix build.
1 parent 676e23b commit a5c9d9d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ jobs:
4343
run: dotnet test
4444

4545
- name: "dotnet pack: ${{ env.VER_STR }}"
46-
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
46+
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
4747

4848
- name: Push to NuGet
49-
run: dotnet nuget push Publish/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
49+
run: dotnet nuget push Publish\*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
5050

5151
- name: Upload artifact
5252
uses: actions/upload-artifact@v3

Src/WinAPI.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ static class WinAPI
3434
public const int INPUT_KEYBOARD = 1;
3535
public const int INPUT_HARDWARE = 2;
3636

37+
#pragma warning disable 0649 // field is never assigned
3738
public struct KeyboardHookStruct
3839
{
3940
public int vkCode;

0 commit comments

Comments
 (0)