-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathSampleLibraryUI.csproj
More file actions
54 lines (53 loc) · 3.06 KB
/
Copy pathSampleLibraryUI.csproj
File metadata and controls
54 lines (53 loc) · 3.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<Project Sdk="Microsoft.NET.Sdk">
<ImportGroup Label="PropertySheets">
<Import Project="$(SolutionDir)Config\CS.props" />
</ImportGroup>
<PropertyGroup>
<RootNamespace>SampleLibraryUI</RootNamespace>
<AssemblyName>SampleLibraryUI</AssemblyName>
<!--Windows and WPF APIs are needed to support dynamo UI libs-->
<TargetFramework>net10.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
<!--EnableDynamicLoading prepares the project so that it can be used as a plugin -->
<!--https://learn.microsoft.com/en-us/dotnet/core/tutorials/creating-app-with-plugin-support#simple-plugin-with-no-dependencies-->
<EnableDynamicLoading>true</EnableDynamicLoading>
<DocumentationFile>bin\$(Configuration)\$(UICulture)\SampleLibraryUI.XML</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\SampleLibraryZeroTouch\SampleLibraryZeroTouch.csproj">
<Project>{bd13c4dc-9045-4e49-b637-b6182b0e3a7f}</Project>
<Name>SampleLibraryZeroTouch</Name>
<Private>False</Private>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="images\logo.png" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="DynamoVisualProgramming.DynamoServices" Version="4.0.0-beta2860" ExcludeAssets="runtime" />
<PackageReference Include="DynamoVisualProgramming.WpfUILibrary" Version="4.0.0-beta2860" ExcludeAssets="runtime" />
<PackageReference Include="DynamoVisualProgramming.ZeroTouchLibrary" Version="4.0.0-beta2860" ExcludeAssets="runtime" />
</ItemGroup>
<ItemGroup>
<Folder Include="Resources\LargeIcons\" />
<Folder Include="Resources\SmallIcons\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Resources\SampleLibraryUI.resx">
<Generator></Generator>
</EmbeddedResource>
</ItemGroup>
<Target Name="AfterBuildOps" AfterTargets="Build">
<!-- Generate customization dll for SampleLibraryUI -->
<GenerateResource SdkToolsPath="$(TargetFrameworkSDKToolsDirectory)" UseSourcePath="true" Sources="$(ProjectDir)/Resources/SampleLibraryUI.resx" OutputResources="$(ProjectDir)/Resources/SampleLibraryUIImages.resources" />
<AL SdkToolsPath="$(TargetFrameworkSDKToolsDirectory)" TargetType="library" EmbedResources="$(ProjectDir)/Resources/SampleLibraryUIImages.resources" OutputAssembly="$(OutDir)/SampleLibraryUI.customization.dll" Version="%(AssemblyInfo.Version)" />
<ItemGroup>
<PackageFiles Include="$(OutDir)\SampleLibraryUI.dll;$(OutDir)\SampleLibraryUI.XML;$(OutDir)SampleLibraryUI.customization.dll;$(ProjectDir)\Resources\SampleLibraryUIImages.resources" />
<ENResourceFiles Include="$(OutDir)\en-US\*.*" />
<ESResourceFiles Include="$(OutDir)\es-ES\*.*" />
</ItemGroup>
<Copy SourceFiles="@(PackageFiles)" DestinationFolder="$(SolutionDir)..\dynamo_package\Dynamo Samples\bin\" />
<Copy SourceFiles="@(ENResourceFiles)" DestinationFolder="$(SolutionDir)..\dynamo_package\Dynamo Samples\bin\en-US" />
<Copy SourceFiles="@(ESResourceFiles)" DestinationFolder="$(SolutionDir)..\dynamo_package\Dynamo Samples\bin\es-ES" />
</Target>
</Project>