Giter VIP home page Giter VIP logo

Comments (3)

kwsch avatar kwsch commented on June 11, 2024

Please be more descriptive in the errors you are receiving.

As mentioned multiple times, this is a proof of concept app that isn't being actively developed. GitHub is not a place for requesting builds for arbitrary platform version targets.

from pkhex.mobile.

loomahtoomah avatar loomahtoomah commented on June 11, 2024

Per the provided instructions we are to first from the Build menu select Clean Solution. I don't have that as an option. There are options for Clean All, or Clean PKHeX.mobile or Clean PKHex.Android, however. I just choose Clean All and proceed. From there, we're to Build->Rebuild All. Again, not an option at all. I can rebuild Solution, PKHeX.Android, or PKHeX.Mobile, but there's no Rebuild All.

What I've been assuming is there has been an update or something to visual studio, which is why the options don't exist for me. Or it could be since I'm on Mac it's different on my platform, so I've just been trying to clean and build PKHeX.Mobile since, idk, that's the master or parent folder? I'm not a developer so I'm doing the best I can with what I've got.

Anyway, cleaning goes fine, but when I rebuild I Build->Rebuild PKHeX.Mobile I'm hit with like 20 errors: Line 152 The variable 'ex' is declared but never used (CS0168) (PKHeX.Mobile). Line 0 Warning FodyPackageReference: Fody: The package reference for PropertyChanged.Fody does not contain PrivateAssets='All' (FodyPackageReference) and so on and so forth.

I just figured since Android is Android someone who knows what they're doing could just compile/build the thing and toss an apk online somewhere so dummies like me could mess around with it.

from pkhex.mobile.

jcoddaire avatar jcoddaire commented on June 11, 2024

Hi, chiming in here. I am not affiliated with this project but I do have extensive experience with .NET solutions.

Some of these errors are not actually build-breaking errors. .NET applications have Warnings and Errors for the msbuild agent. This is what Visual Studio uses behind the scenes to build a csproj application. More on that is here.

I was able to build PKHeX.Mobile on a Macbook Pro M1 Max, 2021 laptop. Here are my duplication steps:

Install dependencies

  1. Manually install .NET Core 8 from here
  2. Execute the following commands in your terminal. Maintainer, it might be a good idea to make a github job that builds these. Or Azure if that is what you are using for CI/CD.
brew install mono
brew install mono-libgdiplus

Verify installs

Enter the following commands in a new terminal to verify the programs above have been configured correctly.

dotnet --version
git --version
mono --version

Project commands

I use VSCode, but any text editor and terminal tooling should work. Execute the following commands in any terminal.

git clone https://github.com/kwsch/PKHeX.Mobile.git
cd PKHeX.Mobile
dotnet clean
dotnet build
dotnet build -c Release

More on the dotnet build tool is available here.

Note that this outputs the "error" you mention:

warning CS0168: The variable 'ex' is declared but never used

Which if you read the output, is due to this: https://github.com/kwsch/PKHeX.Mobile/blob/master/PKHeX.Mobile/Logic/FileUtil.cs#L152

The ex variable is never used, so either don't catch the Exception or log it to the console or logger library you are using, ie

Console.WriteLine(ex.Message)

I also see this warning:

warning FodyPackageReference: Fody: The package reference for PropertyChanged.Fody does not contain PrivateAssets='All

I have never saw that before, but google is your friend.

Either way, the build is successful.

Check PKHeX.Mobile/PKHeX.Mobile/bin/Release/netstandard2.1/PKHeX.Mobile.dll for your program. This is a library, not an .exe file.

My build issues

To the project maintainer, I do get build issues for the ios and Android projects. Maybe I do not have something for those installed?

iOS

Duplication steps:

cd PKHeX.iOS
dotnet build
/PKHeX.Mobile/PKHeX.iOS/PKHeX.iOS.csproj(166,3): error MSB4019: The imported project "/usr/local/share/dotnet/sdk/8.0.300/Xamarin/iOS/Xamarin.iOS.CSharp.targets" was not found. Confirm that the expression in the Import declaration "/usr/local/share/dotnet/sdk/8.0.300//Xamarin/iOS/Xamarin.iOS.CSharp.targets" is correct, and that the file exists on disk.

Android

Duplication steps:

cd PKHeX.Android
dotnet build
PKHeX.Android/PKHeX.Android.csproj(140,3): error MSB4019: The imported project "/usr/local/share/dotnet/sdk/8.0.300/Xamarin/Android/Xamarin.Android.CSharp.targets" was not found. Confirm that the expression in the Import declaration "/usr/local/share/dotnet/sdk/8.0.300//Xamarin/Android/Xamarin.Android.CSharp.targets" is correct, and that the file exists on disk.

from pkhex.mobile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.