diff --git a/eng/Build.props b/eng/Build.props
index 2820ced151..a948f1c97e 100644
--- a/eng/Build.props
+++ b/eng/Build.props
@@ -1,7 +1,10 @@
-
+
+
+
+
diff --git a/samples/Directory.Build.props b/samples/Directory.Build.props
index 08f044f9e3..5e7c2721a6 100644
--- a/samples/Directory.Build.props
+++ b/samples/Directory.Build.props
@@ -16,6 +16,10 @@
Overwrite
+
+ $(MSBuildThisFileDirectory)\WebApplication.targets
+
+
ASPIRE004;$(NoWarn)
diff --git a/samples/SessionRemote/SessionRemoteAppHost/SessionRemoteAppHost.csproj b/samples/SessionRemote/SessionRemoteAppHost/SessionRemoteAppHost.csproj
index 6278c95e93..1167927a9b 100644
--- a/samples/SessionRemote/SessionRemoteAppHost/SessionRemoteAppHost.csproj
+++ b/samples/SessionRemote/SessionRemoteAppHost/SessionRemoteAppHost.csproj
@@ -4,7 +4,7 @@
Exe
- net9.0-windows
+ net10.0-windows
enable
enable
true
diff --git a/samples/WebApplication.targets b/samples/WebApplication.targets
new file mode 100644
index 0000000000..feec1ab47e
--- /dev/null
+++ b/samples/WebApplication.targets
@@ -0,0 +1,271 @@
+
+
+
+ False
+ True
+ False
+ $(WebProjectOutputDirInsideProjectDefault)
+ False
+ False
+ False
+ True
+ False
+
+
+
+
+ $(MSBuildProjectDirectory)
+ $(OutDir)_PublishedWebsites\$(MSBuildProjectName)
+
+
+
+
+ $(PrepareForRunDependsOn);
+ _CopyBinDeployableAssemblies;
+
+
+ $(PrepareForRunDependsOn);
+ _CopyWebApplication;
+ _BuiltWebOutputGroupOutput
+
+
+
+
+
+
+
+
+ $(CleanDependsOn);
+ CleanWebProjectOutputDir;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ _CopyWebApplicationLegacy;
+
+
+ _WPPCopyWebApplication;
+
+
+ $(OnBefore_CopyWebApplicationDefault);
+
+
+
+
+
+ <_CopyWebApplicationDependsOn Condition="'$(_CopyWebApplicationDependsOn)'==''">
+ $(OnBefore_CopyWebApplication);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ _bin_deployableAssemblies\
+ $([System.IO.Path]::GetFullPath($(BinDeployableFolder)))
+
+
+
+
+
+
+
+
+
+ <_binDeployableAssemblies Include ="@(__binDeployableAssemblies)" Condition="'@(__binDeployableAssemblies)' != ''">
+ $([System.String]::Concat($([System.IO.Path]::GetDirectoryName($([System.String]::new('%(__binDeployableAssemblies.FullPath)')))),'\').SubString($(BinDeployableFolderFullPath.Length)))
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $(MSBuildThisFileDirectory)..\Web\
+
+
+
+
+
+
+ false
+ $(ProjectConfigFileName)
+
+
\ No newline at end of file