Please find the below steps to generate .ascx.g.cs file manually for your Visual webpart:
- Ensure the project's site URL is specified correctly and it's valid.
- Go to your Visual webpart => expand the visual webpart file => right click on .ascx file => click on Properties => Update the "Custom tool" to "SharePointWebPartCodeGenerator".
- Right click on .ascx file and Click on "Run Custom Tool".
- Go and check, your .ascx.g.cs file will be generated.
Hope these steps solved your issue. Happy Coding.
No comments:
Post a Comment