Skip to content

Commit

Permalink
update to .net7 and roslyn workspace 4.4.0
Browse files Browse the repository at this point in the history
target .NET 6.0


revert to target 3.1
  • Loading branch information
colombod authored and daveaglick committed Nov 29, 2022
1 parent 585b2be commit 9bd8874
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Buildalyzer.Workspaces/Buildalyzer.Workspaces.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.1.0" />
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic.Workspaces" Version="4.1.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.4.0" />
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic.Workspaces" Version="4.4.0" />
</ItemGroup>

<ItemGroup>
Expand Down
5 changes: 4 additions & 1 deletion tests/Buildalyzer.Tests/AnalyzerResultFixture.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Linq;
using System.Text;
Expand Down Expand Up @@ -53,6 +54,7 @@ public void ParsesCscCommandLineSourceFiles(string commandLine, string[] sourceF
[TestCase("foo.cs bar.cs csc.dll", new[] { "foo.cs", "bar.cs" })]
[TestCase("foo.cs csc.exe bar.cs", new[] { "foo.cs", "bar.cs" })]
[TestCase("foo.cs bar.cs", new[] { "foo.cs", "bar.cs" })]
[SuppressMessage("CA1062", "CA1062:Validate arguments of public methods", Justification = "Test")]
public void RemovesCscAssembliesFromSourceFiles(string input, string[] sourceFiles)
{
// Given
Expand Down Expand Up @@ -95,6 +97,7 @@ public void ParsesCscCommandLineWithAliasReference()

[TestCase("C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\MSBuild\\Current\\Bin\\Roslyn\\csc.exe /noconfig")]
[TestCase("/one two/three/csc.dll /noconfig")]
[SuppressMessage("CA1062", "CA1062:Validate arguments of public methods", Justification = "Test")]
public void TreatsCscCommandAsSingleArg(string commandLine)
{
// Given, When
Expand Down Expand Up @@ -205,7 +208,7 @@ public void ParseVbcCommandLineWithMultipleReferences()
result.ProcessVbcCommandLine(commandLine);

// Then
result.References.Count().ShouldBe(2);
result.References.Length.ShouldBe(2);
}
}
}

0 comments on commit 9bd8874

Please sign in to comment.