Skip to content

Commit 60266f8

Browse files
committed
Rename file, add license header, fix spacing, use different compile item
1 parent 2347c49 commit 60266f8

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

src/AssemblyInfo.cs

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/SourceBuildAssemblyMetdata.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
[assembly: System.Reflection.AssemblyMetadata("source", "source-build-reference-packages")]

src/referencePackages/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<ItemGroup>
66
<!-- Attributes for all Reference Packages -->
7-
<Compile Include="$(RepoRoot)src\AssemblyInfo.cs" />
7+
<Compile Include="$(RepoRoot)src\SourceBuildAssemblyMetdata.cs" />
88
</ItemGroup>
99

1010
<PropertyGroup>

src/referencePackages/Directory.Build.targets

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,16 @@
122122
AfterTargets="CopyFilesToOutputDirectory">
123123

124124
<ItemGroup>
125-
<Compile Remove="$(RepoRoot)src\AssemblyInfo.cs" />
125+
<CompileForRelativePath Include="@(Compile)" />
126+
<CompileForRelativePath Remove="$(RepoRoot)src\SourceBuildAssemblyMetdata.cs" />
126127
</ItemGroup>
127128

128129
<Error
129-
Condition="@(Compile->Count()) != 1"
130+
Condition="@(CompileForRelativePath->Count()) != 1"
130131
Text="Number of Compile items != 1. We need just one, to determine the path of the resulting DLL in the package including ref/lib and TFM." />
131132

132133
<ItemGroup>
133-
<FullCompileDir Include="$([System.IO.Directory]::GetParent('%(Compile.Identity)'))" />
134+
<FullCompileDir Include="$([System.IO.Directory]::GetParent('%(CompileForRelativePath.Identity)'))" />
134135
<RelativeCompileDir Include="$([MSBuild]::MakeRelative('$(MSBuildProjectDirectory)\', '%(FullCompileDir.Identity)'))" />
135136
</ItemGroup>
136137

src/targetPacks/Directory.Build.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<Project>
22
<Import Project="..\..\Directory.Build.props" />
33

4-
<ItemGroup>
5-
<!-- Attributes for all Target Packages -->
6-
<Compile Include="$(RepoRoot)src\AssemblyInfo.cs" />
7-
</ItemGroup>
4+
<ItemGroup>
5+
<!-- Attributes for all Target Packages -->
6+
<Compile Include="$(RepoRoot)src\SourceBuildAssemblyMetdata.cs" />
7+
</ItemGroup>
88

99
<PropertyGroup>
1010
<TargetFramework>netstandard2.0</TargetFramework>

0 commit comments

Comments
 (0)