Skip to content

Commit 1ce8671

Browse files
authored
Merge branch 'main' into darc-main-431b4521-7391-4528-be64-d3a6859e9429
2 parents d6c0b90 + d906542 commit 1ce8671

File tree

15 files changed

+89
-44
lines changed

15 files changed

+89
-44
lines changed

eng/Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<ItemGroup Condition="'$(DotNetBuildPass)' == '2' and
1212
'$(OS)' == 'Windows_NT' and
1313
'$(Architecture)' == 'x64'">
14-
<ProjectToBuild Include="$(RepoRoot)src\Installer\redist-installer\projects\VSMSBuildExtensions\VSMSBuildExtensions.csproj" DotNetBuildPass="2" />
15-
<ProjectToBuild Include="$(RepoRoot)src\Installer\redist-installer\projects\VSTemplateLocator\VSTemplateLocator.csproj" DotNetBuildPass="2" />
14+
<ProjectToBuild Include="$(RepoRoot)src\VSMSBuildExtensions\VSMSBuildExtensions.proj" DotNetBuildPass="2" />
15+
<ProjectToBuild Include="$(RepoRoot)src\VSTemplateLocator\VSTemplateLocator.proj" DotNetBuildPass="2" />
1616
</ItemGroup>
1717

1818
</Project>

eng/Version.Details.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -631,14 +631,14 @@
631631
<Uri>https://github.com/dotnet/arcade-services</Uri>
632632
<Sha>127f7b095d9e345f7fb1477c79923b91c4cc9a69</Sha>
633633
</Dependency>
634-
<Dependency Name="Microsoft.DotNet.ScenarioTests.SdkTemplateTests" Version="10.0.0-preview.24579.1">
634+
<Dependency Name="Microsoft.DotNet.ScenarioTests.SdkTemplateTests" Version="10.0.0-preview.24602.1">
635635
<Uri>https://github.com/dotnet/scenario-tests</Uri>
636-
<Sha>f4af05597702ef56e9c68c2e9fd2c1bb6ab3124f</Sha>
636+
<Sha>61173bbe1b4ab5f60e760cca9c5fd7eae6e48546</Sha>
637637
</Dependency>
638638
<!-- Intermediate is necessary for source build. -->
639-
<Dependency Name="Microsoft.SourceBuild.Intermediate.scenario-tests" Version="10.0.0-preview.24579.1">
639+
<Dependency Name="Microsoft.SourceBuild.Intermediate.scenario-tests" Version="10.0.0-preview.24602.1">
640640
<Uri>https://github.com/dotnet/scenario-tests</Uri>
641-
<Sha>f4af05597702ef56e9c68c2e9fd2c1bb6ab3124f</Sha>
641+
<Sha>61173bbe1b4ab5f60e760cca9c5fd7eae6e48546</Sha>
642642
<SourceBuild RepoName="scenario-tests" ManagedOnly="true" />
643643
</Dependency>
644644
<!--

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@
267267
<PropertyGroup Label="Infrastructure and test only dependencies">
268268
<VersionToolsVersion>2.2.0-beta.19072.10</VersionToolsVersion>
269269
<DotnetDebToolVersion>2.0.0</DotnetDebToolVersion>
270-
<MicrosoftDotNetScenarioTestsSdkTemplateTestsVersion>10.0.0-preview.24579.1</MicrosoftDotNetScenarioTestsSdkTemplateTestsVersion>
270+
<MicrosoftDotNetScenarioTestsSdkTemplateTestsVersion>10.0.0-preview.24602.1</MicrosoftDotNetScenarioTestsSdkTemplateTestsVersion>
271271
</PropertyGroup>
272272
<PropertyGroup Label="Manually updated">
273273
<!-- Dependencies from https://github.com/microsoft/MSBuildLocator -->

eng/pipelines/templates/stages/vmr-build.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,10 @@ stages:
347347
# reuseBuildArtifactsFrom:
348348
# - ${{ format('{0}_Mono_Offline_MsftSdk_x64', variables.centOSStreamName) }}
349349

350-
#### VERTICAL BUILD ####
351-
- ${{ if not(parameters.isSourceOnlyBuild) }}:
352-
- stage: VMR_Vertical_Build
353-
displayName: VMR Vertical Build
350+
#### VERTICAL BUILD (Validation) ####
351+
- ${{ if and(not(parameters.isSourceOnlyBuild), or(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['System.TeamProject'], 'internal'))) }}:
352+
- stage: VMR_Vertical_Build_Validation
353+
displayName: VMR Vertical Build Validation
354354
dependsOn: []
355355
variables:
356356
- template: ../variables/vmr-build.yml
@@ -368,7 +368,7 @@ stages:
368368
container: ${{ variables.ubuntuContainer }}
369369
targetOS: linux
370370
targetArchitecture: x64
371-
useDevVersions: true # Use dev versions for CI validation of the experience. If we decide to ship assets from this leg, then we should remove this option.
371+
useDevVersions: true # Use dev versions for CI validation of the experience.
372372
runTests: false # Temporarily do not run tests. The nuget comparison fails for some non-obvious reason and needs further investigation. Mostly, I'm not sure why it ever passed. https://github.com/dotnet/sdk/issues/42920
373373

374374
- template: ../jobs/vmr-build.yml
@@ -391,9 +391,20 @@ stages:
391391
pool: ${{ parameters.pool_Windows }}
392392
targetOS: windows
393393
targetArchitecture: x64
394-
useDevVersions: true # Use dev versions for CI validation of the experience. If we decide to ship assets from this leg, then we should remove this option.
394+
useDevVersions: true # Use dev versions for CI validation of the experience.
395395
runTests: false # Temporarily do not run tests. The nuget comparison fails for some non-obvious reason and needs further investigation. Mostly, I'm not sure why it ever passed. https://github.com/dotnet/sdk/issues/42920
396396

397+
#### VERTICAL BUILD (Official) ####
398+
- ${{ if not(parameters.isSourceOnlyBuild) }}:
399+
- stage: VMR_Vertical_Build
400+
displayName: VMR Vertical Build
401+
dependsOn: []
402+
variables:
403+
- template: ../variables/vmr-build.yml
404+
parameters:
405+
vmrBranch: ${{ parameters.vmrBranch }}
406+
jobs:
407+
397408
- template: ../jobs/vmr-build.yml
398409
parameters:
399410
buildName: Windows

sdk.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "finalizer-build", "src\Inst
499499
EndProject
500500
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "redist-installer", "src\Installer\redist-installer\redist-installer.csproj", "{FAADC193-BA41-449D-97CE-0EF82836046A}"
501501
EndProject
502-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VSTemplateLocator", "src\Installer\redist-installer\projects\VSTemplateLocator\VSTemplateLocator.csproj", "{0CBA5FB8-71A3-457A-89F3-E52B9602164A}"
502+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VSTemplateLocator", "src\VSTemplateLocator\VSTemplateLocator.proj", "{0CBA5FB8-71A3-457A-89F3-E52B9602164A}"
503503
EndProject
504504
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "core-sdk-tasks.Tests", "test\core-sdk-tasks.Tests\core-sdk-tasks.Tests.csproj", "{21C21975-84C1-4A24-8E21-F7EC790A4584}"
505505
EndProject
@@ -511,7 +511,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Net.Sdk.Compilers
511511
EndProject
512512
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.WebTools.AspireService.Tests", "test\Microsoft.WebTools.AspireService.Tests\Microsoft.WebTools.AspireService.Tests.csproj", "{1F0B4B3C-DC88-4740-B04F-1707102E9930}"
513513
EndProject
514-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VSMSBuildExtensions", "src\Installer\redist-installer\projects\VSMSBuildExtensions\VSMSBuildExtensions.csproj", "{D9617F63-15F4-4CA2-8ECF-728A94B45D82}"
514+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VSMSBuildExtensions", "src\VSMSBuildExtensions\VSMSBuildExtensions.proj", "{D9617F63-15F4-4CA2-8ECF-728A94B45D82}"
515515
EndProject
516516
Global
517517
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</ItemGroup>
2626

2727
<!-- Shared infra to build and use the BuildCoreSdkTasks -->
28-
<Import Project="..\..\targets\BuildCoreSdkTasks.targets" />
28+
<Import Project="$(RepoRoot)src\Installer\redist-installer\targets\BuildCoreSdkTasks.targets" />
2929

3030
<Target Name="GenerateLayout" Condition="'$(IsPackable)' == 'true'" DependsOnTargets="BuildCoreSdkTasks;ResolveProjectReferences">
3131
<PropertyGroup>

src/VirtualMonoRepo/source-mappings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@
112112
},
113113
{
114114
"name": "scenario-tests",
115-
"defaultRemote": "https://github.com/dotnet/scenario-tests"
115+
"defaultRemote": "https://github.com/dotnet/scenario-tests",
116+
"disableSynchronization": true
116117
},
117118
{
118119
"name": "sdk",

template_feed/Microsoft.DotNet.Common.ItemTemplates/content/EditorConfig/Dotnet/.editorconfig

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@ root = true
55
indent_style = space
66

77
# Xml files
8-
[*.{xml,props,targets}]
8+
[*.xml]
9+
indent_size = 2
10+
11+
# Xml project files
12+
[*.{csproj,fsproj,vbproj,proj}]
13+
indent_size = 2
14+
15+
# Xml config files
16+
[*.{props,targets,config,nuspec}]
917
indent_size = 2
1018

1119
# C# files

test/Microsoft.NET.Build.Containers.IntegrationTests/CreateNewImageTests.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public CreateNewImageTests(ITestOutputHelper testOutput)
2020
_testOutput = testOutput;
2121
}
2222

23-
[DockerAvailableFact(Skip = "https://github.com/dotnet/sdk/issues/42850")]
23+
[DockerAvailableFact]
2424
public void CreateNewImage_Baseline()
2525
{
2626
DirectoryInfo newProjectDir = new(GetTestDirectoryName());
@@ -70,7 +70,7 @@ private static ImageConfig GetImageConfigFromTask(CreateNewImage task)
7070
return new(task.GeneratedContainerConfiguration);
7171
}
7272

73-
[DockerAvailableFact(Skip = "https://github.com/dotnet/sdk/issues/42850")]
73+
[DockerAvailableFact]
7474
public void ParseContainerProperties_EndToEnd()
7575
{
7676
DirectoryInfo newProjectDir = new(GetTestDirectoryName());
@@ -133,7 +133,7 @@ public void ParseContainerProperties_EndToEnd()
133133
/// <summary>
134134
/// Creates a console app that outputs the environment variable added to the image.
135135
/// </summary>
136-
[DockerAvailableFact(Skip = "https://github.com/dotnet/sdk/issues/42850")]
136+
[DockerAvailableFact]
137137
public void Tasks_EndToEnd_With_EnvironmentVariable_Validation()
138138
{
139139
DirectoryInfo newProjectDir = new(GetTestDirectoryName());
@@ -151,6 +151,8 @@ public void Tasks_EndToEnd_With_EnvironmentVariable_Validation()
151151
.Execute()
152152
.Should().Pass();
153153

154+
EndToEndTests.ChangeTargetFrameworkAfterAppCreation(newProjectDir.FullName);
155+
154156
File.WriteAllText(Path.Combine(newProjectDir.FullName, "Program.cs"), $"Console.Write(Environment.GetEnvironmentVariable(\"GoodEnvVar\"));");
155157

156158
new DotnetCommand(_testOutput, "build", "--configuration", "release", "/p:runtimeidentifier=linux-x64", $"/p:RuntimeFrameworkVersion={DockerRegistryManager.RuntimeFrameworkVersion}")
@@ -191,7 +193,7 @@ public void Tasks_EndToEnd_With_EnvironmentVariable_Validation()
191193
cni.BaseImageTag = pcp.ParsedContainerTag;
192194
cni.Repository = pcp.NewContainerRepository;
193195
cni.OutputRegistry = pcp.NewContainerRegistry;
194-
cni.PublishDirectory = Path.Combine(newProjectDir.FullName, "bin", "release", ToolsetInfo.CurrentTargetFramework, "linux-x64");
196+
cni.PublishDirectory = Path.Combine(newProjectDir.FullName, "bin", "release", EndToEndTests._oldFramework, "linux-x64");
195197
cni.WorkingDirectory = "/app";
196198
cni.Entrypoint = new TaskItem[] { new($"/app/{newProjectDir.Name}") };
197199
cni.ImageTags = pcp.NewContainerTags;
@@ -216,7 +218,7 @@ public void Tasks_EndToEnd_With_EnvironmentVariable_Validation()
216218
.And.HaveStdOut("Foo");
217219
}
218220

219-
[DockerAvailableFact(Skip = "https://github.com/dotnet/sdk/issues/42850")]
221+
[DockerAvailableFact]
220222
public async System.Threading.Tasks.Task CreateNewImage_RootlessBaseImage()
221223
{
222224
const string RootlessBase = "dotnet/rootlessbase";

0 commit comments

Comments
 (0)