|
|
@@ -15,15 +15,6 @@
|
|
|
<PackageLicenseUrl>https://raw.githubusercontent.com/aspnet/AspNetCore/2.0.0/LICENSE.txt</PackageLicenseUrl>
|
|
|
<!-- The SPDX name for the source license. See https://spdx.org/licenses/. -->
|
|
|
<PackageLicenseType>Apache-2.0</PackageLicenseType>
|
|
|
- <!--
|
|
|
- Suppress a warning about upcoming deprecation of PackageLicenseUrl. When embedding licenses are supported,
|
|
|
- replace PackageLicenseUrl with PackageLicenseExpression.
|
|
|
- -->
|
|
|
- <NoWarn>$(NoWarn);NU5125</NoWarn>
|
|
|
- <!-- Suppress warnings about using SemVer 2.0. -->
|
|
|
- <NoWarn>$(NoWarn);NU5105</NoWarn>
|
|
|
- <!-- Don't make missing XML docs a fatal build error, but still surface so we have visibility into undocumented APIs. -->
|
|
|
- <WarningsNotAsErrors>$(WarningsNotAsErrors);CS1591</WarningsNotAsErrors>
|
|
|
|
|
|
<!-- Contact email address for NuGet packages and Linux installers. -->
|
|
|
<MaintainerEmail>[email protected]</MaintainerEmail>
|
|
|
@@ -42,6 +33,22 @@
|
|
|
<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>
|
|
|
</PropertyGroup>
|
|
|
|
|
|
+ <!-- Warnings and errors -->
|
|
|
+ <PropertyGroup>
|
|
|
+ <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
|
|
+ <!--
|
|
|
+ Suppress NuGet warning about upcoming deprecation of PackageLicenseUrl. When embedding licenses are supported,
|
|
|
+ replace PackageLicenseUrl with PackageLicenseExpression.
|
|
|
+ -->
|
|
|
+ <NoWarn>$(NoWarn);NU5125</NoWarn>
|
|
|
+ <!-- Suppress NuGet warnings about using SemVer 2.0. -->
|
|
|
+ <NoWarn>$(NoWarn);NU5105</NoWarn>
|
|
|
+ <!-- Don't make missing XML docs a fatal build error, but still surface so we have visibility into undocumented APIs. -->
|
|
|
+ <WarningsNotAsErrors>$(WarningsNotAsErrors);CS1591</WarningsNotAsErrors>
|
|
|
+ <!-- xUnit1004 = warns about skipped tests. Make this a non-fatal build warning. -->
|
|
|
+ <WarningsNotAsErrors>$(WarningsNotAsErrors);xUnit1004</WarningsNotAsErrors>
|
|
|
+ </PropertyGroup>
|
|
|
+
|
|
|
<!-- Source code settings -->
|
|
|
<PropertyGroup>
|
|
|
<RepositoryRoot>$(MSBuildThisFileDirectory)</RepositoryRoot>
|
|
|
@@ -49,13 +56,23 @@
|
|
|
<RepositoryType>git</RepositoryType>
|
|
|
<SharedSourceRoot>$(MSBuildThisFileDirectory)src\Shared\</SharedSourceRoot>
|
|
|
<GoogleTestSubmoduleRoot>$(RepositoryRoot)src\submodules\googletest\</GoogleTestSubmoduleRoot>
|
|
|
+ <!-- Embed source files that are not tracked by the source control manager in the PDB. -->
|
|
|
+ <EmbedUntrackedSources>true</EmbedUntrackedSources>
|
|
|
+ <!-- Additional assembly attributes are already configured to include the source revision ID. -->
|
|
|
+ <IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
|
|
|
+
|
|
|
+ <!-- These project types are disabled because the presence of a PackageReference causes issues for NuGet. -->
|
|
|
+ <DisableSourceLink Condition="'$(MSBuildProjectExtension)' == '.zipproj' OR '$(MSBuildProjectExtension)' == '.debproj' OR '$(MSBuildProjectExtension)' == '.rpmproj'">true</DisableSourceLink>
|
|
|
</PropertyGroup>
|
|
|
|
|
|
+ <ItemGroup Condition="'$(DisableSourceLink)' != 'true'">
|
|
|
+ <!-- See https://github.com/dotnet/sourcelink -->
|
|
|
+ <PackageReference Include="Microsoft.SourceLink.GitHub" Version="$(MicrosoftSourceLinkGitHubPackageVersion)" PrivateAssets="All" AllowExplicitReference="true" />
|
|
|
+ <PackageReference Include="Microsoft.SourceLink.Vsts.Git" Version="$(MicrosoftSourceLinkVstsGitPackageVersion)" PrivateAssets="All" AllowExplicitReference="true" />
|
|
|
+ </ItemGroup>
|
|
|
+
|
|
|
<!-- Compilation options which apply to all languages. Language-specific options should be set in eng/targets/$(lang).Common.props -->
|
|
|
<PropertyGroup>
|
|
|
- <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)eng\AspNetCore.snk</AssemblyOriginatorKeyFile>
|
|
|
- <SignAssembly>true</SignAssembly>
|
|
|
- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
|
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
|
<PlatformName Condition=" '$(PlatformName)' == '' ">$(Platform)</PlatformName>
|
|
|
@@ -77,16 +94,14 @@
|
|
|
linux-arm64
|
|
|
</SupportedRuntimeIdentifiers>
|
|
|
|
|
|
- <!-- Instructs the compiler to use SHA256 instead of SHA1 when adding file hashes to PDBs. -->
|
|
|
- <ChecksumAlgorithm>SHA256</ChecksumAlgorithm>
|
|
|
+ <!-- Make error messages clickable in VS Code's console -->
|
|
|
+ <GenerateFullPaths Condition="'$(VSCODE_PID)' != ''">true</GenerateFullPaths>
|
|
|
+
|
|
|
<!-- Suppress the message about using a preview version of .NET Core SDK. We are okay with this and don't need the warning. -->
|
|
|
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
|
|
|
|
|
|
<!-- Fixes a common error in targets implementing a NoBuild mode. -->
|
|
|
<BuildProjectReferences Condition=" '$(NoBuild)' == 'true' ">false</BuildProjectReferences>
|
|
|
-
|
|
|
- <!-- Enables Strict mode for Roslyn compiler -->
|
|
|
- <Features>strict</Features>
|
|
|
</PropertyGroup>
|
|
|
|
|
|
<Import Project="eng\Versions.props" />
|
|
|
@@ -139,12 +154,17 @@
|
|
|
<IsTestAssetProject Condition="$(RepoRelativeProjectDir.Contains('testassets'))">true</IsTestAssetProject>
|
|
|
<IsSampleProject Condition="$(RepoRelativeProjectDir.Contains('sample'))">true</IsSampleProject>
|
|
|
<IsAnalyzersProject Condition="$(MSBuildProjectName.EndsWith('.Analyzers'))">true</IsAnalyzersProject>
|
|
|
- <DisableDeterministicSourceRoot Condition="'$(IsSampleProject)' == 'true' OR '$(IsTestAssetProject)' == 'true'">true</DisableDeterministicSourceRoot>
|
|
|
</PropertyGroup>
|
|
|
|
|
|
<Import Project="build\tasks\RepoTasks.tasks" Condition="'$(MSBuildProjectName)' != 'RepoTasks' AND '$(DesignTimeBuild)' != 'true'" />
|
|
|
|
|
|
<PropertyGroup>
|
|
|
+ <ContinuousIntegrationBuild Condition="'$(CI)' == 'true'">true</ContinuousIntegrationBuild>
|
|
|
+ <!--
|
|
|
+ Disable deterministic source paths in test assets and samples.
|
|
|
+ In order for the debugger to find source files when debugging a locally built binary the PDB must contain original, unmapped local paths
|
|
|
+ -->
|
|
|
+ <DeterministicSourcePaths Condition="'$(IsSampleProject)' == 'true' OR '$(IsTestAssetProject)' == 'true'">false</DeterministicSourcePaths>
|
|
|
<!-- Projects which reference Microsoft.AspNetCore.Mvc.Testing should import this targets file to ensure dependency .deps.json files are copied into test output. -->
|
|
|
<MvcTestingTargets>$(MSBuildThisFileDirectory)src\Mvc\src\Microsoft.AspNetCore.Mvc.Testing\Microsoft.AspNetCore.Mvc.Testing.targets</MvcTestingTargets>
|
|
|
<!-- IIS native projects can only be built on Windows for x86 and x64. -->
|