Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
Upgrade Polyfill and C# lang version
Browse files Browse the repository at this point in the history
Polyfill 1.33.2 solves the Index/Range issue, while it requires C# 12
  • Loading branch information
SadPencil committed Dec 10, 2023
1 parent e5f5f3c commit 1891e38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ClientUpdater/ClientUpdater.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>11.0</LangVersion>
<LangVersion>12.0</LangVersion>
<Title>CnCNet.ClientUpdater</Title>
<Description>CnCNet Client Updater Library</Description>
<Company>CnCNet</Company>
Expand Down Expand Up @@ -48,7 +48,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="Polyfill" Version="1.32.0">
<PackageReference Include="Polyfill" Version="1.33.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down
7 changes: 2 additions & 5 deletions SecondStageUpdater/SecondStageUpdater.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net48</TargetFramework>
<LangVersion>11.0</LangVersion>
<LangVersion>12.0</LangVersion>
<OutputType>Exe</OutputType>
<Title></Title>
<Description>CnCNet Client Second-Stage Updater</Description>
Expand All @@ -22,17 +22,14 @@
<Version>1.0.1.1</Version>
<AssemblyVersion>$(PackageVersion)</AssemblyVersion>
<FileVersion>$(PackageVersion)</FileVersion>

<!-- workaround: temporarily bypass Polyfill's missing Index Range issue -->
<DefineConstants>$(DefineConstants);NET48X</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Rampastring.Tools" Version="2.0.4" />
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.435">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Polyfill" Version="1.32.0">
<PackageReference Include="Polyfill" Version="1.33.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down

0 comments on commit 1891e38

Please sign in to comment.