Skip to content

Commit

Permalink
[release/9.0.3xx] Update dependencies from dotnet/msbuild (#46358)
Browse files Browse the repository at this point in the history
  • Loading branch information
joeloff authored Feb 4, 2025
2 parents e6366a5 + 6290bf2 commit 8621a6a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
12 changes: 6 additions & 6 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,18 @@
<Sha>763d10a1a251be35337ee736832bfde3f9200672</Sha>
<SourceBuild RepoName="emsdk" ManagedOnly="true" />
</Dependency>
<Dependency Name="Microsoft.Build" Version="17.14.0-preview-25073-02">
<Dependency Name="Microsoft.Build" Version="17.14.0-preview-25081-02">
<Uri>https://github.com/dotnet/msbuild</Uri>
<Sha>291a8108761ed347562228f2f8f25477996a5a93</Sha>
<Sha>7e539c169a657040eeb768e8115c44f1780e59df</Sha>
</Dependency>
<Dependency Name="Microsoft.Build.Localization" Version="17.14.0-preview-25073-02">
<Dependency Name="Microsoft.Build.Localization" Version="17.14.0-preview-25081-02">
<Uri>https://github.com/dotnet/msbuild</Uri>
<Sha>291a8108761ed347562228f2f8f25477996a5a93</Sha>
<Sha>7e539c169a657040eeb768e8115c44f1780e59df</Sha>
</Dependency>
<!-- Intermediate is necessary for source build. -->
<Dependency Name="Microsoft.SourceBuild.Intermediate.msbuild" Version="17.14.0-preview-25073-02">
<Dependency Name="Microsoft.SourceBuild.Intermediate.msbuild" Version="17.14.0-preview-25081-02">
<Uri>https://github.com/dotnet/msbuild</Uri>
<Sha>291a8108761ed347562228f2f8f25477996a5a93</Sha>
<Sha>7e539c169a657040eeb768e8115c44f1780e59df</Sha>
<SourceBuild RepoName="msbuild" ManagedOnly="true" />
</Dependency>
<Dependency Name="Microsoft.FSharp.Compiler" Version="13.9.300-beta.25079.4">
Expand Down
4 changes: 2 additions & 2 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@
At usage sites, either we use MicrosoftBuildMinimumVersion, or MicrosoftBuildVersion in source-only modes.
Additionally, set the MinimumVSVersion for the installer UI that's required for targeting NetCurrent -->
<MicrosoftBuildVersion>17.14.0-preview-25073-02</MicrosoftBuildVersion>
<MicrosoftBuildLocalizationVersion>17.14.0-preview-25073-02</MicrosoftBuildLocalizationVersion>
<MicrosoftBuildVersion>17.14.0-preview-25081-02</MicrosoftBuildVersion>
<MicrosoftBuildLocalizationVersion>17.14.0-preview-25081-02</MicrosoftBuildLocalizationVersion>
<MicrosoftBuildMinimumVersion Condition="'$(DotNetBuildSourceOnly)' != 'true'">17.11.4</MicrosoftBuildMinimumVersion>
<MinimumVSVersion>17.12</MinimumVSVersion>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ public void SupportRespectAlreadyAssignedItemCulture_ByDefault_ForDotnet9(string
new FileInfo(Path.Combine(outputDirectory, "test-2", "MSBuildCultureResourceGeneration.resources.dll")).Should().Exist();
}

[CoreMSBuildOnlyTheory]
[InlineData("net7.0")]
[InlineData("net6.0")]
// Until MSBuild 17.13 is merged into FullFW MSBuild in sdk tests - the WarnOnCultureOverwritten
// is not supported - and the build will fail copy (more details in the last test).
[CoreMSBuildOnlyTheory]
public void SupportRespectAlreadyAssignedItemCulture_IsNotSupported_BuildShouldWarn(string targetFramework)
{
var testAsset = _testAssetsManager
Expand All @@ -39,17 +41,18 @@ public void SupportRespectAlreadyAssignedItemCulture_IsNotSupported_BuildShouldW

var buildCommand = new BuildCommand(testAsset);
// Custom culture is allowed, but if set explicitly and overwritten - a warning is issued.
buildCommand.Execute().Should().Pass().And
// However the warning is explicit opt-in.
buildCommand.Execute("/p:WarnOnCultureOverwritten=true").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:");
}

[FullMSBuildOnlyTheory]
[Theory]
[InlineData("net7.0")]
[InlineData("net6.0")]
// Is this Failing? Is full FW MSBuild already on 17.13? Then remove this test and remove `[CoreMSBuildOnlyTheory]` attribute on the test above
// Is this Failing? Check if WarnOnCultureOverwritten hasn't been made a default opt-in in sdk or MSBuild.
//
// Until MSBuild 17.13 is merged into FullFW MSBuild in sdk tests - the test will fail, as
// Without explicit opt-in via WarnOnCultureOverwritten - 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.
Expand Down

0 comments on commit 8621a6a

Please sign in to comment.