Git Product home page Git Product logo

Comments (21)

jonathanpeppers avatar jonathanpeppers commented on July 24, 2024 1

You add -bl to the dotnet build command:

https://github.com/dotnet/msbuild/blob/main/documentation/wiki/Binary-Log.md

from maui-samples.

jonathanpeppers avatar jonathanpeppers commented on July 24, 2024

Did you upload the msbuild.binlog file? You'll probably have to zip it, before Github will allow it.

from maui-samples.

Divyeshpatel6073 avatar Divyeshpatel6073 commented on July 24, 2024

Ok sir @jonathanpeppers
I will attach zip file in 10 min

from maui-samples.

Divyeshpatel6073 avatar Divyeshpatel6073 commented on July 24, 2024

How to create msbuild.binlog file?
@jonathanpeppers

from maui-samples.

Divyeshpatel6073 avatar Divyeshpatel6073 commented on July 24, 2024

here is the zip file @jonathanpeppers
msbuild.ProjectImports.zip

msbuild binlog 2.zip

from maui-samples.

Divyeshpatel6073 avatar Divyeshpatel6073 commented on July 24, 2024

@jonathanpeppers
Here is my binlog file

https://github.com/dotnet/net6-mobile-samples/files/6338670/msbuild.binlog.2.zip

from maui-samples.

jonathanpeppers avatar jonathanpeppers commented on July 24, 2024

Your project has: <PackageReference Include="Microsoft.Maui" Version="6.0.100-preview.3.322+sha.b83f98aca-azdo.4633246" />

Does it work if you use the version in these samples:

https://github.com/dotnet/net6-mobile-samples/blob/46129f85d78b55589280e5bb0ea399bb1dd72167/HelloMaui/HelloMaui.csproj#L17

from maui-samples.

Divyeshpatel6073 avatar Divyeshpatel6073 commented on July 24, 2024

Thank you @jonathanpeppers SIR

and i am using this package
<PackageReference Include="microsoft.maui.resizetizer" Version="6.0.100-preview.3.322" />

it is work but I have another issue
error XA1018: Specified AndroidManifest file does not exist: F:\Others\MAUI\hello2\AndroidManifest.xml

from maui-samples.

Divyeshpatel6073 avatar Divyeshpatel6073 commented on July 24, 2024

i am using this package & it shows me this error see image @jonathanpeppers
<PackageReference Include="Microsoft.Maui" Version="6.0.100-preview.3.322" />

image

from maui-samples.

Divyeshpatel6073 avatar Divyeshpatel6073 commented on July 24, 2024

Your project has: <PackageReference Include="Microsoft.Maui" Version="6.0.100-preview.3.322+sha.b83f98aca-azdo.4633246" />

Does it work if you use the version in these samples:

https://github.com/dotnet/net6-mobile-samples/blob/46129f85d78b55589280e5bb0ea399bb1dd72167/HelloMaui/HelloMaui.csproj#L17

no sir it does not work it shows me this error
image

from maui-samples.

Divyeshpatel6073 avatar Divyeshpatel6073 commented on July 24, 2024

Thank you for your advice @jonathanpeppers
And i am your big fan

My system has
Microsoft.Android.sdk
old version.
I uninstalled this version

Install new version of Microsoft.Android.sdk with version(11.0.200-preview:3.196)

And my problem has solved

Let me tell you
Android version 8.1 support or not?

from maui-samples.

Divyeshpatel6073 avatar Divyeshpatel6073 commented on July 24, 2024

Android version 8.1(Api 27) support or not?
Because

When I am run my simulator it is installed and working fine
But When I am run my device it shows me this error
ADB0020: Mono.AndroidTools.IncompatibleCpuAbiExceptiopn: The package does not support the CPU architecture of this device.

My device detail
Device : Lg Q6
Api : - 27
Kernel Version : 3.18.71

from maui-samples.

jonathanpeppers avatar jonathanpeppers commented on July 24, 2024

@Divyeshpatel6073 the IncompatibleCpuAbiException error means your device might be 32-bit?

Try adding -r android-arm to the command-line or put <RuntimeIdentifier>android-arm</RuntimeIdentifier>.

You can also put multiple if you want to use the x86 emulator:

<RuntimeIdentifiers>android-arm;android-x86</RuntimeIdentifiers>

from maui-samples.

Divyeshpatel6073 avatar Divyeshpatel6073 commented on July 24, 2024

@jonathanpeppers
Thank you for your advice.
Lastly Thank you very very much.
it's run.
tell me how to debug my application?

from maui-samples.

jonathanpeppers avatar jonathanpeppers commented on July 24, 2024

We have some examples for Visual Studio on Windows and VS Code here: https://github.com/dotnet/net6-mobile-samples#using-ides

James Montemagno also made a nice video: https://www.youtube.com/watch?v=Ppb4PnpWrjg

from maui-samples.

jwoeste avatar jwoeste commented on July 24, 2024

Fresh install of VS 2022 on MacOS
Verified all botnet sdks and runtimes installed as per documentation.
Installed latest maui workflow.

Result:
Microsoft.NET.TargetFrameworkInference.targets(112, 5): [NETSDK1139] The target platform identifier android was not recognized.
Microsoft.NET.TargetFrameworkInference.targets(112, 5): [NETSDK1139] The target platform identifier ios was not recognized.
Microsoft.NET.TargetFrameworkInference.targets(112, 5): [NETSDK1139] The target platform identifier maccatalyst was not recognized.

Please get this fixed rather than just closing the issue. net 7.0 is GA!!!

from maui-samples.

jonathanpeppers avatar jonathanpeppers commented on July 24, 2024

@jwoeste your error above usually means your workloads are hosed, sorry! You could follow this to get back to a clean state:

https://gist.github.com/jonathanpeppers/63beb491a9185ac06710261536cc35c9

If you want to get traction on this problem, I would file an issue here with more details:

https://github.com/dotnet/sdk/issues

from maui-samples.

jwoeste avatar jwoeste commented on July 24, 2024

@jonathanpeppers followed your instructions

clean .NET (running on M1 macOS):
rm -r ~/.dotnet/
sudo rm -r /usr/local/share/dotnet/

Installed .NET 7.0.100 SDK (ARM) and .NET 7.0.0 Runtime (ARM)
Then:
sudo dotnet workload install maui

Result:
/usr/local/share/dotnet/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(112,5) : error NETSDK1139: The target platform identifier android was not recognized.

Still the same as before.

I will try to write up a more comprehensive report and file it under dotnet/sdk/issues. Searching a bit I can see that this issue has been around since the first release of maui and every time it has been closed as solved. Either it was never solved or there is a huge issue with regression in the repos.

Honestly though - maybe the real issue is that a workload is being used to perform what a nuget should have done - thus making it very difficult to reproduce the right dependencies/versioning? Idk.

from maui-samples.

jonathanpeppers avatar jonathanpeppers commented on July 24, 2024

Any chance a global.json file is involved? If there is one in the current directory, is that causing problems?

from maui-samples.

jwoeste avatar jwoeste commented on July 24, 2024

no global.json involved. Same thing regardless of creating project from cli (dotnet new maui -o mauitest) or using template in VS2022 for Mac (both 17.4 and 17.5 preview). Same also occurs in jet brains rider.

Only way to build and run is from cli.

from maui-samples.

jonathanpeppers avatar jonathanpeppers commented on July 24, 2024

If CLI works, then this is an issue in VS Mac. I'd use the "Send Feedback" button, and maybe someone can help there.

from maui-samples.

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.