Skip to content

Commit 1dc58f1

Browse files
author
Jason Zhai
committed
Merge branch 'release/7.0.4xx'
2 parents 69222f7 + 6ebcfec commit 1dc58f1

File tree

6 files changed

+24
-25
lines changed

6 files changed

+24
-25
lines changed

NuGet.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
<!-- Begin: Package sources from dotnet-runtime -->
1313
<!-- End: Package sources from dotnet-runtime -->
1414
<!-- Begin: Package sources from dotnet-templating -->
15+
<add key="darc-pub-dotnet-templating-aebad5e" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-templating-aebad5e6/nuget/v3/index.json" />
16+
<add key="darc-pub-dotnet-templating-aebad5e-1" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-templating-aebad5e6-1/nuget/v3/index.json" />
1517
<!-- End: Package sources from dotnet-templating -->
1618
<!-- Begin: Package sources from dotnet-windowsdesktop -->
1719
<!-- End: Package sources from dotnet-windowsdesktop -->

eng/Version.Details.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@
4343
<Uri>https://github.com/dotnet/runtime</Uri>
4444
<Sha>ab2b80d06dd4d997df5ffa72a3c4a99cb36ccbff</Sha>
4545
</Dependency>
46-
<Dependency Name="Microsoft.Build" Version="17.7.0-preview-23217-02">
46+
<Dependency Name="Microsoft.Build" Version="17.7.0-preview-23221-02">
4747
<Uri>https://github.com/dotnet/msbuild</Uri>
48-
<Sha>2cbc8b6aef648cf21c6a68a0dab7fe09a614e475</Sha>
48+
<Sha>ac3f5ad89f3f04d080986607d504a838ed622fb9</Sha>
4949
<SourceBuild RepoName="msbuild" ManagedOnly="true" />
5050
</Dependency>
51-
<Dependency Name="Microsoft.Build.Localization" Version="17.7.0-preview-23217-02">
51+
<Dependency Name="Microsoft.Build.Localization" Version="17.7.0-preview-23221-02">
5252
<Uri>https://github.com/dotnet/msbuild</Uri>
53-
<Sha>2cbc8b6aef648cf21c6a68a0dab7fe09a614e475</Sha>
53+
<Sha>ac3f5ad89f3f04d080986607d504a838ed622fb9</Sha>
5454
</Dependency>
55-
<Dependency Name="Microsoft.SourceBuild.Intermediate.msbuild" Version="17.7.0-preview-23217-02">
55+
<Dependency Name="Microsoft.SourceBuild.Intermediate.msbuild" Version="17.7.0-preview-23221-02">
5656
<Uri>https://github.com/dotnet/msbuild</Uri>
57-
<Sha>2cbc8b6aef648cf21c6a68a0dab7fe09a614e475</Sha>
57+
<Sha>ac3f5ad89f3f04d080986607d504a838ed622fb9</Sha>
5858
</Dependency>
5959
<Dependency Name="Microsoft.FSharp.Compiler" Version="12.5.0-beta.23221.1">
6060
<Uri>https://github.com/dotnet/fsharp</Uri>

eng/Versions.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
</PropertyGroup>
101101
<PropertyGroup>
102102
<!-- Dependencies from https://github.com/Microsoft/msbuild -->
103-
<MicrosoftBuildPackageVersion>17.7.0-preview-23217-02</MicrosoftBuildPackageVersion>
103+
<MicrosoftBuildPackageVersion>17.7.0-preview-23221-02</MicrosoftBuildPackageVersion>
104104
<MicrosoftBuildCurrentPackageVersion>$(MicrosoftBuildPackageVersion)</MicrosoftBuildCurrentPackageVersion>
105105
<!-- Some tasks and the resolver will need to run in an MSBuild that is older than the very latest,
106106
so target one that matches the version in minimumMSBuildVersion.
@@ -109,7 +109,7 @@
109109
<MicrosoftBuildPackageVersion Condition="exists('$(RepoRoot)\src\Layout\redist\minimumMSBuildVersion') and '$(DotNetBuildFromSource)' != 'true'">$([System.IO.File]::ReadAllText('$(RepoRoot)\src\Layout\redist\minimumMSBuildVersion').Trim())</MicrosoftBuildPackageVersion>
110110
<MicrosoftBuildFrameworkPackageVersion>$(MicrosoftBuildPackageVersion)</MicrosoftBuildFrameworkPackageVersion>
111111
<MicrosoftBuildRuntimePackageVersion>$(MicrosoftBuildPackageVersion)</MicrosoftBuildRuntimePackageVersion>
112-
<MicrosoftBuildLocalizationPackageVersion>17.7.0-preview-23217-02</MicrosoftBuildLocalizationPackageVersion>
112+
<MicrosoftBuildLocalizationPackageVersion>17.7.0-preview-23221-02</MicrosoftBuildLocalizationPackageVersion>
113113
<MicrosoftBuildUtilitiesCorePackageVersion>$(MicrosoftBuildPackageVersion)</MicrosoftBuildUtilitiesCorePackageVersion>
114114
<MicrosoftBuildTasksCorePackageVersion>$(MicrosoftBuildPackageVersion)</MicrosoftBuildTasksCorePackageVersion>
115115
<MicrosoftBuildVersion>$(MicrosoftBuildPackageVersion)</MicrosoftBuildVersion>

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.TargetFrameworkInference.targets

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,4 +234,9 @@ Copyright (c) .NET Foundation. All rights reserved.
234234
<!-- Hook for processing after target framework parsing (for example to customize output paths) -->
235235
<Import Project="$(AfterTargetFrameworkInferenceTargets)" Condition="$(AfterTargetFrameworkInferenceTargets) != ''" />
236236

237+
<PropertyGroup>
238+
<ProduceReferenceAssembly Condition="'$(ProduceReferenceAssembly)' == '' and '$(TargetFrameworkIdentifier)' == '.NETCoreApp' and $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), 5.0)) and ('$(ProduceOnlyReferenceAssembly)' != 'true') and '$(MSBuildProjectExtension)' != '.fsproj'" >true</ProduceReferenceAssembly>
239+
<ProduceReferenceAssembly Condition="'$(ProduceReferenceAssembly)' == '' and '$(TargetFrameworkIdentifier)' == '.NETCoreApp' and $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), 7.0)) and ('$(ProduceOnlyReferenceAssembly)' != 'true') and '$(MSBuildProjectExtension)' == '.fsproj'" >true</ProduceReferenceAssembly>
240+
</PropertyGroup>
241+
237242
</Project>

src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildANetCoreApp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ public void It_errors_when_publishing_single_file_without_apphost()
881881
.Pass();
882882
}
883883

884-
[RequiresMSBuildVersionTheory("17.7.0")]
884+
[Theory]
885885
[InlineData(true)]
886886
[InlineData(false)]
887887
public void It_builds_the_project_successfully_with_only_reference_assembly_set(bool produceOnlyReferenceAssembly)

src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToProduceReferenceAssembly.cs

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using Xunit.Abstractions;
1010
using Microsoft.NET.TestFramework.Assertions;
1111
using Microsoft.NET.TestFramework.ProjectConstruction;
12+
using System.Collections.Generic;
1213

1314
namespace Microsoft.NET.Build.Tests
1415
{
@@ -17,35 +18,26 @@ public class GivenThatWeWantToProduceReferenceAssembly : SdkTest
1718
public GivenThatWeWantToProduceReferenceAssembly(ITestOutputHelper log) : base(log)
1819
{}
1920

20-
[RequiresMSBuildVersionTheory("17.7.0")]
21-
[InlineData("netcoreapp3.1", ".csproj")]
22-
[InlineData("net5.0", ".csproj")]
23-
[InlineData("net5.0", ".fsproj")]
24-
[InlineData("net6.0", ".csproj")]
25-
[InlineData("net6.0", ".fsproj")]
26-
[InlineData("net7.0", ".csproj")]
27-
[InlineData("net7.0", ".fsproj")]
28-
#pragma warning disable xUnit1025 // InlineData duplicates
29-
[InlineData(ToolsetInfo.CurrentTargetFramework, ".csproj")]
30-
[InlineData(ToolsetInfo.CurrentTargetFramework, ".fsproj")]
31-
#pragma warning restore xUnit1025 // InlineData duplicates
32-
public void It_produces_ref_assembly_for_appropriate_frameworks(string targetFramework, string extension)
21+
[RequiresMSBuildVersionTheory("16.8.0")]
22+
[InlineData("netcoreapp3.1", false)]
23+
[InlineData(ToolsetInfo.CurrentTargetFramework, true)]
24+
public void It_produces_ref_assembly_for_appropriate_frameworks(string targetFramework, bool expectedExists)
3325
{
34-
TestProject testProject = new()
26+
TestProject testProject = new TestProject()
3527
{
3628
Name = "ProduceRefAssembly",
3729
IsExe = true,
3830
TargetFrameworks = targetFramework,
3931
};
4032

41-
var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework + extension, targetExtension: extension);
33+
var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework);
4234

4335
var buildCommand = new BuildCommand(testAsset);
4436
buildCommand.Execute()
4537
.Should()
4638
.Pass();
4739
var filePath = Path.Combine(testAsset.Path, testProject.Name, "obj", "Debug", targetFramework, "ref", $"{testProject.Name}.dll");
48-
File.Exists(filePath).Should().BeTrue();
40+
File.Exists(filePath).Should().Be(expectedExists);
4941
}
5042
}
5143
}

0 commit comments

Comments
 (0)