diff --git a/Directory.Build.targets b/Directory.Build.targets index 6d564cde7912..077353216668 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -1,5 +1,7 @@ + + $([MSBuild]::ValueOrDefault($(IsTrimmable),'false')) $(EnableAOTAnalyzer) diff --git a/eng/CodeGen.proj b/eng/CodeGen.proj index 1de7e09de4db..d5d8f0a5f6b6 100644 --- a/eng/CodeGen.proj +++ b/eng/CodeGen.proj @@ -24,10 +24,12 @@ <_RequiresDelayedBuild Include="@(_ProvidesReferenceOrRequiresDelay->WithMetadataValue('RequiresDelayedBuild','true')->Distinct())" /> <_SharedFrameworkAndPackageRef Include="@(_ProjectReferenceProvider->WithMetadataValue('IsAspNetCoreApp','true')->WithMetadataValue('IsPackable', 'true'))" /> <_SharedFrameworkRef Include="@(_ProjectReferenceProvider->WithMetadataValue('IsAspNetCoreApp','true')->WithMetadataValue('IsPackable', 'false'))" /> - <_TrimmableProject Include="@(_ProjectReferenceProvider->WithMetadataValue('IsTrimmable', 'true'))" /> <_ShippingAssemblyWithDupes Include="@(_ProjectReferenceProvider->WithMetadataValue('IsAspNetCoreApp', 'true'))" /> <_ShippingAssemblyWithDupes Include="@(_ProjectReferenceProvider->WithMetadataValue('IsShippingPackage', 'true'))" /> <_ShippingAssembly Include="@(_ShippingAssemblyWithDupes->Distinct())" /> + + + <_TrimmableProject Include="@(_ProvidesReferenceOrRequiresDelay->WithMetadataValue('IsTrimmable', 'true')->WithMetadataValue('IsProjectReferenceProvider','true')->Distinct())" /> diff --git a/eng/tools/GenerateFiles/Directory.Build.props.in b/eng/tools/GenerateFiles/Directory.Build.props.in index dd4ea40b86b6..619ec1ded3d9 100644 --- a/eng/tools/GenerateFiles/Directory.Build.props.in +++ b/eng/tools/GenerateFiles/Directory.Build.props.in @@ -8,11 +8,4 @@ true - - - - - - - diff --git a/global.json b/global.json index a40910d4a71d..f4afdd8af56b 100644 --- a/global.json +++ b/global.json @@ -1,9 +1,9 @@ { "sdk": { - "version": "8.0.100-rc.1.23381.2" + "version": "8.0.100-rc.2.23422.11" }, "tools": { - "dotnet": "8.0.100-rc.1.23381.2", + "dotnet": "8.0.100-rc.2.23422.11", "runtimes": { "dotnet/x86": [ "$(MicrosoftNETCoreBrowserDebugHostTransportVersion)" diff --git a/src/Http/Routing/src/Template/TemplatePart.cs b/src/Http/Routing/src/Template/TemplatePart.cs index b0f1ef02b1ab..a58b43e3e9ce 100644 --- a/src/Http/Routing/src/Template/TemplatePart.cs +++ b/src/Http/Routing/src/Template/TemplatePart.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; using System.Linq; using Microsoft.AspNetCore.Routing.Patterns; @@ -104,6 +105,7 @@ public static TemplatePart CreateParameter( /// /// if the route part is represents a literal value. /// + [MemberNotNullWhen(true, nameof(Text))] public bool IsLiteral { get; private set; } /// /// if the route part represents a parameterized value.