-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Labels
area-Infrastructurebacklog-cleanup-candidateAn inactive issue that has been marked for automated closure.An inactive issue that has been marked for automated closure.no-recent-activity
Description
With dotnet/arcade#7403 merged, dotnet/runtime can use the GenerateFileFromTemplate task to generate files based on templates from within msbuild. Some code places that would benefit from this:
runtime/eng/testing/tests.targets
Lines 96 to 98 in ccec848
<GenerateRunScript RunCommands="@(RunScriptCommands)" TemplatePath="$(RunScriptInputPath)" OutputPath="$(RunScriptOutputPath)" /> <Target Name="GenerateBatchExecutionScript" runtime/src/libraries/pkg/test/testPackages.proj
Lines 118 to 123 in e25f14b
<!-- Generate project.csproj from template. --> <MakeDir Directories="$(_projectDir)" /> <WriteLinesToFile File="$(_projectFile)" Lines="$([System.IO.File]::ReadAllText('$(ProjectTemplate)').Replace('{PackageId}', $(_packageId)).Replace('{PackageVersion}', $(_packageVersion)).Replace('{TargetFrameworks}', $(_projectTFMs)).Replace('{NetCoreAppCurrent}', $(NetCoreAppCurrent)).Replace('{NetCoreAppCurrentVersion}', $(NetCoreAppCurrentVersion)).Replace('{MicrosoftNetCoreAppFrameworkName}', $(MicrosoftNetCoreAppFrameworkName)).Replace('{MicrosoftNetCoreAppRefPackDir}', $(MicrosoftNetCoreAppRefPackDir)).Replace('{RestoreAdditionalProjectSources}', $(ArtifactsPackagesDir)).Replace('{RestorePackagesPath}', $(TestPackageDir)))" Overwrite="true" /> runtime/eng/testing/linker/trimmingTests.targets
Lines 69 to 86 in e25f14b
<MakeDir Directories="$(_projectDir)" /> <WriteLinesToFile File="$(_projectFile)" Lines="$([System.IO.File]::ReadAllText('$(ProjectTemplate)') .Replace('{MicrosoftNETCoreAppVersion}', '$(MicrosoftNETCoreAppVersion)') .Replace('{NetCoreAppCurrent}', '$(NetCoreAppCurrent)') .Replace('{NetCoreAppMaximumVersion}', '$(NetCoreAppMaximumVersion)') .Replace('{TargetingPackDir}','$(MicrosoftNetCoreAppRefPackDir)') .Replace('{RuntimeIdentifier}','%(TestConsoleApps.TestRuntimeIdentifier)') .Replace('{MicrosoftNETILLinkTasksVersion}', '$(MicrosoftNETILLinkTasksVersion)') .Replace('{ExtraTrimmerArgs}', '%(TestConsoleApps.ExtraTrimmerArgs)') .Replace('{AdditionalProjectReferences}', '$(_additionalProjectReferencesString)') .Replace('{RepositoryEngineeringDir}', '$(RepositoryEngineeringDir)') .Replace('{MonoAOTCompilerDir}', '$(MonoAOTCompilerDir)') .Replace('{MonoProjectRoot}', '$(MonoProjectRoot)') .Replace('{MonoAOTCompilerTasksAssemblyPath}', '$(MonoAOTCompilerTasksAssemblyPath)') .Replace('{WasmAppBuilderTasksAssemblyPath}', '$(WasmAppBuilderTasksAssemblyPath)') .Replace('{MicrosoftNetCoreAppRuntimePackRidDir}', '$(MicrosoftNetCoreAppRuntimePackRidDir)'))" Overwrite="true" /> runtime/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Manifest/WorkloadManifest.json.in
Line 2 in e25f14b
"version": "${WorkloadVersion}",
and probably a few others that I that don't know about.
Metadata
Metadata
Assignees
Labels
area-Infrastructurebacklog-cleanup-candidateAn inactive issue that has been marked for automated closure.An inactive issue that has been marked for automated closure.no-recent-activity
Type
Projects
Status
Done