Skip to content

Commit

Permalink
Update to .NET Core
Browse files Browse the repository at this point in the history
  • Loading branch information
bigkahuna443 committed Jan 4, 2024
1 parent aebc838 commit 4a9db1c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: 5.0.x
dotnet-version: 7.0.x

- name: Install dependencies
run: dotnet restore
Expand All @@ -39,4 +39,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: bin
path: Code/bin/Debug/net452
path: Code/bin/Debug/net7.0
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: 5.0.x
dotnet-version: 7.0.x

- name: Install dependencies
run: dotnet restore
Expand Down
27 changes: 4 additions & 23 deletions Code/OutbackHelper.csproj
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net452</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<AssemblyName>OutbackHelper</AssemblyName>
<RootNamespace>OutbackHelper</RootNamespace>
<LangVersion>latest</LangVersion>
<CelestePrefix Condition="'$(CelestePrefix)' == '' And Exists('..\..\Celeste.exe')">..\..</CelestePrefix>
<CelestePrefix Condition="'$(CelestePrefix)' == '' And Exists('..\..\..\Celeste.exe')">..\..\..</CelestePrefix>
<CelestePrefix Condition="'$(CelestePrefix)' == '' And Exists('..\..\..\Celeste.dll')">..\..\..</CelestePrefix>
<CelestePrefix Condition="'$(CelestePrefix)' == ''">lib-stripped</CelestePrefix>
<CelesteType Condition="'$(CelesteType)' == '' And Exists('$(CelestePrefix)\BuildIsXNA.txt')">XNA</CelesteType>
<CelesteType Condition="'$(CelesteType)' == ''">FNA</CelesteType>
<XNAPath Condition="'$(XNAPath)' == ''">$(WINDIR)\Microsoft.NET\assembly\GAC_32\{0}\v4.0_4.0.0.0__842cf8be1de50553\{0}.dll</XNAPath>
</PropertyGroup>

<!--Disable "Copy Local" for all references-->
Expand All @@ -20,26 +16,11 @@
</ItemDefinitionGroup>

<ItemGroup>
<Reference Include="$(CelestePrefix)\Celeste.exe" />
<Reference Include="$(CelestePrefix)\Celeste.dll" />
<Reference Include="$(CelestePrefix)\MMHOOK_Celeste.dll" />
<Reference Include="$(CelestePrefix)\FNA.dll" />
</ItemGroup>

<Choose>
<When Condition="'$(CelesteType)' == 'FNA'">
<ItemGroup>
<Reference Include="$(CelestePrefix)\FNA.dll" />
</ItemGroup>
</When>

<When Condition="'$(CelesteType)' == 'XNA'">
<ItemGroup>
<Reference Include="$([System.String]::Format('$(XNAPath)', 'Microsoft.Xna.Framework'))" />
<Reference Include="$([System.String]::Format('$(XNAPath)', 'Microsoft.Xna.Framework.Game'))" />
<Reference Include="$([System.String]::Format('$(XNAPath)', 'Microsoft.Xna.Framework.Graphics'))" />
</ItemGroup>
</When>
</Choose>

<Target Name="CopyFiles" AfterTargets="Build">
<Copy SourceFiles="$(OutputPath)\$(AssemblyName).dll" DestinationFolder="bin" />
<Copy SourceFiles="$(OutputPath)\$(AssemblyName).pdb" DestinationFolder="bin" />
Expand Down
2 changes: 1 addition & 1 deletion everest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
DLL: Code/bin/OutbackHelper.dll
Dependencies:
- Name: Everest
Version: 1.3761.0
Version: 1.4465.0

0 comments on commit 4a9db1c

Please sign in to comment.