|
1 | 1 | <Project> |
2 | | - |
3 | 2 | <PropertyGroup> |
4 | 3 | <!-- TODO: Dynamically generate Title if one wasn't set --> |
5 | 4 | <Title Condition="'$(Title)' == ''">$(Product) Asset</Title> |
|
12 | 11 | </PropertyGroup> |
13 | 12 |
|
14 | 13 | <ItemGroup Condition="$(IsPackable)"> |
15 | | - <None Include="$(BuildToolsDirectory)nuget.png" Pack="true" PackagePath="\Icon.png" Visible="False" /> |
16 | | - <None Include="$(RepositoryDirectory)ThirdPartyNotices.txt" Pack="true" PackagePath="\" Visible="False" /> |
17 | | - <None Include="$(RepositoryDirectory)LICENSE.md" Pack="true" PackagePath="\LICENSE.md" Visible="False" /> |
18 | | - <None Include="$(RepositoryDirectory)README.md" Pack="true" PackagePath="\README.md" Visible="False" /> |
| 14 | + <None |
| 15 | + Include="$(BuildToolsDirectory)nuget.png" |
| 16 | + Pack="true" |
| 17 | + PackagePath="\Icon.png" |
| 18 | + Visible="False" |
| 19 | + /> |
| 20 | + <None |
| 21 | + Include="$(RepositoryDirectory)ThirdPartyNotices.txt" |
| 22 | + Pack="true" |
| 23 | + PackagePath="\" |
| 24 | + Visible="False" |
| 25 | + /> |
| 26 | + <None |
| 27 | + Include="$(RepositoryDirectory)LICENSE.md" |
| 28 | + Pack="true" |
| 29 | + PackagePath="\LICENSE.md" |
| 30 | + Visible="False" |
| 31 | + /> |
| 32 | + <None |
| 33 | + Include="$(RepositoryDirectory)README.md" |
| 34 | + Pack="true" |
| 35 | + PackagePath="\README.md" |
| 36 | + Visible="False" |
| 37 | + /> |
| 38 | + </ItemGroup> |
| 39 | + |
| 40 | + <ItemGroup Condition="'$(MSBuildProjectExtension)' != '.dcproj' and '$(MSBuildProjectExtension)' != '.sfproj' and '$(VisualStudioTemplateProject)' != 'true' and '$(VisualStudioExtensionProject)' != 'true'"> |
| 41 | + <PackageReference Include="PolySharp" Condition="'$(TargetFramework)' == 'netstandard2.1'"> |
| 42 | + <PrivateAssets>all</PrivateAssets> |
| 43 | + <IncludeAssets>build; analyzers</IncludeAssets> |
| 44 | + </PackageReference> |
| 45 | + <PackageReference Include="PolySharp" Condition="'$(TargetFramework)' == 'netstandard2.0'"> |
| 46 | + <PrivateAssets>all</PrivateAssets> |
| 47 | + <IncludeAssets>build; analyzers</IncludeAssets> |
| 48 | + </PackageReference> |
| 49 | + <PackageReference Include="PolySharp" Condition="'$(TargetFramework)' == 'net481'"> |
| 50 | + <PrivateAssets>all</PrivateAssets> |
| 51 | + <IncludeAssets>build; analyzers</IncludeAssets> |
| 52 | + </PackageReference> |
| 53 | + <PackageReference Include="PolySharp" Condition="'$(TargetFramework)' == 'net472'"> |
| 54 | + <PrivateAssets>all</PrivateAssets> |
| 55 | + <IncludeAssets>build; analyzers</IncludeAssets> |
| 56 | + </PackageReference> |
| 57 | + <PackageReference Include="PolySharp" Condition="'$(TargetFramework)' == 'net462'"> |
| 58 | + <PrivateAssets>all</PrivateAssets> |
| 59 | + <IncludeAssets>build; analyzers</IncludeAssets> |
| 60 | + </PackageReference> |
19 | 61 | </ItemGroup> |
20 | 62 |
|
21 | 63 | <Target Name="AddCommitHashToAssemblyAttributes" BeforeTargets="GetAssemblyAttributes"> |
22 | 64 | <ItemGroup> |
23 | | - <AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition="'$(SourceRevisionId)' != ''"> |
| 65 | + <AssemblyAttribute |
| 66 | + Include="System.Reflection.AssemblyMetadataAttribute" |
| 67 | + Condition="'$(SourceRevisionId)' != ''" |
| 68 | + > |
24 | 69 | <_Parameter1>CommitHash</_Parameter1> |
25 | 70 | <_Parameter2>$(SourceRevisionId)</_Parameter2> |
26 | 71 | </AssemblyAttribute> |
|
49 | 94 | performance benefits, depending on the workload. |
50 | 95 | --> |
51 | 96 | <PropertyGroup> |
52 | | - <GeneratedSkipLocalsInitFile Condition="'$(GeneratedSkipLocalsInitFile)' == ''">$(IntermediateOutputPath)$(MSBuildProjectName).SkipLocalsInit.g.cs</GeneratedSkipLocalsInitFile> |
| 97 | + <GeneratedSkipLocalsInitFile Condition="'$(GeneratedSkipLocalsInitFile)' == ''" |
| 98 | + >$(IntermediateOutputPath)$(MSBuildProjectName).SkipLocalsInit.g.cs</GeneratedSkipLocalsInitFile |
| 99 | + > |
53 | 100 | <GeneratedSkipLocalsInitFileLines> |
54 | 101 | <![CDATA[//------------------------------------------------------------------------------ |
55 | 102 | // <auto-generated> |
|
64 | 111 | </GeneratedSkipLocalsInitFileLines> |
65 | 112 | </PropertyGroup> |
66 | 113 |
|
67 | | - <Target Name="GenerateSkipLocalsInit" |
68 | | - BeforeTargets="BeforeCompile;CoreCompile" |
69 | | - DependsOnTargets="PrepareForBuild" |
70 | | - Condition="'$(Language)' == 'C#'" |
71 | | - Inputs="$(MSBuildAllProjects)" |
72 | | - Outputs="$(GeneratedSkipLocalsInitFile)"> |
73 | | - |
| 114 | + <Target |
| 115 | + Name="GenerateSkipLocalsInit" |
| 116 | + BeforeTargets="BeforeCompile;CoreCompile" |
| 117 | + DependsOnTargets="PrepareForBuild" |
| 118 | + Condition="'$(Language)' == 'C#'" |
| 119 | + Inputs="$(MSBuildAllProjects)" |
| 120 | + Outputs="$(GeneratedSkipLocalsInitFile)" |
| 121 | + > |
74 | 122 | <!-- Write the file with the attribute --> |
75 | | - <WriteLinesToFile Lines="$(GeneratedSkipLocalsInitFileLines)" Overwrite="true" WriteOnlyWhenDifferent="true" File="$(GeneratedSkipLocalsInitFile)" /> |
| 123 | + <WriteLinesToFile |
| 124 | + Lines="$(GeneratedSkipLocalsInitFileLines)" |
| 125 | + Overwrite="true" |
| 126 | + WriteOnlyWhenDifferent="true" |
| 127 | + File="$(GeneratedSkipLocalsInitFile)" |
| 128 | + /> |
76 | 129 |
|
77 | 130 | <!-- Include the generated file in the list of files to compile --> |
78 | 131 | <ItemGroup> |
|
0 commit comments