Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 535fd1e

Browse files
committed
Use Intermediate path for GenerateReferenceSource
After the new reverse APICompat checks we fail the src build if the ref doesn't match so we don't have a great way to regenerate the reference assembly. By using the intermediate path we can still generate the reference assembly without having a successful src build.
1 parent d7d4fdc commit 535fd1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dir.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127

128128
<PropertyGroup>
129129
<_GenAPICmd>$(DotnetToolCommand) $(_GenApiExePath)</_GenAPICmd>
130-
<_GenAPICmd>$(_GenAPICmd) -assembly:$(TargetPath)</_GenAPICmd>
130+
<_GenAPICmd>$(_GenAPICmd) -assembly:@(IntermediateAssembly)</_GenAPICmd>
131131
<_GenAPICmd>$(_GenAPICmd) -libPath:$(RefPath)</_GenAPICmd>
132132
<_GenAPICmd>$(_GenAPICmd) -out:$(_RefSourceFileOutputPath)</_GenAPICmd>
133133
<_GenAPICmd>$(_GenAPICmd) -excludeAttributesList:$(_ExcludeAPIList)</_GenAPICmd>

0 commit comments

Comments
 (0)