Skip to content

Commit

Permalink
Updated runtime config file
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorMcKay committed Jan 12, 2024
1 parent bab9ecf commit b709072
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: |
mkdir artifacts
cp HSPI_TeslaPowerwall\bin\Release\HSPI_TeslaPowerwall.exe artifacts\HSPI_TeslaPowerwall.exe
cp HSPI_TeslaPowerwall.exe.config artifacts\HSPI_TeslaPowerwall.exe.config
cp HSPI_TeslaPowerwall\bin\Release\HSPI_TeslaPowerwall.exe.config artifacts\HSPI_TeslaPowerwall.exe.config
cp HSPI_TeslaPowerwall\bin\Release\*.dll artifacts
cp install.txt artifacts\install.txt
$release_version = (Get-ChildItem -Filter "artifacts\HSPI_TeslaPowerwall.exe" | Select-Object -ExpandProperty VersionInfo).FileVersion.Replace('.', '-')
Expand All @@ -47,8 +47,8 @@ jobs:
- name: Stage debug artifacts
run: |
mkdir artifacts-debug
cp HSPI_TeslaPowerwall\bin\Debug\HSPI_TeslaPowerwall.exe "artifacts-debug\HSPI_TeslaPowerwall.exe"
cp HSPI_TeslaPowerwall.exe.config artifacts-debug\HSPI_TeslaPowerwall.exe.config
cp HSPI_TeslaPowerwall\bin\Debug\HSPI_TeslaPowerwall.exe artifacts-debug\HSPI_TeslaPowerwall.exe
cp HSPI_TeslaPowerwall\bin\Debug\HSPI_TeslaPowerwall.exe.config artifacts-debug\HSPI_TeslaPowerwall.exe.config
cp HSPI_TeslaPowerwall\bin\Debug\*.dll artifacts-debug
- name: Upload artifacts
Expand Down
11 changes: 0 additions & 11 deletions HSPI_TeslaPowerwall.exe.config

This file was deleted.

15 changes: 15 additions & 0 deletions HSPI_TeslaPowerwall/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin/TeslaPowerwall" />
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>
1 change: 1 addition & 0 deletions HSPI_TeslaPowerwall/HSPI_TeslaPowerwall.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down

0 comments on commit b709072

Please sign in to comment.