Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
</ItemGroup>
<!-- MSBuild (Nuke.ProjectModel + Nuke.MSBuildTasks) -->
<ItemGroup>
<PackageVersion Include="Microsoft.Build.Locator" Version="1.7.8" />
<PackageVersion Include="Microsoft.Build.Locator" Version="1.11.2" />
<PackageVersion Include="Microsoft.Build" Version="18.0.2" />
<PackageVersion Include="Microsoft.Build.Framework" Version="18.0.2" />
<PackageVersion Include="Microsoft.Build.Tasks.Core" Version="18.0.2" />
Expand Down
2 changes: 2 additions & 0 deletions build/_build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
<NukeTelemetryVersion>1</NukeTelemetryVersion>
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
<IsPackable>false</IsPackable>
<!-- https://github.com/microsoft/MSBuildLocator/blob/main/docs/diagnostics/MSBL001.md -->
<DisableMSBuildAssemblyCopyCheck>true</DisableMSBuildAssemblyCopyCheck>
</PropertyGroup>

<!-- Test properties for MSBuild integration -->
Expand Down
2 changes: 2 additions & 0 deletions source/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<DebugType>embedded</DebugType>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<!-- https://github.com/microsoft/MSBuildLocator/blob/main/docs/diagnostics/MSBL001.md -->
<DisableMSBuildAssemblyCopyCheck>true</DisableMSBuildAssemblyCopyCheck>
</PropertyGroup>

<PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion source/Nuke.ProjectModel.Tests/ProjectModelTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void ProjectTest()

project.GetTargetFrameworks().Should().Equal("net8.0", "net9.0", "net10.0");
project.HasPackageReference("Microsoft.Build.Locator").Should().BeTrue();
project.GetPackageReferenceVersion("Microsoft.Build.Locator").Should().Be("1.7.8");
project.GetPackageReferenceVersion("Microsoft.Build.Locator").Should().Be("1.11.2");
project.GetPackageReferenceVersion("Microsoft.Build").Should().Be("18.0.2");
}

Expand Down
2 changes: 1 addition & 1 deletion source/Nuke.ProjectModel/ProjectModelTasks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static void TriggerAssemblyResolution()
}
catch (Exception)
{
Log.Warning($"Attempting second-chance registration of MSBuild after {nameof(MSBuildLocator.RegisterDefaults)} failed");
Log.Debug($"Attempting second-chance registration of MSBuild after {nameof(MSBuildLocator.RegisterDefaults)} failed");
RegisterMSBuildFromDotNet();
}

Expand Down
Loading