Skip to content

Commit

Permalink
Fix build when using Razor source generator
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasGoulet73 committed May 5, 2022
1 parent 1dde075 commit 5c820b5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@
Analyzers="$(Analyzers)"
TemporaryTargetAssemblyProjectName="$(_TemporaryTargetAssemblyProjectName)"
MSBuildProjectExtensionsPath="$(MSBuildProjectExtensionsPath)"
RootNamespace="$(RootNamespace)"
>

<Output TaskParameter="TemporaryAssemblyForLocalTypeReference" PropertyName="_AssemblyForLocalTypeReference" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ private bool ExecuteGenerateTemporaryTargetAssemblyWithPackageReferenceSupport()
( nameof(BaseIntermediateOutputPath), BaseIntermediateOutputPath ),
( nameof(MSBuildProjectExtensionsPath), MSBuildProjectExtensionsPath ),
( "_TargetAssemblyProjectName", Path.GetFileNameWithoutExtension(CurrentProject) ),
( nameof(RootNamespace), RootNamespace ),
( nameof(Analyzers), Analyzers )
};

Expand Down Expand Up @@ -484,6 +485,14 @@ public bool GenerateTemporaryTargetAssemblyDebuggingInformation
public string Analyzers
{ get; set; }

/// <summary>
/// RootNamespace
///
/// Required for Source Generator support. May be null.
///
/// </summary>
public string RootNamespace { get; set; }

/// <summary>
/// BaseIntermediateOutputPath
///
Expand Down

0 comments on commit 5c820b5

Please sign in to comment.