-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathMicrosoft.Build.CopyOnWrite.csproj
More file actions
50 lines (49 loc) · 2.2 KB
/
Microsoft.Build.CopyOnWrite.csproj
File metadata and controls
50 lines (49 loc) · 2.2 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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<BuildOutputTargetFolder>build\</BuildOutputTargetFolder>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Description>Build logic for staging artifacts from build outputs.</Description>
<DevelopmentDependency>true</DevelopmentDependency>
<LangVersion>latest</LangVersion>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\Shared\CopyExceptionHandling.cs" />
</ItemGroup>
<ItemGroup>
<None Include="build\Microsoft.Build.CopyOnWrite.targets">
<PackagePath>build\</PackagePath>
<Pack>true</Pack>
</None>
<None Include=".editorconfig" />
</ItemGroup>
<ItemGroup>
<FilesToSign Include="$(TargetPath)"
Authenticode="Microsoft400"
StrongName="StrongName" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="CopyOnWrite"
GeneratePathProperty="True"
PrivateAssets="All" />
<!-- Note this is an API dependencies to support a minimum version of MSBuild. -->
<PackageReference Include="Microsoft.Build.Tasks.Core"
PrivateAssets="all"
ExcludeAssets="Runtime"
IncludeAssets="compile; build; native; contentfiles; analyzers; buildtransitive" />
</ItemGroup>
<Target Name="IncludeReferenceCopyLocalPathsInBuildOutputInPackage"
BeforeTargets="_GetBuildOutputFilesWithTfm"
DependsOnTargets="ResolveReferences;ResolvePackageDependenciesForBuild">
<ItemGroup>
<BuildOutputInPackage Include="@(RuntimeCopyLocalItems->WithMetadataValue('AssetType', 'runtime'))"
TargetPath="%(RuntimeCopyLocalItems.DestinationSubDirectory)%(Filename)%(Extension)" />
<BuildOutputInPackage Include="@(RuntimeCopyLocalItems->WithMetadataValue('CopyLocal', 'true'))"
TargetPath="%(RuntimeCopyLocalItems.DestinationSubDirectory)%(Filename)%(Extension)" />
</ItemGroup>
</Target>
<ItemGroup>
<InternalsVisibleTo Include="Microsoft.Build.CopyOnWrite.UnitTests" />
</ItemGroup>
</Project>