Skip to content

Commit

Permalink
Release prep and some test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
daveaglick committed Dec 20, 2020
1 parent 8d4ed30 commit e83ed25
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 3.1.1

- Added Workspaces support for analyzers and source generators (#157, #158, thanks @svick)
- Updated the Microsoft.CodeAnalysis packages to 3.8.0 (#155, thanks @jjonescz)
- Added a fix for F# support (#151, #152, thanks @dukedagmor)

# 3.1.0

- Added `SourceFiles` and `References` for F# projects (#146, thanks @dukedagmor)
Expand Down
2 changes: 1 addition & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ Task("Default")

Task("Release")
.Description("Generates a GitHub release, pushes the NuGet package, and deploys the docs site.")
// .IsDependentOn("GitHub")
.IsDependentOn("GitHub")
.IsDependentOn("NuGet");

Task("BuildServer")
Expand Down
4 changes: 2 additions & 2 deletions src/Buildalyzer.Workspaces/Buildalyzer.Workspaces.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.7.0" />
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic.Workspaces" Version="3.7.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.8.0" />
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic.Workspaces" Version="3.8.0" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 6 additions & 2 deletions tests/Buildalyzer.Tests/Integration/SimpleProjectsFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,11 @@ public void GetsSourceFiles(
};

// When
IReadOnlyList<string> sourceFiles = analyzer.Build(options).First().SourceFiles;
IAnalyzerResults results = analyzer.Build(options);

// Then
// If this is the multi-targeted project, use the net462 target
IReadOnlyList<string> sourceFiles = results.Count == 1 ? results.First().SourceFiles : results["net462"].SourceFiles;
sourceFiles.ShouldNotBeNull(log.ToString());
new[]
{
Expand Down Expand Up @@ -168,9 +170,11 @@ public void GetsSourceFilesFromBinaryLog(
{
// When
analyzer.Build(options);
IReadOnlyList<string> sourceFiles = analyzer.Manager.Analyze(binLogPath).First().SourceFiles;
IAnalyzerResults results = analyzer.Manager.Analyze(binLogPath);

// Then
// If this is the multi-targeted project, use the net462 target
IReadOnlyList<string> sourceFiles = results.Count == 1 ? results.First().SourceFiles : results["net462"].SourceFiles;
sourceFiles.ShouldNotBeNull(log.ToString());
new[]
{
Expand Down

0 comments on commit e83ed25

Please sign in to comment.