5
tatsuei
5y

So, for my final year project I'm tasked with creating a mobile app for iOS and Android.

A YouTuber I watch avidly decides to go with Xamarin for his next app. Cool, I think: I'll go with Xamarin for my app too (I'd like to test run the app on PCs just for fun).

Looks for Xamarin tutorials, nice, found one! Goes into VS, creates a new project. I add "Hello World" to the centre of the screen.

*F5* Build started... 5 minutes later I come back and it failed. No reason why it failed, all parentheses closed, semicolon at the end of my only line of code.

Watches YouTuber's new video, he has the same problem ( ´ ▽ ` )ノ. He adds a button, builds, build fails. Tries a second time, build succeeds. And this goes on for a couple of minutes while he's troubleshooting the problem.

Oh well. Time for hell I guess.

Comments
  • 1
    No clues in the output window?

    Make sure you show errors.

    Usually if there is a code error it is indicating the line and a pretty good error.

    But if its dependency related it is often much harder to find, especially if it has to to with secondary dependencies to different versions if the same assembly.
  • 0
    @Voxera yup, I've checked the output for errors. Then I got to a later part in the video where he found a workaround: edit the code outside of Visual Studio, then build the solution again.

    Thanks for the reminder to check my output window :D
  • 2
    Maybe use something that aint a piece of garbage huh
  • 3
    @tekashi (งツ)ว brb switching to Flutter
  • 1
    @jianyoong I was about to suggest flutter :)
  • 1
    I have been using flutter lately and I really like it. Its development is really quick and there is already a surprisingly large amount of packages given its young age
  • 1
    @404response That sounds great! I've just finished the tutorial they suggested; found my new platform :D
  • 0
    @jianyoong which editor are you using VSCode or Android Studio?
  • 1
    @jianyoong I am glad you like it :)
  • 1
    @404response Currently using Studio. Should I switch to VSCode? Is there anything I'm missing out on by using Studio? Detailed errors in the output, stuff like that?
  • 1
    Ah man. I mixed up VSCode with VS 😂
  • 1
    @jianyoong I have mostly used Code but I don't think there's much of a difference in things like error output. Android Studio probably has more features as it is a full fledged IDE
  • 2
    I tried doing xamarin and never got anything working out of it. Good luck!
  • 1
    @jianyoong that seams like an integration problem between the xamarin editing and vs.

    Did you make sure everything was saved?

    Sometimes it does not pickup on files you have not saved and that could cause problems between files that are not visible in the editor.

    And if its some kind of markupfile its possible the error reporting is not as good as for pure c# code.

    Editing outside might nit have been the real fix but a way to trigger the real fix.

    But I dont know, have not done any xamarin my self.
Add Comment