Skip to content

Commit

Permalink
[main] Update dependencies from dotnet/msbuild (#44977)
Browse files Browse the repository at this point in the history
[main] Update dependencies from dotnet/msbuild


 - Created a follow up ticket, skipping affected tests to unblock merging for now.

 - forgot to skip one test

 - Merge branch 'main' into darc-main-18ac571e-b280-4bd1-b026-1167471dd6fa

 - Merge branch 'main' into darc-main-18ac571e-b280-4bd1-b026-1167471dd6fa

 - Revert "forgot to skip one test"

This reverts commit efab774.

 - Revert "Created a follow up ticket, skipping affected tests to unblock merging for now."

This reverts commit 00cdbad.

 - Merge branch 'main' into darc-main-18ac571e-b280-4bd1-b026-1167471dd6fa

 - Merge branch 'main' into darc-main-18ac571e-b280-4bd1-b026-1167471dd6fa

 - MSBuild supports custom cultures

 - Separate FullFW and Core test cases

 - Fix multiple attributes

 - Merge branch 'darc-main-18ac571e-b280-4bd1-b026-1167471dd6fa' of https://github.com/dotnet/sdk into darc-main-18ac571e-b280-4bd1-b026-1167471dd6fa
  • Loading branch information
dotnet-maestro[bot] authored Dec 4, 2024
1 parent 363ff49 commit f2ae697
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 9 deletions.
12 changes: 6 additions & 6 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,18 @@
<Sha>6755ffefdb9899c08738941d7498d880bc25e52d</Sha>
<SourceBuild RepoName="emsdk" ManagedOnly="true" />
</Dependency>
<Dependency Name="Microsoft.Build" Version="17.13.0-preview-24568-05">
<Dependency Name="Microsoft.Build" Version="17.13.0-preview-24604-04">
<Uri>https://github.com/dotnet/msbuild</Uri>
<Sha>37fc8280dd8516257e7d04b9fc5e426de33091f2</Sha>
<Sha>5491064fe8d18c8f73d8b6048d277c3ec8b81d31</Sha>
</Dependency>
<Dependency Name="Microsoft.Build.Localization" Version="17.13.0-preview-24568-05">
<Dependency Name="Microsoft.Build.Localization" Version="17.13.0-preview-24604-04">
<Uri>https://github.com/dotnet/msbuild</Uri>
<Sha>37fc8280dd8516257e7d04b9fc5e426de33091f2</Sha>
<Sha>5491064fe8d18c8f73d8b6048d277c3ec8b81d31</Sha>
</Dependency>
<!-- Intermediate is necessary for source build. -->
<Dependency Name="Microsoft.SourceBuild.Intermediate.msbuild" Version="17.13.0-preview-24568-05">
<Dependency Name="Microsoft.SourceBuild.Intermediate.msbuild" Version="17.13.0-preview-24604-04">
<Uri>https://github.com/dotnet/msbuild</Uri>
<Sha>37fc8280dd8516257e7d04b9fc5e426de33091f2</Sha>
<Sha>5491064fe8d18c8f73d8b6048d277c3ec8b81d31</Sha>
<SourceBuild RepoName="msbuild" ManagedOnly="true" />
</Dependency>
<Dependency Name="Microsoft.FSharp.Compiler" Version="13.9.200-beta.24578.1">
Expand Down
4 changes: 2 additions & 2 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@
then use that in Directory.Packages.props.
At usage sites, either we use MicrosoftBuildMinimumVersion, or MicrosoftBuildVersion in source-only modes. -->
<MicrosoftBuildVersion>17.13.0-preview-24568-05</MicrosoftBuildVersion>
<MicrosoftBuildLocalizationVersion>17.13.0-preview-24568-05</MicrosoftBuildLocalizationVersion>
<MicrosoftBuildVersion>17.13.0-preview-24604-04</MicrosoftBuildVersion>
<MicrosoftBuildLocalizationVersion>17.13.0-preview-24604-04</MicrosoftBuildLocalizationVersion>
<MicrosoftBuildMinimumVersion Condition="Exists('$(RepoRoot)src\Layout\redist\minimumMSBuildVersion') and '$(DotNetBuildSourceOnly)' != 'true'">$([System.IO.File]::ReadAllText('$(RepoRoot)src\Layout\redist\minimumMSBuildVersion').Trim())</MicrosoftBuildMinimumVersion>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,32 @@ public void SupportRespectAlreadyAssignedItemCulture_ByDefault_ForDotnet9(string
new FileInfo(Path.Combine(outputDirectory, "test-2", "MSBuildCultureResourceGeneration.resources.dll")).Should().Exist();
}

[Theory]
[InlineData("net7.0")]
[InlineData("net6.0")]
[CoreMSBuildOnlyTheory]
public void SupportRespectAlreadyAssignedItemCulture_IsNotSupported_BuildShouldWarn(string targetFramework)
{
var testAsset = _testAssetsManager
.CopyTestAsset("MSBuildCultureResourceGeneration", identifier: targetFramework)
.WithSource()
.WithTargetFramework(targetFramework);

var buildCommand = new BuildCommand(testAsset);
// Custom culture is allowed, but if set explicitly and overwritten - a warning is issued.
buildCommand.Execute().Should().Pass().And
// warning MSB3002: Explicitly set culture "test-1" for item "Resources.test-1.resx" was overwritten with inferred culture "", because 'RespectAlreadyAssignedItemCulture' property was not set.
.HaveStdOutContaining("warning MSB3002:");
}

[InlineData("net7.0")]
[InlineData("net6.0")]
[FullMSBuildOnlyTheory]
// Is this Failing? Is full FW MSBuild already on 17.13? Then remove this test and remove `[CoreMSBuildOnlyTheory]` attribute on the test above
//
// Until MSBuild 17.13 is merged into FullFW MSBuild in sdk tests - the test will fail, as
// proper recognition of custom cultures in RAR is not supported and hence the build will fail during copy:
//
// Microsoft.Common.CurrentVersion.targets(4959,5): error MSB3030: Could not copy the file "obj\Debug\net7.0\test-1\MSBuildCultureResourceGeneration.resources.dll" because it was not found.
public void SupportRespectAlreadyAssignedItemCulture_IsNotSupported_BuildShouldFail(string targetFramework)
{
var testAsset = _testAssetsManager
Expand Down

0 comments on commit f2ae697

Please sign in to comment.