|
1 | | -<!--./Directory.Build.props--> |
| 1 | +<!-- ./Directory.Build.props --> |
2 | 2 | <Project> |
3 | 3 |
|
4 | | - <PropertyGroup Label="SolutionVariables"> |
| 4 | + <PropertyGroup Label="SolutionConfig"> |
5 | 5 | <_Name>ImeiType</_Name> |
6 | 6 | <_Company>BMTLab</_Company> |
7 | | - <_TestNamespace>Tests</_TestNamespace> |
8 | 7 | </PropertyGroup> |
9 | 8 |
|
10 | 9 | <PropertyGroup Label="AssemblyInfo"> |
11 | | - <AssemblyName Condition="'$(AssemblyName)' == ''">$(_Company).$(MSBuildProjectName)</AssemblyName> |
12 | | - <Title Condition="'$(Title)' == ''">$(AssemblyName)</Title> |
13 | | - <Product Condition="'$(Product)' == ''">$(AssemblyName)</Product> |
14 | | - <RootNamespace Condition="'$(RootNamespace)' == ''">$(AssemblyName)</RootNamespace> |
| 10 | + <AssemblyName Condition="'$(AssemblyName)'==''">$(_Company).$(MSBuildProjectName)</AssemblyName> |
| 11 | + <Title Condition="'$(Title)'==''">$(AssemblyName)</Title> |
| 12 | + <Product Condition="'$(Product)'==''">$(AssemblyName)</Product> |
| 13 | + <RootNamespace Condition="'$(RootNamespace)'==''">$(AssemblyName)</RootNamespace> |
15 | 14 | <Deterministic>true</Deterministic> |
16 | 15 | <InvariantGlobalization>true</InvariantGlobalization> |
17 | 16 | <Description> |
|
21 | 20 | </Description> |
22 | 21 | </PropertyGroup> |
23 | 22 |
|
24 | | - <PropertyGroup Label="Package"> |
| 23 | + <PropertyGroup Label="PackageConfig"> |
25 | 24 | <Company>$(_Company)</Company> |
26 | 25 | <Authors>Nikita Neverov</Authors> |
27 | 26 | <Copyright>Copyright $(_Company) © $([System.DateTime]::Now.Date.Year)</Copyright> |
|
49 | 48 | <AllowedOutputExtensionsInPackageBuildOutputFolder> |
50 | 49 | $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb |
51 | 50 | </AllowedOutputExtensionsInPackageBuildOutputFolder> |
52 | | - |
53 | | - <!-- Overridden in underlying configuration files --> |
54 | | - <IsPackable>false</IsPackable> |
55 | 51 | </PropertyGroup> |
56 | 52 |
|
57 | | - <PropertyGroup Label="Framework"> |
| 53 | + <PropertyGroup Label="FrameworkConfig"> |
58 | 54 | <LangVersion>latest</LangVersion> |
59 | 55 | <Nullable>enable</Nullable> |
60 | 56 | <ImplicitUsings>enable</ImplicitUsings> |
61 | 57 | <RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild> |
62 | 58 | <RunAnalyzersDuringLiveAnalysis>true</RunAnalyzersDuringLiveAnalysis> |
63 | 59 | <AnalysisMode>AllEnabledByDefault</AnalysisMode> |
64 | 60 | <AnalysisLevel>preview</AnalysisLevel> |
65 | | - </PropertyGroup> |
66 | | - |
67 | | - <PropertyGroup Label="ArtifactDirectory"> |
68 | 61 | <ArtifactsPath>$(MSBuildThisFileDirectory)artifacts</ArtifactsPath> |
69 | 62 | <ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles> |
| 63 | + <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> |
70 | 64 | </PropertyGroup> |
71 | 65 |
|
72 | | - <PropertyGroup Condition="'$(Configuration)'=='Debug'"> |
| 66 | + <PropertyGroup Label="BuildConfig" Condition="'$(Configuration)'=='Debug'"> |
73 | 67 | <DebugSymbols>true</DebugSymbols> |
74 | 68 | <DebugType>full</DebugType> |
75 | | - <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow> |
76 | | - <Optimize>false</Optimize> |
77 | 69 | </PropertyGroup> |
78 | 70 |
|
79 | | - <PropertyGroup Condition="'$(Configuration)'=='Release'"> |
| 71 | + <PropertyGroup Label="BuildConfig" Condition="'$(Configuration)'=='Release'"> |
80 | 72 | <DebugSymbols>true</DebugSymbols> |
81 | 73 | <DebugType>pdbonly</DebugType> |
82 | 74 | <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow> |
83 | 75 | <Optimize>true</Optimize> |
84 | 76 | <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild> |
85 | 77 | </PropertyGroup> |
86 | 78 |
|
87 | | - <ItemGroup Label="Annotations"> |
88 | | - <PackageReference Include="JetBrains.Annotations"> |
| 79 | + <ItemGroup Label="CommonReferences"> |
| 80 | + <SourceRoot Include="$(MSBuildThisFileDirectory)/"/> |
| 81 | + <PackageReference Include="Microsoft.SourceLink.GitHub"> |
89 | 82 | <PrivateAssets>All</PrivateAssets> |
90 | 83 | </PackageReference> |
91 | | - </ItemGroup> |
92 | | - |
93 | | - <ItemGroup Label="Analyzers"> |
94 | | - <PackageReference Include="Microsoft.CodeAnalysis.Analyzers"> |
| 84 | + <PackageReference Include="GitVersion.MsBuild"> |
95 | 85 | <PrivateAssets>All</PrivateAssets> |
96 | 86 | </PackageReference> |
97 | | - <PackageReference Include="SonarAnalyzer.CSharp"> |
| 87 | + <PackageReference Include="Microsoft.CodeAnalysis.Analyzers"> |
98 | 88 | <PrivateAssets>All</PrivateAssets> |
99 | 89 | </PackageReference> |
100 | | - </ItemGroup> |
101 | | - |
102 | | - <ItemGroup Label="SourceLink"> |
103 | | - <SourceRoot Include="$(MSBuildThisFileDirectory)/"/> |
104 | | - <PackageReference Include="Microsoft.SourceLink.GitHub"> |
| 90 | + <PackageReference Include="SonarAnalyzer.CSharp"> |
105 | 91 | <PrivateAssets>All</PrivateAssets> |
106 | 92 | </PackageReference> |
107 | | - </ItemGroup> |
108 | | - |
109 | | - <ItemGroup Label="Versioning"> |
110 | | - <PackageReference Include="GitVersion.MsBuild"> |
| 93 | + <PackageReference Include="JetBrains.Annotations"> |
111 | 94 | <PrivateAssets>All</PrivateAssets> |
112 | 95 | </PackageReference> |
113 | 96 | </ItemGroup> |
114 | 97 |
|
115 | | - <ItemGroup Label="GlobalUsings"> |
| 98 | + <ItemGroup Label="GlobalUsingsConfig"> |
116 | 99 | <Using Include="System.Diagnostics"/> |
117 | 100 | <Using Include="System.Diagnostics.CodeAnalysis"/> |
118 | 101 | <Using Include="System.Runtime.InteropServices"/> |
119 | 102 | </ItemGroup> |
120 | 103 |
|
121 | | - <ItemGroup Label="Docs"> |
| 104 | + <ItemGroup Label="AdditionalItemsConfig"> |
122 | 105 | <None Include="$(MSBuildThisFileDirectory)icon.png" Pack="true" PackagePath=""/> |
123 | 106 | <None Include="$(MSBuildThisFileDirectory)LICENSE" Pack="true" PackagePath=""/> |
124 | 107 | <None Include="$(MSBuildThisFileDirectory)README.md" Pack="true" PackagePath=""/> |
125 | 108 | <None Include="$(MSBuildThisFileDirectory)SECURITY.md" Pack="true" PackagePath=""/> |
126 | 109 | </ItemGroup> |
127 | 110 |
|
128 | | - <PropertyGroup Label="CI"> |
129 | | - <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> |
130 | | - </PropertyGroup> |
131 | | - |
132 | 111 | <ItemGroup Label="EditorConfig"> |
133 | 112 | <EditorConfigFiles Update=".editorconfig"> |
134 | 113 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
|
0 commit comments