Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/tasks
diff options
context:
space:
mode:
authorAnkit Jain <radical@gmail.com>2022-09-07 00:46:42 +0300
committerGitHub <noreply@github.com>2022-09-07 00:46:42 +0300
commit9dda76511887faec0f5cc65d1e305be839a2dcbc (patch)
treeb567bd50246c76b33a35a48374cff1c91ed43764 /src/tasks
parent9b50564593c9f68e5eb0dfc973756ff2616eeb60 (diff)
[release/7.0][wasm] Use the correct runtime pack version when the workload is not installed (#75028)
* Mono.ToolChain: WorkloadManifest.targets - Set runtime pack version even .. if no workload is installed. This ensures that the correct runtime pack version (intended by the installed manifest) is used even if the workload is not installed. * Improve incremental builds for workload installs used for testing * [wasm] Add a check for blazor projects, to confirm that the correct .. runtime pack version is being used. To use the locally built runtime pack without the workload, we need the nuget, so we use that from the artifacts. * [wasm] Add built nugets as payload for WBT * Fix built-nugets payload * [wasm] Allow setting browser path for use with xharness via envvar
Diffstat (limited to 'src/tasks')
-rw-r--r--src/tasks/WorkloadBuildTasks/InstallWorkloadFromArtifacts.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tasks/WorkloadBuildTasks/InstallWorkloadFromArtifacts.cs b/src/tasks/WorkloadBuildTasks/InstallWorkloadFromArtifacts.cs
index 1e77d5905f5..f4763c1b761 100644
--- a/src/tasks/WorkloadBuildTasks/InstallWorkloadFromArtifacts.cs
+++ b/src/tasks/WorkloadBuildTasks/InstallWorkloadFromArtifacts.cs
@@ -97,6 +97,8 @@ namespace Microsoft.Workload.Build.Tasks
if (!ExecuteInternal(req) && !req.IgnoreErrors)
return false;
+
+ File.WriteAllText(req.StampPath, string.Empty);
}
return !Log.HasLoggedErrors;
@@ -399,6 +401,7 @@ namespace Microsoft.Workload.Build.Tasks
public string ManifestName => Workload.GetMetadata("ManifestName");
public string Version => Workload.GetMetadata("Version");
public string TargetPath => Target.GetMetadata("InstallPath");
+ public string StampPath => Target.GetMetadata("StampPath");
public bool IgnoreErrors => Workload.GetMetadata("IgnoreErrors").ToLowerInvariant() == "true";
public string WorkloadId => Workload.ItemSpec;