System Information (please complete the following information):
Windows OS: Windows-11-Enterprise-22H2
ML.Net Model Builder 2022: 16.14.0.2260101 (Main Build)
Microsoft Visual Studio Enterprise: 2022(17.4.1)
.Net: 7.0
Describe the bug
- On which step of the process did you run into an issue:
The target framework version should be .NET7.0 for the generated projects when training on the .NET7.0 project.
Data Source
https://testpass.blob.core.windows.net/test-pass-data/forecasting.csv
To Reproduce
Steps to reproduce the behavior:
- Select Create a new project from the Visual Studio 2022 start window.
- Choose the C# Console App (.NET Core7.0) project template.
- Add model builder by right click on the project.
- Select any scenario.
- On Data page, select the data source and complete the training.
- On the Consume page, click "Add to solution" button to generate the Console App and Web API projects.
- Check the target framework version for the generated projects, you will see that:
a. For Forecasting scenario, the target framework version is NET5.0.
b. For other scenarios, the target framework version is NET6.0.
Expected behavior
The target framework version should be .NET7.0.
Screenshot

Additional context
System Information (please complete the following information):
Windows OS: Windows-11-Enterprise-22H2
ML.Net Model Builder 2022: 16.14.0.2260101 (Main Build)
Microsoft Visual Studio Enterprise: 2022(17.4.1)
.Net: 7.0
Describe the bug
The target framework version should be .NET7.0 for the generated projects when training on the .NET7.0 project.
Data Source
https://testpass.blob.core.windows.net/test-pass-data/forecasting.csv
To Reproduce
Steps to reproduce the behavior:
a. For Forecasting scenario, the target framework version is NET5.0.
b. For other scenarios, the target framework version is NET6.0.
Expected behavior
The target framework version should be .NET7.0.
Screenshot
Additional context