Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template does not work with .NET SDK 8.0.406 due to missing global.json version control #3

Closed
ekiyak opened this issue Mar 7, 2025 · 3 comments
Labels

Comments

@ekiyak
Copy link

ekiyak commented Mar 7, 2025

Steps to reproduce

1-Download and install the "Sneat Asp.Net Mvc Admin - Free" template.
2-Ensure that .NET SDK 8.0.406 (latest available version) is installed on your machine.
3-Open the template in Visual Studio and try to run it.
4-The application fails with the following error:
An unhandled exception occurred while processing the request. InvalidOperationException: The view 'Index' was not found. The following locations were searched: /Views/Dashboards/Index.cshtml /Views/Shared/Index.cshtml
5-Downgrade the .NET SDK by adding a global.json file to the solution with the following content:
{ "sdk": { "version": "8.0.100" } }
6-Run the project again in Visual Studio, and the issue is resolved.

What is expected?

The template should work with the latest .NET 8 version without requiring additional manual configuration.
If the template is only tested with specific .NET 8 versions, it should include a global.json file in the solution to specify the supported version.

What is actually happening?

The template fails to run with the latest .NET SDK 8.0.406.
Users who update their SDK to the latest version cannot use the template without debugging the issue, which is time-consuming.
The issue is resolved only after manually setting a global.json file to force an older .NET 8 SDK version.

Suggested Fix:
Include a global.json file in the solution to specify the supported SDK version.
Update the documentation or description to warn users about potential compatibility issues with future .NET 8 updates.

Additional data

@ekiyak ekiyak added bug Something isn't working support labels Mar 7, 2025
@Vatsal6288
Copy link
Member

Hello @ekiyak,

Thank you for bringing this to our attention.

We appreciate your feedback and will certainly consider adding this in one of our upcoming releases.

If you have any further questions or suggestions, feel free to let us know!

Copy link

This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you for raising the concern.

@github-actions github-actions bot added the stale label Mar 18, 2025
Copy link

This issue has been automatically marked as closed because it has no recent activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants