A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
Hello @code_g33k,
Welcome to Microsoft Q&A forum.
I don't think you did something wrong. But this error might only appear on specific F# projects. Based on my test, this issue appears on "Blank App (Android)" F# project.
I previously noticed this/similar issue and reported it on our Developer Community, here's the ticket link: Get an error(Exception of type System.Exception was thrown) while creating a F# Blank App (iPad) project. The ticket was marked as duplicate to this ticket and it's still under investigation.
I would suggest you kindly follow that ticket, vote and add comments there or submit a new ticket on our Developer Community. If there's any latest information or fix, you will be informed.
Update1:
I double tested in VS 2022 and VS 2019(on the same machine). The F# project created correctly in VS 2019 but failed in VS 2022.
I submit a new ticket here: Get an "Object reference not set to an instance of an object" error when creating a F# Blank App (Android) project in VS 2022.
I will inform you if there's any update.
Thanks for your understanding, have a nice day.
Sincerely,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.