dotnet / dotnet/machinelearning-modelbuilder
Object detection-Local & Image classification-Azure: Console App is generated failed with error "Object reference not set to an instance of an object." when using the model cloned from GitHub.
- Dominant language
- Dockerfile
- Stars
- 285
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
**System Information (please complete the following information):**
Windows OS: Windows-11-Enterprise-22H2
ML.Net Model Builder 2022: 17.18.2.2416101 (Main Build)
Microsoft Visual Studio Enterprise: 2022(17.9.3)
.Net: 6.0
**Describe the bug**
- On which step of the process did you run into an issue:
Console App is generated failed with error "Object reference not set to an instance of an object." when using the model cloned from GitHub.
**TestMatrix**
https://testpass.blob.core.windows.net/test-pass-data/weather.zip
**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) project template.
3. Add model builder by right click on the project.
4. Select "Object detection-Local or Image classification-Azure" scenario.
5. On the Data page, choose the data source to complete the training.
6. Save All Files, then create a new repository and push to GitHub.
7. **Check out to different location on the same computer**.
8. Open the cloned Model Builder and go to Consume page.
9. Click "Add to solution" button to generate Console App project, pop-up the error "Object reference not set to an instance of an object.".
**Expected behavior**
Console App can be generated successfully.
**Screenshot**

**Additional context**
1. The error is not repro when generated the Web API project.
2. After you save, close then re-open the mbconfig file, the bug would be not repro.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.