Skip to content

The target framework version should be .NET7.0 for the generated projects when training on the .NET7.0 project. #2401

Description

@v-Hailishi

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:

  1. Select Create a new project from the Visual Studio 2022 start window.
  2. Choose the C# Console App (.NET Core7.0) project template.
  3. Add model builder by right click on the project.
  4. Select any scenario.
  5. On Data page, select the data source and complete the training.
  6. On the Consume page, click "Add to solution" button to generate the Console App and Web API projects.
  7. 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

image

Additional context

Metadata

Metadata

Labels

Priority:1Work that is critical for the release, but we could probably ship withoutReported by: TestStale

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions