-
Notifications
You must be signed in to change notification settings - Fork 831
Open
Labels
difficulty/tbdCategorizes an issue for which the difficulty level needs to be defined.Categorizes an issue for which the difficulty level needs to be defined.triage/untriagedIndicates an issue requires triaging or verificationIndicates an issue requires triaging or verification
Description
Current behavior 🐛
error MSB4057: The target "_GetRestoreSettingsPerFramework" does not exist in the project.
I tried two such tasks on the Azure DevOps "windows-2025" agent. They look like a workaround because there is no MSBuild 18 support yet on the "windows-2025" agent:
displayName: "Install Build Tools for Visual Studio 2026 (with MSBuild 18)"
inputs:
pwsh: true
targetType: 'inline'
script: |
Invoke-WebRequest https://aka.ms/vs/stable/vs_BuildTools.exe -OutFile vs_buildtools.exe
Start-Process .\vs_buildtools.exe `
-ArgumentList "--quiet --wait --norestart --nocache `
--add Microsoft.Component.MSBuild --add Microsoft.NetCore.Component.SDK" `
-NoNewWindow -Wait
- task: MSBuild@1
displayName: "Build Console app"
inputs:
solution: '$(ConsoleApp)'
msbuildLocationMethod: 'location'
msbuildLocation: 'C:\Program Files (x86)\Microsoft Visual Studio\18\BuildTools\MSBuild\Current\Bin\MSBuild.exe'
configuration: '${{parameters.buildConfiguration}}'
msbuildArguments: '/m /r'```
### Expected behavior 🎯
The project should build successfully with .NET 10 using the specified commands (at least) or using the previous PowerShell variant (it throws the same error):
- task: PowerShell@2
displayName: "Build Console app"
inputs:
pwsh: true
targetType: inline
script: |
# $msbuild = vswhere -latest -requires Microsoft.Component.MSBuild -find MSBuild**\Bin\MSBuild.exe
$msbuild = 'C:\Program Files (x86)\Microsoft Visual Studio\18\BuildTools\MSBuild\Current\Bin\MSBuild.exe'
&$msbuild "$ (ConsoleApp)" /m /r /p:Configuration=${{ parameters.buildConfiguration }}
### How to reproduce it (as minimally and precisely as possible) 🔬
_No response_
### Workaround 🛠️
_No response_
### Renderer 🎨
- [ ] Skia
- [ ] Native
### Affected platforms 📱💻🖥️
Windows App SDK, Build tasks
### Uno.Sdk version (and other relevant versions) 📦
Uno.Sdk 6.4.31, tried 6.5.0-dev.63 also
### IDE version 🧑💻
_No response_
### Anything else we need to know? 💬
_No response_
Metadata
Metadata
Assignees
Labels
difficulty/tbdCategorizes an issue for which the difficulty level needs to be defined.Categorizes an issue for which the difficulty level needs to be defined.triage/untriagedIndicates an issue requires triaging or verificationIndicates an issue requires triaging or verification