Closed maxim-lobanov closed 2 years ago
That location (Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\Installer") is the real location of the preinstalled msvc2022 on the windows-2022 machine?
yes
I found the name of the component, but I am getting no success with this way
Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\Installer\"
$InstallPath = "C:\Program Files\Microsoft Visual Studio\2022\Preview"
$componentsToAdd = @(
'Microsoft.VisualStudio.Component.VC.Modules.x86.x64'
)
[string]$workloadArgs = $componentsToAdd | ForEach-Object {" --add " + $_}
$Arguments = ('/c', "vs_installer.exe", 'modify', '--installPath', "`"$InstallPath`"",$workloadArgs, '--quiet', '--norestart', '--nocache')
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
if ($process.ExitCode -eq 0)
{
Write-Host "components have been successfully added"
}
else
{
Write-Host "components were not installed"
exit 1
}
The output:
Run ./.github/scripts/setup_msvc.ps1
./.github/scripts/setup_msvc.ps1
shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
env:
BUILD_TYPE: Release
components were not installed
Error: Process completed with exit code 1.
@sylveon sorry, but I am not being able of make the script works. I get the name of the component directly from the Microsoft page. Do you think I am missing something?
Thanks!
Not excited that InnoSetup is no longer included on windows-latest.
@Pyzyryab -- did you ever solve the C++ modules issue? It's been affecting me, too. The documentation makes it sound like Microsoft.VisualStudio.Component.VC.Modules.x86.x64
is already installed in the windows-2022
image.
Windows Server 2022 availability 🚀
Hello everyone!
We are happy to announce that Windows Server 2022 is available for GitHub Actions and Azure DevOps users 🥳
You can use
windows-2022
image label in your YAML to select this image.GitHub Actions
Azure DevOps
"Beta" status
The image is marked as "beta" for now. It means some software can be unstable on the new platform. Also there could be queueing issues as the capacity will be balanced only throughout the next weeks. Known issues:
Please report any problems with the new image to this repository. Any issues related to Azure DevOps tasks should be reported to https://github.com/microsoft/azure-pipelines-tasks.
Software differences
The full documentation of Windows Server 2022 image can be found in image README.
The software set is different between Windows Server 2019 and 2022. We have deprecated some legacy software with low usage and temporarily disabled software that is not supported on the new platform yet. Also, for tools with multiple installed versions we have reconsidered the list of versions based on usage.
Please find differences in the table below:
Workloads: recommended + custom + wix components
Workloads: recommended set
If your use-case requires using VS 2019, continue using Windows Server 2019 image. We don't have plans to deprecate it in near future.
Architectures: x64 & x86
Pre-cached versions: 2.7, 3.5, 3.6, 3.7, 3.8, 3.9
Architectures: x64
Pre-cached versions: 3.7, 3.8, 3.9
Pre-cached versions: 2.4, 2.5, 2.6, 2.7, 3.0
Pre-cached versions: 2.7, 3.0
Pre-cached versions: 1.13, 1.14, 1.15, 1.16
Pre-cached versions: 1.15, 1.16
- actions/setup-go (GitHub Actions)
- Go Tool Installer (Azure DevOps)
Pre-installed versions: 8, 11, 13
Pre-installed versions: 8, 11
- actions/setup-java (GitHub Actions)
- Java Tool Installer (Azure DevOps)
Platforms: >= 19.x
CMake: 3.10.2, 3.18.1
Google APIs: 21, 22, 23, 24
NDK: 21, 22
Platforms: >= 27.x
CMake: 3.18.1
Google APIs: -
NDK: 21, 22
Please consider using tasks to install any version on-flight:
- actions/setup-dotnet (GitHub Actions)
- Use .NET Core (Azure DevOps)
Zipped: 1.0.0, 1.6.0, 2.3.2, 2.6.0, 3.1.0, 3.5.0, 3.8.0, 4.3.0, 4.4.0, 4.7.0, 5.5.0, 5.9.0, 6.1.0
Zipped: -
- azure-powershell-action (GitHub Actions)
- Azure PowerShell (Azure DevOps)
The following software were not installed on Windows Server 2022 images by default: Miniconda, Google Cloud SDK, InnoSetup, NSIS, Perl, sbt, Cloud Foundry CLI, BizTalk Server and Client, WebPlatformInstaller, Windows Driver Kit