Fix mistake on previous workflow edits (#1950)
* Fix restore command on workflows. - Correct path when restoring application packages. - Add --no-restore for application build. * Add RuntimeIdentifiers. So restore knows what packages to pick.
This commit is contained in:
@@ -31,10 +31,10 @@ jobs:
|
||||
} | Set-Content Directory.Build.props
|
||||
|
||||
- name: Restore application packages
|
||||
run: dotnet restore LibreHardwareMonitorLib\LibreHardwareMonitorLib.csproj
|
||||
run: dotnet restore LibreHardwareMonitor\LibreHardwareMonitor.csproj
|
||||
|
||||
- name: Build application
|
||||
run: dotnet build LibreHardwareMonitor\LibreHardwareMonitor.csproj -c Release -p:Platform=x64
|
||||
run: dotnet build LibreHardwareMonitor\LibreHardwareMonitor.csproj -c Release --no-restore -p:Platform=x64
|
||||
|
||||
- name: Publish application
|
||||
uses: actions/upload-artifact@v4
|
||||
|
||||
@@ -31,10 +31,10 @@ jobs:
|
||||
} | Set-Content Directory.Build.props
|
||||
|
||||
- name: Restore application packages
|
||||
run: dotnet restore LibreHardwareMonitorLib\LibreHardwareMonitorLib.csproj
|
||||
run: dotnet restore LibreHardwareMonitor\LibreHardwareMonitor.csproj
|
||||
|
||||
- name: Build application
|
||||
run: dotnet build LibreHardwareMonitor\LibreHardwareMonitor.csproj -c Release -p:Platform=x64
|
||||
run: dotnet build LibreHardwareMonitor\LibreHardwareMonitor.csproj -c Release --no-restore -p:Platform=x64
|
||||
|
||||
- name: Publish application
|
||||
uses: actions/upload-artifact@v4
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
<OutputPath>..\bin\$(Configuration)\</OutputPath>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
|
||||
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<DebugType>full</DebugType>
|
||||
|
||||
Reference in New Issue
Block a user