with these settings I got following error:
Build started…
------ Build started: Project: App, Configuration: Debug Any CPU ------
Checking license
OutputPath is C:\Users\admin\source\repos\App\App\bin\Debug
Bundling App.ps1
Parsing file App.ps1.
Checking path $ConfigPath for XAML.
Checking path $ConfigPath for XAML.
Checking path $ConfigPath for XAML.
Packaging C:\Users\admin\AppData\Local\Temp\App.ps1
Creating temp directory: C:\Users\admin\AppData\Local\Temp\84f990b590f44070949f7adbd86ccab2
Packaging modules…
Checking dotnet version.
Checking dotnet SDK version.
7.0.202
.NET SDK Version: 7.0.202
Creating package project.
Using .NET Framework version: netcoreapp31
Determining projects to restore...
Restored C:\Users\admin\AppData\Local\Temp\84f990b590f44070949f7adbd86ccab2\App.csproj (in 72 ms).
Determining projects to restore...
Restored C:\Users\admin\AppData\Local\Temp\84f990b590f44070949f7adbd86ccab2\App.csproj (in 72 ms).
Packaging C:\Users\admin\AppData\Local\Temp\App.ps1 -> C:\Users\admin\source\repos\App\App\bin\Debug\App.exe
MSBuild version 17.5.0+6f08c67f3 for .NET
Determining projects to restore…
All projects are up-to-date for restore.
C:\Program Files\dotnet\sdk\7.0.202\Microsoft.Common.CurrentVersion.targets(2352,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly “System.Windows.Forms”. Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\Users\admin\AppData\Local\Temp\84f990b590f44070949f7adbd86ccab2\App.csproj]
App → C:\Users\admin\source\repos\App\App\bin\Debug\App.dll
Build succeeded.
C:\Program Files\dotnet\sdk\7.0.202\Microsoft.Common.CurrentVersion.targets(2352,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly “System.Windows.Forms”. Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\Users\admin\AppData\Local\Temp\84f990b590f44070949f7adbd86ccab2\App.csproj]
1 Warning(s)
0 Error(s)
Time Elapsed 00:00:00.93
MSBuild version 17.5.0+6f08c67f3 for .NET
Determining projects to restore…
All projects are up-to-date for restore.
C:\Program Files\dotnet\sdk\7.0.202\Microsoft.Common.CurrentVersion.targets(2352,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly “System.Windows.Forms”. Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\Users\admin\AppData\Local\Temp\84f990b590f44070949f7adbd86ccab2\App.csproj]
App → C:\Users\admin\source\repos\App\App\bin\Debug\App.dll
Build succeeded.
C:\Program Files\dotnet\sdk\7.0.202\Microsoft.Common.CurrentVersion.targets(2352,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly “System.Windows.Forms”. Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\Users\admin\AppData\Local\Temp\84f990b590f44070949f7adbd86ccab2\App.csproj]
1 Warning(s)
0 Error(s)
Time Elapsed 00:00:00.93
Output: C:\Users\admin\source\repos\App\App\bin\Debug\App.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========