Skip to content

Commit

Permalink
Rendermode main (#9274)
Browse files Browse the repository at this point in the history
Merges main into the feature branch. 

Merge was mostly clean, just combining the rendermode and formname
additions. I've added comments to the less obvious merge resolutions
(diagnostic numbers and a parsing fix), but it was generally very
simple.
  • Loading branch information
chsienki authored Sep 12, 2023
2 parents 6582c17 + f4bcf0e commit 4258f88
Show file tree
Hide file tree
Showing 933 changed files with 79,840 additions and 22,522 deletions.
6 changes: 3 additions & 3 deletions azure-pipelines-integration-dartlab.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Razor integration test pipeline for validating against branch builds of VS.
# Razor integration test pipeline for validating against branch builds of VS.

trigger: none # Manual trigger for now
pr: none
Expand Down Expand Up @@ -29,10 +29,10 @@ variables:
value: $(Build.SourcesDirectory)\artifacts\log\$(_configuration)
- name: __VSNeverShowWhatsNew
value: 1
- name: RAZOR_RUN_ALL_TESTS
value: 'true'
- name: LogLevel
value: 'Verbose'
- name: RAZOR_TRACE
value: 'Verbose'

stages:
- template: \stages\visual-studio\agent.yml@DartLabTemplates
Expand Down
4 changes: 4 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ variables:
value: true
- name: Codeql.Enabled
value: true
- name: LogLevel
value: 'Verbose'
- name: RAZOR_TRACE
value: 'Verbose'
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
- group: DotNetBuilds storage account read tokens
- name: _InternalRuntimeDownloadArgs
Expand Down
2 changes: 2 additions & 0 deletions eng/Signing.props
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<FileSignInfo Include="OmniSharp.Extensions.LanguageServer.dll" CertificateName="3PartySHA2" />
<FileSignInfo Include="OmniSharp.Extensions.LanguageServer.Shared.dll" CertificateName="3PartySHA2" />
<FileSignInfo Include="Nerdbank.Streams.dll" CertificateName="3PartySHA2" />
<FileSignInfo Include="MessagePack.Annotations.dll" CertificateName="3PartySHA2" />
<FileSignInfo Include="MessagePack.dll" CertificateName="3PartySHA2" />
</ItemGroup>

<ItemGroup>
Expand Down
12 changes: 6 additions & 6 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-runtime</Uri>
<Sha>839cdfb0ecca5e0be3dbccd926e7651ef50fdf10</Sha>
</Dependency>
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-reference-packages" Version="8.0.0-alpha.1.23414.1">
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-reference-packages" Version="8.0.0-alpha.1.23457.1">
<Uri>https://github.com/dotnet/source-build-reference-packages</Uri>
<Sha>45f5554ac6813e1e155c47fd80ec146c684f65e8</Sha>
<Sha>18302345498a62222dd3c236b3d1d140dbaed43d</Sha>
<SourceBuild RepoName="source-build-reference-packages" ManagedOnly="true" />
</Dependency>
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="4.8.0-1.23415.13">
Expand Down Expand Up @@ -98,14 +98,14 @@
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-runtime</Uri>
<Sha>3a25a7f1cc446b60678ed25c9d829420d6321eba</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="8.0.0-beta.23422.1">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="8.0.0-beta.23451.1">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>4d9945d230fdd8324ce16a31c7dbd74e27a0fc9b</Sha>
<Sha>4665b3d04e1da3796b965c3c3e3b97f55c449a6e</Sha>
<SourceBuild RepoName="arcade" ManagedOnly="true" />
</Dependency>
<Dependency Name="Microsoft.DotNet.XliffTasks" Version="1.0.0-beta.23418.1" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
<Dependency Name="Microsoft.DotNet.XliffTasks" Version="1.0.0-beta.23426.1" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
<Uri>https://github.com/dotnet/xliff-tasks</Uri>
<Sha>bb654cd4736e7e8cb99f1c355ce2b8f0a686ba74</Sha>
<Sha>194f32828726c3f1f63f79f3dc09b9e99c157b11</Sha>
<SourceBuild RepoName="xliff-tasks" ManagedOnly="true" />
</Dependency>
<!-- Necessary for source-build. This allows Microsoft.Extensions.ObjectPool and System.Collections.Immutable packages
Expand Down
5 changes: 3 additions & 2 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<PropertyGroup Label="Automated">
<MicrosoftNETCoreBrowserDebugHostTransportPackageVersion>6.0.2-servicing.22064.6</MicrosoftNETCoreBrowserDebugHostTransportPackageVersion>
<MicrosoftNETCorePlatformsPackageVersion>6.0.1</MicrosoftNETCorePlatformsPackageVersion>
<MicrosoftSourceBuildIntermediatesourcebuildreferencepackagesPackageVersion>8.0.0-alpha.1.23414.1</MicrosoftSourceBuildIntermediatesourcebuildreferencepackagesPackageVersion>
<MicrosoftSourceBuildIntermediatesourcebuildreferencepackagesPackageVersion>8.0.0-alpha.1.23457.1</MicrosoftSourceBuildIntermediatesourcebuildreferencepackagesPackageVersion>
<MicrosoftNetCompilersToolsetPackageVersion>4.8.0-1.23415.13</MicrosoftNetCompilersToolsetPackageVersion>
<MicrosoftCommonLanguageServerProtocolFrameworkPackageVersion>4.8.0-1.23415.13</MicrosoftCommonLanguageServerProtocolFrameworkPackageVersion>
<MicrosoftCodeAnalysisExternalAccessRazorPackageVersion>4.8.0-1.23415.13</MicrosoftCodeAnalysisExternalAccessRazorPackageVersion>
Expand All @@ -72,7 +72,7 @@
<MicrosoftCodeAnalysisWorkspacesCommonPackageVersion>4.8.0-1.23415.13</MicrosoftCodeAnalysisWorkspacesCommonPackageVersion>
<MicrosoftCodeAnalysisWorkspacesMSBuildPackageVersion>4.8.0-1.23415.13</MicrosoftCodeAnalysisWorkspacesMSBuildPackageVersion>
<MicrosoftVisualStudioLanguageServicesPackageVersion>4.8.0-1.23415.13</MicrosoftVisualStudioLanguageServicesPackageVersion>
<MicrosoftDotNetXliffTasksPackageVersion>1.0.0-beta.23418.1</MicrosoftDotNetXliffTasksPackageVersion>
<MicrosoftDotNetXliffTasksPackageVersion>1.0.0-beta.23426.1</MicrosoftDotNetXliffTasksPackageVersion>
<!--
Exception - Microsoft.Extensions.ObjectPool and System.Collections.Immutable packages are not updated by automation,
but are present in Version.Details.xml for source-build PVP flow. See the comment in Version.Details.xml for more information.
Expand Down Expand Up @@ -147,6 +147,7 @@
<MonoAddinsPackageVersion>1.3.8</MonoAddinsPackageVersion>
<MonoDevelopSdkPackageVersion>1.0.15</MonoDevelopSdkPackageVersion>
<MoqPackageVersion>4.16.0</MoqPackageVersion>
<MessagePackPackageVersion>2.5.108</MessagePackPackageVersion>
<NewtonsoftJsonPackageVersion>13.0.3</NewtonsoftJsonPackageVersion>
<NerdbankStreamsPackageVersion>2.9.116</NerdbankStreamsPackageVersion>
<NuGetSolutionRestoreManagerInteropVersion>4.8.0</NuGetSolutionRestoreManagerInteropVersion>
Expand Down
2 changes: 1 addition & 1 deletion eng/common/cross/toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ elseif(ILLUMOS)
set(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES} -lssp")
elseif(HAIKU)
set(CMAKE_SYSROOT "${CROSS_ROOTFS}")
set(CMAKE_PROGRAM_PATH "${CMAKE_PROGRAM_PATH};${CROSS_ROOTFS}/cross-tools-x86_64/bin")

set(TOOLSET_PREFIX ${TOOLCHAIN}-)
function(locate_toolchain_exec exec var)
Expand All @@ -217,7 +218,6 @@ elseif(HAIKU)
endif()

find_program(EXEC_LOCATION_${exec}
PATHS "${CROSS_ROOTFS}/cross-tools-x86_64/bin"
NAMES
"${TOOLSET_PREFIX}${exec}${CLR_CMAKE_COMPILER_FILE_NAME_VERSION}"
"${TOOLSET_PREFIX}${exec}")
Expand Down
6 changes: 3 additions & 3 deletions eng/config/PublishData.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"vsBranch": "main",
"vsMajorVersion": 17,
"insertionCreateDraftPR": false,
"insertionTitlePrefix": "[17.8P2]"
"insertionTitlePrefix": "[17.8P3]"
},
"release/dev17.5": {
"nugetKind": [
Expand Down Expand Up @@ -44,8 +44,8 @@
],
"vsBranch": "rel/d17.8",
"vsMajorVersion": 17,
"insertionCreateDraftPR": false,
"insertionTitlePrefix": "[17.8P1]"
"insertionCreateDraftPR": true,
"insertionTitlePrefix": "[17.8P2]"
}
}
}
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"rollForward": "latestPatch"
},
"msbuild-sdks": {
"Microsoft.DotNet.Arcade.Sdk": "8.0.0-beta.23422.1",
"Microsoft.DotNet.Arcade.Sdk": "8.0.0-beta.23451.1",
"Yarn.MSBuild": "1.22.10"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"


#line default
#line hidden
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"


#line default
#line hidden
}
#pragma warning restore 1998
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,17 @@
HtmlContent - (85:1,0 [2] IncompleteDirectives.cshtml)
LazyIntermediateToken - (85:1,0 [2] IncompleteDirectives.cshtml) - Html - \n
MalformedDirective - (87:2,0 [6] IncompleteDirectives.cshtml) - model
CSharpCode - (93:2,6 [0] IncompleteDirectives.cshtml)
LazyIntermediateToken - (93:2,6 [0] IncompleteDirectives.cshtml) - CSharp -
HtmlContent - (93:2,6 [2] IncompleteDirectives.cshtml)
LazyIntermediateToken - (93:2,6 [2] IncompleteDirectives.cshtml) - Html - \n
MalformedDirective - (95:3,0 [7] IncompleteDirectives.cshtml) - model
DirectiveToken - (102:3,7 [0] IncompleteDirectives.cshtml) -
HtmlContent - (102:3,7 [4] IncompleteDirectives.cshtml)
LazyIntermediateToken - (102:3,7 [4] IncompleteDirectives.cshtml) - Html - \n\n
MalformedDirective - (106:5,0 [7] IncompleteDirectives.cshtml) - inject
CSharpCode - (113:5,7 [0] IncompleteDirectives.cshtml)
LazyIntermediateToken - (113:5,7 [0] IncompleteDirectives.cshtml) - CSharp -
HtmlContent - (113:5,7 [2] IncompleteDirectives.cshtml)
LazyIntermediateToken - (113:5,7 [2] IncompleteDirectives.cshtml) - Html - \n
MalformedDirective - (115:6,0 [8] IncompleteDirectives.cshtml) - inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,13 @@ Source Location: (133:7,8 [17] TestFiles/IntegrationTests/CodeGenerationIntegrat
Generated Location: (1180:35,0 [17] )
|MyService<TModel>|

Source Location: (93:2,6 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
||
Generated Location: (1680:50,6 [0] )
||

Source Location: (113:5,7 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
||
Generated Location: (1816:55,7 [0] )
||

Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,21 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"


#line default
#line hidden
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"


#line default
#line hidden
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"


#line default
#line hidden
}
#pragma warning restore 1998
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,17 @@
HtmlContent - (108:4,6 [5] IncompleteDirectives.cshtml)
LazyIntermediateToken - (108:4,6 [5] IncompleteDirectives.cshtml) - Html - "\n\n
MalformedDirective - (113:6,0 [6] IncompleteDirectives.cshtml) - model
CSharpCode - (119:6,6 [0] IncompleteDirectives.cshtml)
LazyIntermediateToken - (119:6,6 [0] IncompleteDirectives.cshtml) - CSharp -
HtmlContent - (119:6,6 [2] IncompleteDirectives.cshtml)
LazyIntermediateToken - (119:6,6 [2] IncompleteDirectives.cshtml) - Html - \n
MalformedDirective - (121:7,0 [7] IncompleteDirectives.cshtml) - model
DirectiveToken - (128:7,7 [0] IncompleteDirectives.cshtml) -
HtmlContent - (128:7,7 [4] IncompleteDirectives.cshtml)
LazyIntermediateToken - (128:7,7 [4] IncompleteDirectives.cshtml) - Html - \n\n
MalformedDirective - (132:9,0 [7] IncompleteDirectives.cshtml) - inject
CSharpCode - (139:9,7 [0] IncompleteDirectives.cshtml)
LazyIntermediateToken - (139:9,7 [0] IncompleteDirectives.cshtml) - CSharp -
HtmlContent - (139:9,7 [2] IncompleteDirectives.cshtml)
LazyIntermediateToken - (139:9,7 [2] IncompleteDirectives.cshtml) - Html - \n
MalformedDirective - (141:10,0 [8] IncompleteDirectives.cshtml) - inject
Expand All @@ -59,6 +63,8 @@
HtmlContent - (176:11,25 [4] IncompleteDirectives.cshtml)
LazyIntermediateToken - (176:11,25 [4] IncompleteDirectives.cshtml) - Html - \n\n
MalformedDirective - (180:13,0 [10] IncompleteDirectives.cshtml) - namespace
CSharpCode - (190:13,10 [0] IncompleteDirectives.cshtml)
LazyIntermediateToken - (190:13,10 [0] IncompleteDirectives.cshtml) - CSharp -
HtmlContent - (190:13,10 [2] IncompleteDirectives.cshtml)
LazyIntermediateToken - (190:13,10 [2] IncompleteDirectives.cshtml) - Html - \n
MalformedDirective - (192:14,0 [11] IncompleteDirectives.cshtml) - namespace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,18 @@ Source Location: (203:14,11 [0] TestFiles/IntegrationTests/CodeGenerationIntegra
Generated Location: (1412:43,0 [0] )
||

Source Location: (119:6,6 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
||
Generated Location: (1872:58,6 [0] )
||

Source Location: (139:9,7 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
||
Generated Location: (2009:63,7 [0] )
||

Source Location: (190:13,10 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
||
Generated Location: (2149:68,10 [0] )
||

Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
CSharpCode -
IntermediateToken - - CSharp - EndContext();
MalformedDirective - (113:6,0 [6] IncompleteDirectives.cshtml) - model
CSharpCode - (119:6,6 [0] IncompleteDirectives.cshtml)
LazyIntermediateToken - (119:6,6 [0] IncompleteDirectives.cshtml) - CSharp -
CSharpCode -
IntermediateToken - - CSharp - BeginContext(119, 2, true);
HtmlContent - (119:6,6 [2] IncompleteDirectives.cshtml)
Expand All @@ -43,6 +45,8 @@
CSharpCode -
IntermediateToken - - CSharp - EndContext();
MalformedDirective - (132:9,0 [7] IncompleteDirectives.cshtml) - inject
CSharpCode - (139:9,7 [0] IncompleteDirectives.cshtml)
LazyIntermediateToken - (139:9,7 [0] IncompleteDirectives.cshtml) - CSharp -
CSharpCode -
IntermediateToken - - CSharp - BeginContext(139, 2, true);
HtmlContent - (139:9,7 [2] IncompleteDirectives.cshtml)
Expand All @@ -66,6 +70,8 @@
CSharpCode -
IntermediateToken - - CSharp - EndContext();
MalformedDirective - (180:13,0 [10] IncompleteDirectives.cshtml) - namespace
CSharpCode - (190:13,10 [0] IncompleteDirectives.cshtml)
LazyIntermediateToken - (190:13,10 [0] IncompleteDirectives.cshtml) - CSharp -
CSharpCode -
IntermediateToken - - CSharp - BeginContext(190, 2, true);
HtmlContent - (190:13,10 [2] IncompleteDirectives.cshtml)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class TestFiles_IntegrationTests_InstrumentationPassIntegrationTest_Basic
EndContext();
BeginContext(61, 7, false);
BeginContext(61, 7, false);
#line (3,3)-(3,10) 6 "TestFiles/IntegrationTests/InstrumentationPassIntegrationTest/BasicTest.cshtml"
#line (3,2)-(3,9) 6 "TestFiles/IntegrationTests/InstrumentationPassIntegrationTest/BasicTest.cshtml"
Write("Hello");

#line default
Expand Down Expand Up @@ -127,7 +127,7 @@ public class TestFiles_IntegrationTests_InstrumentationPassIntegrationTest_Basic
EndContext();
BeginContext(217, 29, false);
BeginContext(217, 29, false);
#line (9,2)-(9,6) 6 "TestFiles/IntegrationTests/InstrumentationPassIntegrationTest/BasicTest.cshtml"
#line (9,1)-(9,5) 6 "TestFiles/IntegrationTests/InstrumentationPassIntegrationTest/BasicTest.cshtml"
Write(Foo(item => new global::Microsoft.AspNetCore.Mvc.Razor.HelperResult(async(__razor_template_writer) => {
PushWriter(__razor_template_writer);
BeginContext(222, 24, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
);
__builder.AddMarkupContent(2, "\r\n Hello world\r\n ");
#nullable restore
#line (4,6)-(4,35) 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent.cshtml"
#line (4,5)-(4,34) 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent.cshtml"
__builder.AddContent(3, string.Format("{0}", "Hello"));

#line default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Basic : gl
WriteLiteral("<div");
BeginWriteAttribute("class", " class=\"", 4, "\"", 28, 1);
#nullable restore
#line (1,13)-(1,29) 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml"
#line (1,12)-(1,28) 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml"
WriteAttributeValue("", 12, this.ToString(), 12, 16, false);

#line default
Expand All @@ -34,7 +34,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Basic : gl
EndWriteAttribute();
WriteLiteral(">\r\n Hello world\r\n ");
#nullable restore
#line (3,6)-(3,35) 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml"
#line (3,5)-(3,34) 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml"
Write(string.Format("{0}", "Hello"));

#line default
Expand All @@ -61,7 +61,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Basic : gl
#line hidden
#nullable disable
#nullable restore
#line (8,31)-(8,34) 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml"
#line (8,30)-(8,33) 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml"
Write(cls);

#line default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,27 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"


#line default
#line hidden
#nullable disable
#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"


#line default
#line hidden
#nullable disable
#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"


#line default
#line hidden
#nullable disable
}
#pragma warning restore 1998
#nullable restore
Expand Down
Loading

0 comments on commit 4258f88

Please sign in to comment.