Use a response file for GenAPI commands
- work around dotnet/arcade#4021
This commit is contained in:
parent
24fc9c0008
commit
111462e0c2
|
|
@ -61,15 +61,21 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<_GenApiFile>$([MSBuild]::NormalizePath('$(ArtifactsDir)', 'log', 'GenAPI.rsp'))</_GenApiFile>
|
||||||
<_GenAPICommand Condition="'$(MSBuildRuntimeType)' == 'core'">"$(DotNetTool)" --roll-forward-on-no-candidate-fx 2 "$(_GenAPIPath)"</_GenAPICommand>
|
<_GenAPICommand Condition="'$(MSBuildRuntimeType)' == 'core'">"$(DotNetTool)" --roll-forward-on-no-candidate-fx 2 "$(_GenAPIPath)"</_GenAPICommand>
|
||||||
<_GenAPICmd>$(_GenAPICommand)</_GenAPICmd>
|
<_GenAPICmd>$(_GenAPICommand) @"$(_GenApiFile)"</_GenAPICmd>
|
||||||
<_GenAPICmd>$(_GenAPICmd) "$(TargetPath)"</_GenAPICmd>
|
<_GenApiArguments><![CDATA[
|
||||||
<_GenAPICmd>$(_GenAPICmd) --lib-path "@(_ReferencePathDirectories)"</_GenAPICmd>
|
"$(TargetPath)"
|
||||||
<_GenAPICmd>$(_GenAPICmd) --out "$(_RefSourceFileOutputPath)"</_GenAPICmd>
|
--lib-path "@(_ReferencePathDirectories, '%3B')"
|
||||||
<_GenAPICmd>$(_GenAPICmd) --header-file "$(RepoRoot)/eng/LicenseHeader.txt"</_GenAPICmd>
|
--out "$(_RefSourceFileOutputPath)"
|
||||||
<_GenAPICmd>$(_GenAPICmd) --exclude-api-list "$(RepoRoot)/eng/GenAPI.exclusions.txt"</_GenAPICmd>
|
--header-file "$(RepoRoot)/eng/LicenseHeader.txt"
|
||||||
|
--exclude-api-list "$(RepoRoot)/eng/GenAPI.exclusions.txt"
|
||||||
|
]]>
|
||||||
|
</_GenApiArguments>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<WriteLinesToFile File="$(_GenApiFile)" Lines="$(_GenApiArguments)" Overwrite="true" />
|
||||||
|
|
||||||
<MakeDir Directories="$(_RefSourceOutputPath)" />
|
<MakeDir Directories="$(_RefSourceOutputPath)" />
|
||||||
<Message Importance="High" Text="Generating $(_RefSourceFileOutputPath)" />
|
<Message Importance="High" Text="Generating $(_RefSourceFileOutputPath)" />
|
||||||
<Exec Command="$(_GenAPICmd)" />
|
<Exec Command="$(_GenAPICmd)" />
|
||||||
|
|
@ -96,4 +102,4 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue