8000 Fix random build failure due to System.IO.FileSystem not found · jianges/libgit2sharp@e5a4a71 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit e5a4a71

Browse files
committed
Fix random build failure due to System.IO.FileSystem not found
Applies fix for AArnott/CodeGeneration.Roslyn#25
1 parent e323be6 commit e5a4a71

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

CodeGeneration/OfferFriendlyInteropOverloadsGenerator.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ public OfferFriendlyInteropOverloadsGenerator(AttributeData data)
3030
{
3131
}
3232

33-
public Task<SyntaxList<MemberDeclarationSyntax>> GenerateAsync(MemberDeclarationSyntax applyTo, CSharpCompilation compilation, IProgress<Diagnostic> progress, CancellationToken cancellationToken)
33+
public Task<SyntaxList<MemberDeclarationSyntax>> GenerateAsync(TransformationContext context, IProgress<Diagnostic> progress, CancellationToken cancellationToken)
3434
{
35+
MemberDeclarationSyntax applyTo = context.ProcessingMember;
36+
Compilation compilation = context.Compilation;
3537
Func<ParameterSyntax, AttributeListSyntax, MarshaledParameter> findMarshalAttribute = (p, al) =>
3638
{
3739
var marshalAttribute = al.Attributes.FirstOrDefault(a => (a.Name as SimpleNameSyntax)?.Identifier.ValueText == "CustomMarshaler");

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<OutputPath>$(MSBuildThisFileDirectory)bin\$(MSBuildProjectName)\$(Configuration)\</OutputPath>
44
<BaseIntermediateOutputPath>$(MSBuildThisFileDirectory)obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
55

6-
<CodeGenerationRoslynVersion>0.3.13-gfce1c8ba1e</CodeGenerationRoslynVersion>
6+
<CodeGenerationRoslynVersion>0.4.6</CodeGenerationRoslynVersion>
77
</PropertyGroup>
88

99
<ItemGroup>

lkg/CodeGeneration.dll

0 Bytes
Binary file not shown.

lkg/CodeGeneration.pdb

928 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)
0