Skip to content

Commit 59f2dc8

Browse files
authored
Update ForgeUnits for linux (#15524)
1 parent ef9bacc commit 59f2dc8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Libraries/DynamoUnits/UnitsCore.csproj

+6-6
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@
3838
</Compile>
3939
</ItemGroup>
4040
<Target Name="CopyFiles" BeforeTargets="Build">
41+
<ItemGroup>
42+
<UnitSchemas Include="$(PkgForgeUnits_Schemas)\Content\unit\**\*.*" />
43+
</ItemGroup>
44+
<Copy SourceFiles="@(UnitSchemas)" DestinationFolder="$(OutDir)unit\%(RecursiveDir)" />
4145
<Copy SourceFiles="$(ProjectDir)DynamoUnits_DynamoCustomization.xml" DestinationFolder="$(OutputPath)" />
42-
<Copy SourceFiles="$(PkgForgeUnits_NET)\lib\net6.0\ForgeUnitsManaged.dll" DestinationFolder="$(OutputPath)" />
43-
<Copy SourceFiles="$(PkgForgeUnits_NET)\runtimes\win10-x64\native\Units.dll" DestinationFolder="$(OutputPath)" />
46+
<Copy Condition="$(RuntimeIdentifier.Contains('win'))" SourceFiles="$(PkgForgeUnits_NET)\lib\net6.0\ForgeUnitsManaged.dll" DestinationFolder="$(OutputPath)" />
47+
<Copy Condition="$(RuntimeIdentifier.Contains('win'))" SourceFiles="$(PkgForgeUnits_NET)\runtimes\win10-x64\native\Units.dll" DestinationFolder="$(OutputPath)" />
4448
</Target>
4549
<Target Name="GenerateFiles" AfterTargets="ResolveSateliteResDeps" Condition=" $(RuntimeIdentifier.Contains('win')) ">
4650
<!-- Generate customization dll -->
4751
<GenerateResource SdkToolsPath="$(TargetFrameworkSDKToolsDirectory)" UseSourcePath="true" Sources="$(ProjectDir)DynamoUnitsImages.resx" OutputResources="$(ProjectDir)DynamoUnitsImages.resources" />
4852
<AL SdkToolsPath="$(TargetFrameworkSDKToolsDirectory)" TargetType="library" EmbedResources="$(ProjectDir)DynamoUnitsImages.resources" OutputAssembly="$(OutDir)DynamoUnits.customization.dll" Version="%(AssemblyInfo.Version)" />
49-
<ItemGroup>
50-
<UnitSchemas Include="$(PkgForgeUnits_Schemas)\Content\unit\**\*.*" />
51-
</ItemGroup>
52-
<Copy SourceFiles="@(UnitSchemas)" DestinationFolder="$(OutDir)unit\%(RecursiveDir)" />
5353
</Target>
5454
</Project>

0 commit comments

Comments
 (0)