|
1 | 1 | <Project> |
2 | | - <Import Project="version.props" /> |
3 | | - |
4 | | - <!-- |
5 | | - These imports look funny. |
6 | | - Eventually they will be replaced by a simplified import that brings in |
7 | | - the entire Arcade SDK. For now, we're moving onto Arcade one piece at a time. |
8 | | - --> |
9 | | - <Import Project="../tools/DefaultVersions.Generated.props" Sdk="Microsoft.DotNet.Arcade.Sdk" /> |
10 | | - <Import Project="eng\Versions.props" /> |
11 | | - <Import Project="../tools/Compiler.props" Sdk="Microsoft.DotNet.Arcade.Sdk" Condition="'$(UsingToolMicrosoftNetCompilers)' == 'true'"/> |
12 | 2 |
|
| 3 | + <!-- Defines project type conventions. --> |
13 | 4 | <PropertyGroup> |
14 | | - <Product>Microsoft ASP.NET Core</Product> |
| 5 | + <RepoRelativeProjectDir>$([MSBuild]::MakeRelative($(RepoRoot), $(MSBuildProjectDirectory)))</RepoRelativeProjectDir> |
| 6 | + |
| 7 | + <IsReferenceAssemblyProject>false</IsReferenceAssemblyProject> |
| 8 | + <IsReferenceAssemblyProject Condition="$(MSBuildProjectDirectory.EndsWith('ref'))">true</IsReferenceAssemblyProject> |
| 9 | + <OutDirName Condition="'$(IsReferenceAssemblyProject)' == 'true'">$(MSBuildProjectName)-ref</OutDirName> |
| 10 | + |
| 11 | + <IsBenchmarkProject Condition="$(MSBuildProjectName.EndsWith('.Performance')) OR $(RepoRelativeProjectDir.Contains('perf'))">true</IsBenchmarkProject> |
| 12 | + <IsSpecificationTestProject Condition="$(MSBuildProjectName.EndsWith('.Specification.Tests'))">true</IsSpecificationTestProject> |
| 13 | + <IsUnitTestProject>false</IsUnitTestProject> |
| 14 | + <IsUnitTestProject Condition="'$(IsSpecificationTestProject)' != 'true' and ( $(MSBuildProjectName.EndsWith('Tests')) or $(MSBuildProjectName.EndsWith('.Test')) or $(MSBuildProjectName.EndsWith('.FunctionalTest')) )">true</IsUnitTestProject> |
| 15 | + <IsTestAssetProject Condition="$(RepoRelativeProjectDir.Contains('testassets'))">true</IsTestAssetProject> |
| 16 | + <IsSampleProject Condition="$(RepoRelativeProjectDir.Contains('sample'))">true</IsSampleProject> |
| 17 | + <IsAnalyzersProject Condition="$(MSBuildProjectName.EndsWith('.Analyzers'))">true</IsAnalyzersProject> |
| 18 | + <IsShipping Condition="'$(IsSampleProject)' == 'true' or '$(IsTestAssetProject)' == 'true' or '$(IsBenchmarkProject)' == 'true' or '$(IsUnitTestProject)' == 'true'">false</IsShipping> |
| 19 | + </PropertyGroup> |
| 20 | + |
| 21 | + <Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" /> |
15 | 22 |
|
16 | | - <Authors>Microsoft</Authors> |
17 | | - <Company>Microsoft Corporation.</Company> |
18 | | - <Copyright>© Microsoft Corporation. All rights reserved.</Copyright> |
19 | | - <NeutralLanguage>en-US</NeutralLanguage> |
| 23 | + <PropertyGroup> |
20 | 24 |
|
21 | | - <!-- Package settings --> |
| 25 | + <Product>Microsoft ASP.NET Core</Product> |
| 26 | + <StrongNameKeyId>MicrosoftAspNetCore</StrongNameKeyId> |
22 | 27 |
|
23 | | - <PackageLicenseUrl>https://raw.githubusercontent.com/aspnet/AspNetCore/2.0.0/LICENSE.txt</PackageLicenseUrl> |
24 | 28 | <!-- The SPDX name for the source license. See https://spdx.org/licenses/. --> |
25 | | - <PackageLicenseType>Apache-2.0</PackageLicenseType> |
| 29 | + <PackageLicenseExpression>Apache-2.0</PackageLicenseExpression> |
26 | 30 |
|
27 | 31 | <!-- Contact email address for NuGet packages and Linux installers. --> |
28 | 32 | < MaintainerEmail> [email protected]</ MaintainerEmail> |
29 | 33 |
|
30 | 34 | <PackageIconUrl>https://go.microsoft.com/fwlink/?LinkID=288859</PackageIconUrl> |
31 | 35 | <PackageProjectUrl>https://asp.net</PackageProjectUrl> |
32 | | - <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> |
33 | | - <Serviceable>true</Serviceable> |
| 36 | + <NuspecBasePath>$(MSBuildProjectDirectory)</NuspecBasePath> |
34 | 37 |
|
35 | | - <IncludeSource>false</IncludeSource> |
36 | 38 | <IncludeSymbols>true</IncludeSymbols> |
37 | 39 |
|
38 | 40 | <DefaultNetCoreTargetFramework>netcoreapp$(AspNetCoreMajorVersion).$(AspNetCoreMinorVersion)</DefaultNetCoreTargetFramework> |
39 | | - |
40 | | - <SharedFxProductName>$(Product) $(PackageVersion) Shared Framework</SharedFxProductName> |
41 | | - <SharedFxDescription>Shared Framework for hosting of Microsoft ASP.NET Core applications. It is open source, cross-platform and is supported by Microsoft. We hope you enjoy using it! If you do, please consider joining the active community of developers that are contributing to the project on GitHub ($(RepositoryUrl)). We happily accept issues and PRs.</SharedFxDescription> |
42 | | - |
43 | | - <RuntimeInstallerBaseName>aspnetcore-runtime</RuntimeInstallerBaseName> |
44 | | - <TargetingPackInstallerBaseName>aspnetcore-targeting-pack</TargetingPackInstallerBaseName> |
45 | | - <!-- |
46 | | - Archives and installers using this prefix are intended for internal-use only. |
47 | | - For example, this .zip is used to handoff bits to partner teams who then incorporate our shared frameworks |
48 | | - into their own installers. |
49 | | - --> |
50 | | - <InternalInstallerBaseName>$(RuntimeInstallerBaseName)-internal</InternalInstallerBaseName> |
51 | 41 | </PropertyGroup> |
52 | 42 |
|
53 | 43 | <!-- Warnings and errors --> |
54 | 44 | <PropertyGroup> |
55 | 45 | <TreatWarningsAsErrors>true</TreatWarningsAsErrors> |
56 | | - <!-- |
57 | | - Suppress NuGet warning about upcoming deprecation of PackageLicenseUrl. When embedding licenses are supported, |
58 | | - replace PackageLicenseUrl with PackageLicenseExpression. |
59 | | - --> |
60 | | - <NoWarn>$(NoWarn);NU5125</NoWarn> |
61 | | - <!-- Suppress NuGet warnings about using SemVer 2.0. --> |
62 | | - <NoWarn>$(NoWarn);NU5105</NoWarn> |
63 | 46 | <!-- Don't make missing XML docs a fatal build error, but still surface so we have visibility into undocumented APIs. --> |
64 | 47 | <WarningsNotAsErrors>$(WarningsNotAsErrors);CS1591</WarningsNotAsErrors> |
65 | 48 | <!-- xUnit1004 = warns about skipped tests. Make this a non-fatal build warning. --> |
|
75 | 58 | <GoogleTestSubmoduleRoot>$(RepoRoot)src\submodules\googletest\</GoogleTestSubmoduleRoot> |
76 | 59 | <!-- Embed source files that are not tracked by the source control manager in the PDB. --> |
77 | 60 | <EmbedUntrackedSources>true</EmbedUntrackedSources> |
78 | | - <!-- Additional assembly attributes are already configured to include the source revision ID. --> |
79 | | - <IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion> |
80 | 61 |
|
81 | 62 | <!-- These project types are disabled because the presence of a PackageReference causes issues for NuGet. --> |
82 | 63 | <DisableSourceLink Condition="'$(MSBuildProjectExtension)' == '.debproj' OR '$(MSBuildProjectExtension)' == '.rpmproj'">true</DisableSourceLink> |
83 | 64 | </PropertyGroup> |
84 | 65 |
|
85 | | - <ItemGroup Condition="'$(DisableSourceLink)' != 'true'"> |
86 | | - <!-- See https://github.com/dotnet/sourcelink --> |
87 | | - <PackageReference Include="Microsoft.SourceLink.GitHub" Version="$(MicrosoftSourceLinkGitHubPackageVersion)" PrivateAssets="All" AllowExplicitReference="true" /> |
88 | | - <PackageReference Include="Microsoft.SourceLink.Vsts.Git" Version="$(MicrosoftSourceLinkVstsGitPackageVersion)" PrivateAssets="All" AllowExplicitReference="true" /> |
89 | | - </ItemGroup> |
| 66 | + <PropertyGroup> |
| 67 | + <SharedFxName>Microsoft.AspNetCore.App</SharedFxName> |
| 68 | + <SharedFxDescription>Shared Framework for hosting of Microsoft ASP.NET Core applications. It is open source, cross-platform and is supported by Microsoft. We hope you enjoy using it! If you do, please consider joining the active community of developers that are contributing to the project on GitHub ($(RepositoryUrl)). We happily accept issues and PRs.</SharedFxDescription> |
| 69 | + |
| 70 | + <TargetingPackName>Microsoft.AspNetCore.App.Ref</TargetingPackName> |
| 71 | + <RuntimeInstallerBaseName>aspnetcore-runtime</RuntimeInstallerBaseName> |
| 72 | + <TargetingPackInstallerBaseName>aspnetcore-targeting-pack</TargetingPackInstallerBaseName> |
| 73 | + |
| 74 | + <!-- Used to only produce targeting pack installers/packages once per major.minor. --> |
| 75 | + <IsTargetingPackBuilding Condition="'$(IsServicingBuild)' == 'true' AND '$(DotNetBuildFromSource)' != 'true'">false</IsTargetingPackBuilding> |
| 76 | + |
| 77 | + <!-- |
| 78 | + Archives and installers using this prefix are intended for internal-use only. |
| 79 | + For example, this .zip is used to handoff bits to partner teams who then incorporate our shared frameworks |
| 80 | + into their own installers. |
| 81 | + --> |
| 82 | + <InternalInstallerBaseName>$(RuntimeInstallerBaseName)-internal</InternalInstallerBaseName> |
| 83 | + </PropertyGroup> |
90 | 84 |
|
91 | 85 | <ItemGroup Condition="'$(DisablePubternalApiCheck)' != 'true' AND '$(IsTestProject)' != 'true' AND '$(IsBenchmarkProject)' != 'true' AND '$(IsTestAssetProject)' != 'true'"> |
92 | | - <PackageReference Include="Internal.AspNetCore.Analyzers" PrivateAssets="All" Version="$(InternalAspNetCoreAnalyzersPackageVersion)" AllowExplicitReference="true" /> |
| 86 | + <PackageReference Include="Internal.AspNetCore.Analyzers" PrivateAssets="All" Version="$(InternalAspNetCoreAnalyzersPackageVersion)" IsImplicitlyDefined="true" /> |
93 | 87 | </ItemGroup> |
94 | 88 |
|
95 | 89 | <!-- Compilation options which apply to all languages. Language-specific options should be set in eng/targets/$(lang).Common.props --> |
96 | 90 | <PropertyGroup> |
97 | | - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
98 | | - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
99 | | - <PlatformName Condition=" '$(PlatformName)' == '' ">$(Platform)</PlatformName> |
100 | 91 | <TargetOsName Condition=" '$(TargetOsName)' == '' AND $([MSBuild]::IsOSPlatform('Windows'))">win</TargetOsName> |
101 | 92 | <TargetOsName Condition=" '$(TargetOsName)' == '' AND $([MSBuild]::IsOSPlatform('OSX'))">osx</TargetOsName> |
102 | 93 | <TargetOsName Condition=" '$(TargetOsName)' == '' AND $([MSBuild]::IsOSPlatform('Linux'))">linux</TargetOsName> |
|
119 | 110 | <!-- Make error messages clickable in VS Code's console --> |
120 | 111 | <GenerateFullPaths Condition="'$(VSCODE_CWD)' != '' OR '$(TERM_PROGRAM)' == 'vscode'">true</GenerateFullPaths> |
121 | 112 |
|
122 | | - <!-- Suppress the message about using a preview version of .NET Core SDK. We are okay with this and don't need the warning. --> |
123 | | - <SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage> |
124 | | - |
125 | 113 | <!-- Fixes a common error in targets implementing a NoBuild mode. --> |
126 | 114 | <BuildProjectReferences Condition=" '$(NoBuild)' == 'true' ">false</BuildProjectReferences> |
127 | | - |
128 | | - <IsReferenceAssemblyProject>false</IsReferenceAssemblyProject> |
129 | | - <IsReferenceAssemblyProject Condition="$(MSBuildProjectDirectory.EndsWith('ref'))">true</IsReferenceAssemblyProject> |
130 | | - <OutDirName Condition="'$(IsReferenceAssemblyProject)' == 'true'">$(MSBuildProjectName)-ref</OutDirName> |
131 | 115 | </PropertyGroup> |
132 | 116 |
|
133 | | - <Import Project="build\sources.props" /> |
134 | | - |
135 | 117 | <!-- Artifacts layout --> |
136 | 118 | <PropertyGroup> |
137 | | - <ArtifactsDir>$(MSBuildThisFileDirectory)artifacts\</ArtifactsDir> |
138 | | - <ArtifactsObjDir>$(ArtifactsDir)obj\</ArtifactsObjDir> |
139 | | - <ArtifactsBinDir>$(ArtifactsDir)bin\</ArtifactsBinDir> |
140 | | - <ArtifactsConfigurationDir>$(ArtifactsDir)$(Configuration)\</ArtifactsConfigurationDir> |
141 | | - <ArtifactsPackagesDir>$(ArtifactsDir)packages\$(Configuration)\</ArtifactsPackagesDir> |
142 | | - <ArtifactsShippingPackagesDir>$(ArtifactsPackagesDir)Shipping\</ArtifactsShippingPackagesDir> |
143 | | - <ArtifactsNonShippingPackagesDir>$(ArtifactsPackagesDir)NonShipping\</ArtifactsNonShippingPackagesDir> |
144 | 119 | <InstallersOutputPath>$(ArtifactsDir)installers\$(Configuration)\</InstallersOutputPath> |
145 | | - <VisualStudioSetupOutputPath>$(ArtifactsDir)VSSetup\$(Configuration)\</VisualStudioSetupOutputPath> |
146 | 120 | </PropertyGroup> |
147 | 121 |
|
148 | 122 | <!-- Ensure these output paths exist. --> |
149 | 123 | <ItemGroup> |
150 | | - <CreateDirectory Include="$(ArtifactsShippingPackagesDir)" /> |
151 | | - <CreateDirectory Include="$(ArtifactsNonShippingPackagesDir)" /> |
152 | 124 | <CreateDirectory Include="$(InstallersOutputPath)" /> |
153 | 125 | <CreateDirectory Include="$(VisualStudioSetupOutputPath)" /> |
154 | 126 | </ItemGroup> |
155 | 127 |
|
156 | | - <PropertyGroup> |
157 | | - <OutDirName Condition=" '$(OutDirName)' == '' ">$(MSBuildProjectName)</OutDirName> |
158 | | - |
159 | | - <BaseOutputPath Condition=" '$(BaseOutputPath)' == '' ">$([System.IO.Path]::GetFullPath('$(ArtifactsBinDir)$(OutDirName)\'))</BaseOutputPath> |
160 | | - <OutputPath Condition=" '$(PlatformName)' == 'AnyCPU' ">$(BaseOutputPath)$(Configuration)\</OutputPath> |
161 | | - <OutputPath Condition=" '$(PlatformName)' != 'AnyCPU' ">$(BaseOutputPath)$(PlatformName)\$(Configuration)\</OutputPath> |
162 | | - |
163 | | - <BaseIntermediateOutputPath Condition=" '$(BaseIntermediateOutputPath)' == '' ">$([System.IO.Path]::GetFullPath('$(ArtifactsObjDir)$(OutDirName)\'))</BaseIntermediateOutputPath> |
164 | | - <IntermediateOutputPath Condition=" '$(PlatformName)' == 'AnyCPU' ">$(BaseIntermediateOutputPath)$(Configuration)\</IntermediateOutputPath> |
165 | | - <IntermediateOutputPath Condition=" '$(PlatformName)' != 'AnyCPU' ">$(BaseIntermediateOutputPath)$(PlatformName)\$(Configuration)\</IntermediateOutputPath> |
166 | | - </PropertyGroup> |
167 | | - |
168 | 128 | <!-- The location of the local installation of the .NET Core shared framework. --> |
169 | 129 | <PropertyGroup> |
170 | | - <LocalDotNetRoot Condition="'$(TargetOSName)' == 'win'">$(RepoRoot).dotnet\$(TargetArchitecture)\</LocalDotNetRoot> |
171 | | - <LocalDotNetRoot Condition="'$(TargetOSName)' != 'win'">$(RepoRoot).dotnet\</LocalDotNetRoot> |
| 130 | + <LocalDotNetRoot>$(RepoRoot).dotnet\</LocalDotNetRoot> |
172 | 131 | <!-- Override the SDK default and point to local .dotnet folder. --> |
173 | 132 | <NetCoreTargetingPackRoot>$(LocalDotNetRoot)packs\</NetCoreTargetingPackRoot> |
174 | 133 | </PropertyGroup> |
175 | 134 |
|
176 | | - <!-- Defines project type conventions. --> |
177 | | - <PropertyGroup> |
178 | | - <RepoRelativeProjectDir>$([MSBuild]::MakeRelative($(RepoRoot), $(MSBuildProjectDirectory)))</RepoRelativeProjectDir> |
179 | | - |
180 | | - <IsBenchmarkProject Condition="$(MSBuildProjectName.EndsWith('.Performance')) OR $(RepoRelativeProjectDir.Contains('perf'))">true</IsBenchmarkProject> |
181 | | - <IsTestProject Condition="$(MSBuildProjectName.EndsWith('Tests')) OR $(MSBuildProjectName.EndsWith('.Test'))">true</IsTestProject> |
182 | | - <IsTestAssetProject Condition="$(RepoRelativeProjectDir.Contains('testassets'))">true</IsTestAssetProject> |
183 | | - <IsSampleProject Condition="$(RepoRelativeProjectDir.Contains('sample'))">true</IsSampleProject> |
184 | | - <IsAnalyzersProject Condition="$(MSBuildProjectName.EndsWith('.Analyzers'))">true</IsAnalyzersProject> |
185 | | - <IsSpecificationTestProject Condition="$(MSBuildProjectName.EndsWith('.Specification.Tests'))">true</IsSpecificationTestProject> |
186 | | - |
187 | | - </PropertyGroup> |
188 | | - |
189 | 135 | <Import Project="build\tasks\RepoTasks.tasks" Condition="'$(MSBuildProjectName)' != 'RepoTasks' AND '$(DesignTimeBuild)' != 'true'" /> |
190 | 136 |
|
191 | 137 | <PropertyGroup> |
|
0 commit comments