Skip to content

Question Answering: The generated Console App project is running failed on VS2019.  #2876

@v-Hailishi

Description

@v-Hailishi

System Information (please complete the following information):
Windows OS: Windows-11-Enterprise-23H2
ML.Net Model Builder 2019: 16.18.2.2415501 (Main Build)
Microsoft Visual Studio Enterprise: 2019(16.11.34)
.Net: 5.0

Describe the bug

  • On which step of the process did you run into an issue:
    The generated Console App project is running failed on VS2019.

TestMatrix
Smallsuad.tsv.txt

To Reproduce
Steps to reproduce the behavior:

  1. Select Create a new project from the Visual Studio start window.
  2. Choose the C# Console App (.NET Core 5.0) project template.
  3. Add model builder by right click on the project.
  4. Select "Question Answering" scenario.
  5. On Data page, choose the data source to completed training.
  6. Go to the Consume page, click "Add to solution" button to generate Console App project.
  7. Run the generated Console App project.

Expected behavior
The generated Console App project should be running successfully.

Screenshot
image

Additional context

  1. After adding code "using System.Linq;", the generated Console App project can be running successfully.
  2. The bug is not repro for Model Builder 2022(16.18.2.2415501) on VS2022.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions