forked from PrismLibrary/Prism
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.targets
43 lines (36 loc) · 1.98 KB
/
Directory.Build.targets
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
<Project>
<Sdk Name="Microsoft.Build.CentralPackageVersions" Version="2.0.79" />
<PropertyGroup>
<Product>$(AssemblyName) ($(TargetFramework))</Product>
</PropertyGroup>
<PropertyGroup Condition=" $(IsPackable) ">
<!-- Nuget source link -->
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>
<Target Name="_ReleaseBinaryCopy"
Condition=" !'$(IsTestProject)' And '$(IsPackable)' "
BeforeTargets="AfterBuild;WpfPack">
<PropertyGroup>
<BinariesFolderName Condition=" '$(IsCoreProject)' ">Core</BinariesFolderName>
<BinariesFolderName Condition=" '$(IsFormsProject)' ">Forms</BinariesFolderName>
<BinariesFolderName Condition=" '$(IsWpfProject)' ">WPF</BinariesFolderName>
<BinariesFolderName Condition=" '$(IsUnoProject)' ">Uno</BinariesFolderName>
<ArtifactStaging>$([System.IO.Path]::Combine('$(ArtifactStagingRoot)', $(Configuration), '$(BinariesFolderName)', '$(TargetFramework)'))</ArtifactStaging>
</PropertyGroup>
<Copy SourceFiles="$(OutputPath)$(AssemblyName).dll"
DestinationFolder="$(ArtifactStaging)"
Condition=" Exists('$(OutputPath)$(AssemblyName).dll') " />
<Copy SourceFiles="$(OutputPath)$(AssemblyName).xml"
DestinationFolder="$(ArtifactStaging)"
Condition=" Exists('$(OutputPath)$(AssemblyName).xml') " />
<Copy SourceFiles="$(OutputPath)$(AssemblyName).pdb"
DestinationFolder="$(ArtifactStaging)"
Condition=" Exists('$(OutputPath)$(AssemblyName).pdb') " />
<Copy SourceFiles="$(OutputPath)$(AssemblyName).pri"
DestinationFolder="$(ArtifactStaging)"
Condition=" Exists('$(OutputPath)$(AssemblyName).pri') " />
</Target>
</Project>