Skip to content

Commit

Permalink
Revert "update to .NET 9.0"
Browse files Browse the repository at this point in the history
This reverts commit 7123f46.
  • Loading branch information
adrianoc-unity3d committed Nov 30, 2024
1 parent 8f00cdf commit 4574fba
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Cecilifier.Common.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>12</LangVersion>
<AssemblyVersion>2.18.0</AssemblyVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand Down
4 changes: 2 additions & 2 deletions Cecilifier.CommonPackages.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.12.0-3.final" />
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.12.0-3.final" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.12.0-1.final" />
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.12.0-1.final" />
<PackageReference Include="Mono.Cecil"><Version>0.11.6</Version></PackageReference>
</ItemGroup>
</Project>
8 changes: 4 additions & 4 deletions Cecilifier.Core.Tests/Cecilifier.Core.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<Import Project="../Cecilifier.Common.props" />
<Import Project="../Cecilifier.CommonPackages.props" />
<ItemGroup>
<PackageReference Include="Basic.Reference.Assemblies.Net90" Version="1.7.9" />
<PackageReference Include="Basic.Reference.Assemblies.Net80" Version="1.7.9" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.ILVerification" Version="9.0.0" />
<PackageReference Include="Microsoft.ILVerification" Version="9.0.0-rc.2.24473.5" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="NUnit" Version="4.2.2" />
<PackageReference Include="NUnit3TestAdapter" Version="5.0.0-beta.5" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Cecilifier.Core\Cecilifier.Core.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ using System.Collections.Generic;

class GenericTypesAsMembers
{
public IList<int> asField;
public IList<int> Property { get { return asField; } set { asField = value; } }
public IList<int> field;
public IList<int> Property { get { return field; } set { field = value; } }

public IList<string> Method(IList<string> l)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class RefProperties
{
private int prop;
private int field;
ref int Property
{
get => ref prop;
get => ref field;
}

public ref int UseRefProperty() => ref Property;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ private protected IReadOnlyCollection<MemberDependency> CollectDependenciesFromS
protected static CSharpCompilation CompilationFor(params string[] code)
{
var syntaxTrees = code.Select(source => CSharpSyntaxTree.ParseText(source));
var comp = CSharpCompilation.Create("Test", syntaxTrees, Basic.Reference.Assemblies.Net90.References.All, new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary));
var comp = CSharpCompilation.Create("Test", syntaxTrees, Basic.Reference.Assemblies.Net80.References.All, new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary));

var errors = comp.GetDiagnostics()
.Where(d => d.Severity == DiagnosticSeverity.Error)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.12.0-3.final" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.12.0-3.final" PrivateAssets="all" />
<PackageReference Include="System.Reflection.Metadata" Version="9.0.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.9.2" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.9.2" PrivateAssets="all" />
<PackageReference Include="System.Reflection.Metadata" Version="8.0.0" PrivateAssets="all" />
<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.3.0" PrivateAssets="all" />
</ItemGroup>

Expand Down

0 comments on commit 4574fba

Please sign in to comment.