Skip to content

Commit bee0dc3

Browse files
committed
Upgrade to .net 7 and update libs
(required to parse .net7 projects)
1 parent b5c58b8 commit bee0dc3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Src/CodeModel/Solution.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public async Task LoadProjects(string glob)
4141
matcher.AddIncludePatterns(glob.Split(','));
4242

4343
projects = solution.Projects
44-
.Where(p => matcher.Match(Path.GetDirectoryName(slnFile), p.FilePath).HasMatches)
44+
.Where(p => matcher.Match(Path.GetDirectoryName(slnFile)!, p.FilePath!).HasMatches)
4545
.Select(p => new Project(p.Id))
4646
.ToList();
4747
}

Src/RecastCSharp.csproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net60</TargetFramework>
6-
<Version>1.0.4</Version>
5+
<TargetFramework>net70</TargetFramework>
6+
<Version>2.0.0</Version>
77
<PackageLicenseExpression>MIT</PackageLicenseExpression>
88
<Nullable>enable</Nullable>
99
<WarningsAsErrors>nullable</WarningsAsErrors>
@@ -19,10 +19,10 @@
1919
</PropertyGroup>
2020

2121
<ItemGroup>
22-
<PackageReference Include="Microsoft.Build.Locator" Version="1.4.1" />
23-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.2.0" />
24-
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.MSBuild" Version="4.2.0" />
25-
<PackageReference Include="Microsoft.Extensions.FileSystemGlobbing" Version="6.0.0" />
22+
<PackageReference Include="Microsoft.Build.Locator" Version="1.5.5" />
23+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.4.0" />
24+
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.MSBuild" Version="4.4.0" />
25+
<PackageReference Include="Microsoft.Extensions.FileSystemGlobbing" Version="7.0.0" />
2626
<PackageReference Include="Polly" Version="7.2.3" />
2727
<PackageReference Include="Scriban" Version="5.5.0" />
2828
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />

0 commit comments

Comments
 (0)