Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
840df98
Backflow from https://github.com/dotnet/dotnet / 39ec54d build 281059
dotnet-maestro[bot] Aug 28, 2025
cac20cb
Merge release/10.0.1xx into darc-release/10.0.1xx-d5e70d62-80a9-432c-…
dotnet-maestro[bot] Aug 28, 2025
60c91aa
Update dependencies from https://github.com/dotnet/dotnet build 281059
dotnet-maestro[bot] Aug 28, 2025
f57b098
Merge branch 'release/10.0.1xx' of https://github.com/dotnet/sdk into…
Aug 28, 2025
211d1ed
Try to fix test cases of BlazorWeb, re-add the headers
Aug 28, 2025
a4b562a
Update dependencies from https://github.com/dotnet/dotnet build 281128
dotnet-maestro[bot] Aug 29, 2025
144a493
Merge branch 'release/10.0.1xx' into darc-release/10.0.1xx-d5e70d62-8…
SimonZhao888 Aug 29, 2025
ab41a03
Merge branch 'release/10.0.1xx' into darc-release/10.0.1xx-d5e70d62-8…
SimonZhao888 Sep 1, 2025
0bb9436
Merge branch 'release/10.0.1xx' into darc-release/10.0.1xx-d5e70d62-8…
SimonZhao888 Sep 1, 2025
7d5ed4a
Merge branch 'release/10.0.1xx' into darc-release/10.0.1xx-d5e70d62-8…
SimonZhao888 Sep 1, 2025
ff31f2d
Merge branch 'release/10.0.1xx' into darc-release/10.0.1xx-d5e70d62-8…
SimonZhao888 Sep 2, 2025
32ba783
Merge branch 'release/10.0.1xx' into darc-release/10.0.1xx-d5e70d62-8…
SimonZhao888 Sep 3, 2025
9995bb9
Update package prune tests
dsplaisted Sep 3, 2025
4246eac
Fix invalid package name in test
dsplaisted Sep 4, 2025
b4112da
Update tests to expect package pruning in full framework targets when…
dsplaisted Sep 4, 2025
f7a943b
Merge branch 'release/10.0.1xx' into darc-release/10.0.1xx-d5e70d62-8…
SimonZhao888 Sep 4, 2025
3b18317
Merge branch 'release/10.0.1xx' into darc-release/10.0.1xx-d5e70d62-8…
SimonZhao888 Sep 4, 2025
77d36db
Merge branch 'release/10.0.1xx' into darc-release/10.0.1xx-d5e70d62-8…
SimonZhao888 Sep 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@

<HostFxrVersion>$(MicrosoftNETCoreAppRuntimePackageVersion)</HostFxrVersion>
<SharedHostVersion>$(MicrosoftNETCoreAppRuntimePackageVersion)</SharedHostVersion>

<MicrosoftCodeAnalysisVersionForNetAnalyzers Condition="'$(DotNetBuildSourceOnly)' != 'true'">3.11.0</MicrosoftCodeAnalysisVersionForNetAnalyzers>
<MicrosoftCodeAnalysisVersionForNetAnalyzers Condition="'$(DotNetBuildSourceOnly)' == 'true'">$(MicrosoftCodeAnalysisVersion)</MicrosoftCodeAnalysisVersionForNetAnalyzers>
</PropertyGroup>

<Import Project="build/GenerateResxSource.targets" />
Expand Down
260 changes: 130 additions & 130 deletions eng/Version.Details.props

Large diffs are not rendered by default.

522 changes: 261 additions & 261 deletions eng/Version.Details.xml

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@
<SystemCommandLineVersion>2.0.0-rc.1.25377.103</SystemCommandLineVersion>
<SystemCommandLineNamingConventionBinderVersion>2.0.0-beta5.25279.2</SystemCommandLineNamingConventionBinderVersion>
<MicrosoftCodeAnalysisAnalyzerTestingVersion>1.1.2</MicrosoftCodeAnalysisAnalyzerTestingVersion>
<MicrosoftCodeAnalysisVersionForNetAnalyzers Condition="'$(DotNetBuildSourceOnly)' != 'true'">3.11.0</MicrosoftCodeAnalysisVersionForNetAnalyzers>
<MicrosoftCodeAnalysisVersionForNetAnalyzers Condition="'$(DotNetBuildSourceOnly)' == 'true'">$(MicrosoftCodeAnalysisVersion)</MicrosoftCodeAnalysisVersionForNetAnalyzers>
<MicrosoftVisualBasicVersion>10.3.0</MicrosoftVisualBasicVersion>
<MicrosoftVisualStudioSetupConfigurationInteropVersion>3.2.2146</MicrosoftVisualStudioSetupConfigurationInteropVersion>
<MicrosoftWindowsCsWin32PackageVersion>0.3.49-beta</MicrosoftWindowsCsWin32PackageVersion>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
parameters:
sourceIndexUploadPackageVersion: 2.0.0-20250425.2
sourceIndexProcessBinlogPackageVersion: 1.0.1-20250515.1
sourceIndexUploadPackageVersion: 2.0.0-20250818.1
sourceIndexProcessBinlogPackageVersion: 1.0.1-20250818.1
sourceIndexPackageSource: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json
binlogPath: artifacts/log/Debug/Build.binlog

Expand Down
3 changes: 2 additions & 1 deletion eng/common/sdk-task.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ Param(
[switch] $restore,
[switch] $prepareMachine,
[switch][Alias('nobl')]$excludeCIBinaryLog,
[switch]$noWarnAsError,
[switch] $help,
[Parameter(ValueFromRemainingArguments=$true)][String[]]$properties
)

$ci = $true
$binaryLog = if ($excludeCIBinaryLog) { $false } else { $true }
$warnAsError = $true
$warnAsError = if ($noWarnAsError) { $false } else { $true }

. $PSScriptRoot\tools.ps1

Expand Down
7 changes: 6 additions & 1 deletion eng/common/sdk-task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ show_usage() {

echo "Advanced settings:"
echo " --excludeCIBinarylog Don't output binary log (short: -nobl)"
echo " --noWarnAsError Do not warn as error
echo ""
echo "Command line arguments not listed above are passed thru to msbuild."
}
Expand Down Expand Up @@ -52,6 +53,7 @@ exclude_ci_binary_log=false
restore=false
help=false
properties=''
warnAsError=true

while (($# > 0)); do
lowerI="$(echo $1 | tr "[:upper:]" "[:lower:]")"
Expand All @@ -73,6 +75,10 @@ while (($# > 0)); do
exclude_ci_binary_log=true
shift 1
;;
--noWarnAsError)
warnAsError=false
shift 1
;;
--help)
help=true
shift 1
Expand All @@ -85,7 +91,6 @@ while (($# > 0)); do
done

ci=true
warnAsError=true

if $help; then
show_usage
Expand Down
2 changes: 1 addition & 1 deletion eng/common/tools.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ function LocateVisualStudio([object]$vsRequirements = $null){

if (!(Test-Path $vsWhereExe)) {
Create-Directory $vsWhereDir
Write-Host 'Downloading vswhere $vswhereVersion'
Write-Host "Downloading vswhere $vswhereVersion"
$ProgressPreference = 'SilentlyContinue' # Don't display the console progress UI - it's a huge perf hit
Retry({
Invoke-WebRequest "https://netcorenativeassets.blob.core.windows.net/resource-packages/external/windows/vswhere/$vswhereVersion/vswhere.exe" -OutFile $vswhereExe
Expand Down
6 changes: 3 additions & 3 deletions global.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"errorMessage": "The .NET SDK is not installed or is not configured correctly. Please run ./build to install the correct SDK version locally."
},
"tools": {
"dotnet": "10.0.100-rc.1.25411.109",
"dotnet": "10.0.100-rc.1.25420.111",
"runtimes": {
"dotnet": [
"$(MicrosoftNETCorePlatformsPackageVersion)"
Expand All @@ -21,8 +21,8 @@
}
},
"msbuild-sdks": {
"Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.25420.109",
"Microsoft.DotNet.Helix.Sdk": "10.0.0-beta.25420.109",
"Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.25427.104",
"Microsoft.DotNet.Helix.Sdk": "10.0.0-beta.25427.104",
"Microsoft.Build.NoTargets": "3.7.0",
"Microsoft.Build.Traversal": "3.4.0",
"Microsoft.WixToolset.Sdk": "5.0.2-dotnet.2737382"
Expand Down
5 changes: 2 additions & 3 deletions src/RazorSdk/Tool/DiscoverCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
using Microsoft.AspNetCore.Razor.Language;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Razor;
using Microsoft.CodeAnalysis.Razor.Serialization;
using Microsoft.NET.Sdk.Razor.Tool.CommandLineUtils;
using Microsoft.NET.Sdk.Razor.Tool.Json;
using Newtonsoft.Json;

namespace Microsoft.NET.Sdk.Razor.Tool
Expand Down Expand Up @@ -246,8 +246,7 @@ private static void Serialize(Stream stream, IReadOnlyList<TagHelperDescriptor>
using (var writer = new StreamWriter(stream, Encoding.UTF8, bufferSize: 4096, leaveOpen: true))
{
var serializer = new JsonSerializer();
serializer.Converters.Add(new TagHelperDescriptorJsonConverter());
serializer.Converters.Add(new RazorDiagnosticJsonConverter());
serializer.Converters.Add(TagHelperDescriptorJsonConverter.Instance);

serializer.Serialize(writer, tagHelpers);
}
Expand Down
6 changes: 2 additions & 4 deletions src/RazorSdk/Tool/GenerateCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
using System.Diagnostics;
using Microsoft.AspNetCore.Razor.Language;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Razor;
using Microsoft.CodeAnalysis.Razor.Serialization;
using Microsoft.NET.Sdk.Razor.Tool.CommandLineUtils;
using Microsoft.NET.Sdk.Razor.Tool.Json;
using Newtonsoft.Json;

namespace Microsoft.NET.Sdk.Razor.Tool
Expand Down Expand Up @@ -309,8 +308,7 @@ private IReadOnlyList<TagHelperDescriptor> GetTagHelpers(string tagHelperManifes
var reader = new JsonTextReader(new StreamReader(stream));

var serializer = new JsonSerializer();
serializer.Converters.Add(new RazorDiagnosticJsonConverter());
serializer.Converters.Add(new TagHelperDescriptorJsonConverter());
serializer.Converters.Add(TagHelperDescriptorJsonConverter.Instance);

var descriptors = serializer.Deserialize<IReadOnlyList<TagHelperDescriptor>>(reader);
return descriptors;
Expand Down
157 changes: 157 additions & 0 deletions src/RazorSdk/Tool/Json/Assumed.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;

namespace Microsoft.NET.Sdk.Razor.Tool.Json;

internal static partial class Assumed
{
public static void NotNull<T>(
[NotNull] this T? value,
string? message = null,
[CallerArgumentExpression(nameof(value))] string? valueExpression = null,
[CallerFilePath] string? path = null,
[CallerLineNumber] int line = 0)
where T : class
{
if (value is null)
{
ThrowInvalidOperation(message ?? Strings.FormatExpected_0_to_be_non_null(valueExpression), path, line);
}
}

public static void NotNull<T>(
[NotNull] this T? value,
[InterpolatedStringHandlerArgument(nameof(value))] ThrowIfNullInterpolatedStringHandler<T> message,
[CallerFilePath] string? path = null,
[CallerLineNumber] int line = 0)
where T : class
{
if (value is null)
{
ThrowInvalidOperation(message.GetFormattedText(), path, line);
}
}

public static void NotNull<T>(
[NotNull] this T? value,
string? message = null,
[CallerArgumentExpression(nameof(value))] string? valueExpression = null,
[CallerFilePath] string? path = null,
[CallerLineNumber] int line = 0)
where T : struct
{
if (value is null)
{
ThrowInvalidOperation(message ?? Strings.FormatExpected_0_to_be_non_null(valueExpression), path, line);
}
}

public static void NotNull<T>(
[NotNull] this T? value,
[InterpolatedStringHandlerArgument(nameof(value))] ThrowIfNullInterpolatedStringHandler<T> message,
[CallerFilePath] string? path = null,
[CallerLineNumber] int line = 0)
where T : struct
{
if (value is null)
{
ThrowInvalidOperation(message.GetFormattedText(), path, line);
}
}

public static void False(
[DoesNotReturnIf(true)] bool condition,
string? message = null,
[CallerFilePath] string? path = null,
[CallerLineNumber] int line = 0)
{
if (condition)
{
ThrowInvalidOperation(message ?? Strings.Expected_condition_to_be_false, path, line);
}
}

public static void False(
[DoesNotReturnIf(true)] bool condition,
[InterpolatedStringHandlerArgument(nameof(condition))] ThrowIfFalseInterpolatedStringHandler message,
[CallerFilePath] string? path = null,
[CallerLineNumber] int line = 0)
{
if (condition)
{
ThrowInvalidOperation(message.GetFormattedText(), path, line);
}
}

[DebuggerStepThrough]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void True(
[DoesNotReturnIf(false)] bool condition,
string? message = null,
[CallerFilePath] string? path = null,
[CallerLineNumber] int line = 0)
{
if (!condition)
{
ThrowInvalidOperation(message ?? Strings.Expected_condition_to_be_true, path, line);
}
}

/// <summary>
/// Can be called at points that are assumed to be unreachable at runtime.
/// </summary>
/// <exception cref="InvalidOperationException"/>
[DoesNotReturn]
public static void Unreachable(
string? message = null,
[CallerFilePath] string? path = null,
[CallerLineNumber] int line = 0)
=> ThrowInvalidOperation(message ?? Strings.This_program_location_is_thought_to_be_unreachable, path, line);

/// <summary>
/// Can be called at points that are assumed to be unreachable at runtime.
/// </summary>
/// <exception cref="InvalidOperationException"/>
[DoesNotReturn]
public static void Unreachable(
UnreachableInterpolatedStringHandler message,
[CallerFilePath] string? path = null,
[CallerLineNumber] int line = 0)
=> ThrowInvalidOperation(message.GetFormattedText(), path, line);

/// <summary>
/// Can be called at points that are assumed to be unreachable at runtime.
/// </summary>
/// <exception cref="InvalidOperationException"/>
[DoesNotReturn]
public static T Unreachable<T>(
string? message = null,
[CallerFilePath] string? path = null,
[CallerLineNumber] int line = 0)
=> ThrowInvalidOperation<T>(message ?? Strings.This_program_location_is_thought_to_be_unreachable, path, line);

/// <summary>
/// Can be called at points that are assumed to be unreachable at runtime.
/// </summary>
/// <exception cref="InvalidOperationException"/>
[DoesNotReturn]
public static T Unreachable<T>(
UnreachableInterpolatedStringHandler message,
[CallerFilePath] string? path = null,
[CallerLineNumber] int line = 0)
=> ThrowInvalidOperation<T>(message.GetFormattedText(), path, line);

[DebuggerHidden]
[DoesNotReturn]
private static void ThrowInvalidOperation(string message, string? path, int line)
=> ThrowHelper.ThrowInvalidOperationException(message + Environment.NewLine + Strings.FormatFile_0_Line_1(path, line));

[DebuggerHidden]
[DoesNotReturn]
private static T ThrowInvalidOperation<T>(string message, string? path, int line)
=> ThrowHelper.ThrowInvalidOperationException<T>(message + Environment.NewLine + Strings.FormatFile_0_Line_1(path, line));
}
Loading
Loading