diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml
index e6ae535d3..580a3fa64 100644
--- a/eng/Version.Details.xml
+++ b/eng/Version.Details.xml
@@ -20,6 +20,10 @@
https://github.com/dotnet/arcade
2f7acdc5f9b87f260119bb32d01c24d2773773eb
+
+ https://github.com/dotnet/arcade
+ 2f7acdc5f9b87f260119bb32d01c24d2773773eb
+
https://github.com/dotnet/arcade
2f7acdc5f9b87f260119bb32d01c24d2773773eb
diff --git a/eng/Versions.props b/eng/Versions.props
index 4124558fc..90433ab23 100644
--- a/eng/Versions.props
+++ b/eng/Versions.props
@@ -17,7 +17,8 @@
6.9.0-preview.1.64
$(NuGetBuildTasksPackageVersion)
-
+
+ 9.0.0-beta.23615.2
9.0.0-beta.23615.2
9.0.0-beta.23615.2
2.6.1-beta.23615.2
diff --git a/src/Microsoft.DotNet.HotReload.Utils.Generator.BuildTool/Microsoft.DotNet.HotReload.Utils.Generator.BuildTool.csproj b/src/Microsoft.DotNet.HotReload.Utils.Generator.BuildTool/Microsoft.DotNet.HotReload.Utils.Generator.BuildTool.csproj
index 19418efc4..e9108b8c3 100644
--- a/src/Microsoft.DotNet.HotReload.Utils.Generator.BuildTool/Microsoft.DotNet.HotReload.Utils.Generator.BuildTool.csproj
+++ b/src/Microsoft.DotNet.HotReload.Utils.Generator.BuildTool/Microsoft.DotNet.HotReload.Utils.Generator.BuildTool.csproj
@@ -13,6 +13,33 @@
+
+
+
+
+
+ Microsoft.DotNet.HotReload.Utils.Generator.BuildTool.targets.in
+ $(IntermediateOutputPath)Microsoft.DotNet.HotReload.Utils.Generator.BuildTool.targets
+
+
+
+
+
+
+
+
+
+
+ build/Microsoft.DotNet.HotReload.Utils.Generator.BuildTool.targets
+
+
+
+
diff --git a/src/Microsoft.DotNet.HotReload.Utils.Generator.BuildTool/build/Microsoft.DotNet.HotReload.Utils.Generator.BuildTool.targets b/src/Microsoft.DotNet.HotReload.Utils.Generator.BuildTool/Microsoft.DotNet.HotReload.Utils.Generator.BuildTool.targets.in
similarity index 91%
rename from src/Microsoft.DotNet.HotReload.Utils.Generator.BuildTool/build/Microsoft.DotNet.HotReload.Utils.Generator.BuildTool.targets
rename to src/Microsoft.DotNet.HotReload.Utils.Generator.BuildTool/Microsoft.DotNet.HotReload.Utils.Generator.BuildTool.targets.in
index cef3bd37d..41d0c035e 100644
--- a/src/Microsoft.DotNet.HotReload.Utils.Generator.BuildTool/build/Microsoft.DotNet.HotReload.Utils.Generator.BuildTool.targets
+++ b/src/Microsoft.DotNet.HotReload.Utils.Generator.BuildTool/Microsoft.DotNet.HotReload.Utils.Generator.BuildTool.targets.in
@@ -5,11 +5,13 @@
dotnet
- <_HotReloadDeltaGeneratorPath Condition="'$(_HotReloadDeltaGeneratorPath)' == ''">$(MSBuildThisFileDirectory)..\tools\net9.0\Microsoft.DotNet.HotReload.Utils.Generator.BuildTool.dll
+ <_HotReloadDeltaGeneratorTFM Condition="'$(_HotReloadDeltaGeneratorTFM)' == ''">${NetToolCurrent}
+
+ <_HotReloadDeltaGeneratorPath Condition="'$(_HotReloadDeltaGeneratorPath)' == ''">$(MSBuildThisFileDirectory)..\tools\$(_HotReloadDeltaGeneratorTFM)\Microsoft.DotNet.HotReload.Utils.Generator.BuildTool.dll
<_HotReloadDeltaGeneratorCommand>"$(DotNetTool)" "$(_HotReloadDeltaGeneratorPath)"
- <_HotReloadDeltaGeneratorTasksPath Condition="'$(_HotReloadDeltaGeneratorTasksPath)' == ''">$(MSBuildThisFileDirectory)..\tools\net9.0\Microsoft.DotNet.HotReload.Utils.Generator.Tasks.dll
+ <_HotReloadDeltaGeneratorTasksPath Condition="'$(_HotReloadDeltaGeneratorTasksPath)' == ''">$(MSBuildThisFileDirectory)..\tools\$(_HotReloadDeltaGeneratorTFM)\Microsoft.DotNet.HotReload.Utils.Generator.Tasks.dll
diff --git a/src/hotreload-delta-gen/README.md b/src/hotreload-delta-gen/README.md
index 5f3568f17..a2d250cfc 100644
--- a/src/hotreload-delta-gen/README.md
+++ b/src/hotreload-delta-gen/README.md
@@ -25,7 +25,7 @@ Then run the tool as `hotreload-delta-gen` assuming that `${HOME}/.dotnet/tools`
Run `build.sh -restore -build -publish -pack -c Release` from the repo root.
-That will create the executable `artifacts/bin/hotreload-delta-gen/Release/net9.0/publish/hotreload-delta-gen`.
+That will create the executable `artifacts/bin/hotreload-delta-gen/Release//publish/hotreload-delta-gen`.
## How to use it
diff --git a/tests/BuildTool/ImportExplicitly.props b/tests/BuildTool/ImportExplicitly.props
index f787d8b05..6366e3165 100644
--- a/tests/BuildTool/ImportExplicitly.props
+++ b/tests/BuildTool/ImportExplicitly.props
@@ -2,7 +2,9 @@
- $(RepoRoot)src\Microsoft.DotNet.HotReload.Utils.Generator.BuildTool\build\Microsoft.DotNet.HotReload.Utils.Generator.BuildTool.targets
+
+ <_HotReloadDeltaGeneratorTFM>$(NetCurrent)
+ $(RepoRoot)src\Microsoft.DotNet.HotReload.Utils.Generator.BuildTool\Microsoft.DotNet.HotReload.Utils.Generator.BuildTool.targets.in
<_HotReloadDeltaGeneratorPath>$(BaseOutputPath)..\Microsoft.DotNet.HotReload.Utils.Generator.BuildTool\$(Configuration)\$(TargetFramework)\Microsoft.DotNet.HotReload.Utils.Generator.BuildTool.dll
<_HotReloadDeltaGeneratorTasksPath>$(BaseOutputPath)..\Microsoft.DotNet.HotReload.Utils.Generator.Tasks\$(Configuration)\$(TargetFramework)\Microsoft.DotNet.HotReload.Utils.Generator.Tasks.dll
diff --git a/tests/HotReload.Generator/EnC.Tests/TempMSBuildWorkspaceTest.cs b/tests/HotReload.Generator/EnC.Tests/TempMSBuildWorkspaceTest.cs
index 8b3c46301..c26f8e8a2 100644
--- a/tests/HotReload.Generator/EnC.Tests/TempMSBuildWorkspaceTest.cs
+++ b/tests/HotReload.Generator/EnC.Tests/TempMSBuildWorkspaceTest.cs
@@ -92,11 +92,12 @@ private void PrepareGlobalFiles()
protected async Task PrepareProject(CancellationToken cancellationToken = default)
{
- (var solution, var projectId) = await CreateProject("""
+ string targetFramework = $"net{Environment.Version.Major}.{Environment.Version.Minor}";
+ (var solution, var projectId) = await CreateProject($"""
Library
- net9.0
+ {targetFramework}
false