[dotnet] Don't use an Output property to retrieve the list of native object files to link. (#11592)
If the task that creates the native object files doesn't execute (because the native object files already exists and are up-to-date), the resulting list of native object files to link will be empty. This typically happens for a rebuild: if a native linker error occurs when linking the main executable, building again will result in a successful build, because we wouldn't try to link the main executable again.
This commit is contained in:
Родитель
fc52f2c7ff
Коммит
94196bf767
|
@ -545,8 +545,11 @@
|
||||||
SdkRoot="$(_SdkRoot)"
|
SdkRoot="$(_SdkRoot)"
|
||||||
TargetFrameworkMoniker="$(_ComputedTargetFrameworkMoniker)"
|
TargetFrameworkMoniker="$(_ComputedTargetFrameworkMoniker)"
|
||||||
>
|
>
|
||||||
<Output TaskParameter="ObjectFiles" ItemName="_NativeExecutableObjectFiles" />
|
|
||||||
</CompileNativeCode>
|
</CompileNativeCode>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<_NativeExecutableObjectFiles Include="@(_CompileNativeExecutableFile -> '%(OutputFile)')" />
|
||||||
|
</ItemGroup>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче