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 5b2a0db commit 4d200c5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 28 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
29 changes: 5 additions & 24 deletions Code/Sardine7.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>Sardine7</AssemblyName>
<RootNamespace>Sardine7</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,30 +16,15 @@
</ItemDefinitionGroup>

<ItemGroup>
<PackageReference Include="MonoMod.RuntimeDetour" Version="22.01.04.03" />
<PackageReference Include="MonoMod.RuntimeDetour" Version="25.0.2" PrivateAssets="all" ExcludeAssets="runtime" />
</ItemGroup>

<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/Sardine7.dll
Dependencies:
- Name: Everest
Version: 1.1574.0
Version: 1.4465.0

0 comments on commit 4d200c5

Please sign in to comment.