Skip to content

Commit dd5866e

Browse files
authored
fix: Update defaults
The ProduceOnlyReferenceAssembly property will be set in csproj. Querying its value in props file, that is read before csproj, makes no sense. Hence it must be read in targets file.
1 parent 2095aa3 commit dd5866e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/dscom.build/dSPACE.Runtime.InteropServices.BuildTasks.targets

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
<_DsComExportTypeLibraryAssemblyFile Condition="$(DsComExportTypeLibraryAssemblyFile) != ''">$(DsComExportTypeLibraryAssemblyFile)</_DsComExportTypeLibraryAssemblyFile>
3434
</PropertyGroup>
3535

36+
<!-- Post build settings -->
37+
<PropertyGroup>
38+
<DsComRunAfterBuild Condition="'$(ProduceOnlyReferenceAssembly)' == 'true'">false</DsComRunAfterBuild>
39+
</PropertyGroup>
40+
3641
<ItemGroup>
3742
<!-- Add all items with hintpath -->
3843
<_DsComFromReferencesWithoutHintPath Include="@(References)" Exclude="@(References->HasMetadata('HintPath'))"/>
@@ -62,4 +67,4 @@
6267
Files="$(DsComExportTypeLibraryTargetFile)"
6368
Condition="Exists('$(DsComExportTypeLibraryTargetFile)')" />
6469
</Target>
65-
</Project>
70+
</Project>

0 commit comments

Comments
 (0)