You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AndroidEnvironment build task doesn't work properly when environment text file changes #8849
The corresponding target does appear to be set up to build incrementally correctly. _GeneratePackageManagerJava is fully rebuilt as shown below, but the updated environment contents do not make it into the app. Perhaps the issue lies somewhere in ApplicationConfigNativeAssemblyGenerator?
1:7>Target "_GeneratePackageManagerJava" in file "/usr/local/share/dotnet/packs/Microsoft.Android.Sdk.Darwin/34.0.85/tools/Xamarin.Android.Common.targets" from project "/Users/peter/source/AndroidEnvTest/AndroidEnvTest.csproj" (target "_CompileJava" depends on it):
Building target "_GeneratePackageManagerJava" completely.
Input file "myenv.txt" is newer than output file "obj/Debug/net8.0-android/stamp/_GeneratePackageManagerJava.stamp".
Unfortunately after a quick look I can't think of an easy workaround without having to drop in a .dll with a patched _GeneratePackageManagerJava task, unless you want to delete your bin/obj folders in between builds temporarily...
Looking at the logs even _CompileNativeAssemblySources is running.
This is part of the native side. I guess the app is not being deployed which is why the new values are not showing up.
@BretJohnson are you able to repo using the -t:Install target from the command line?
Activity
pjcollins commentedon Apr 2, 2024
The corresponding target does appear to be set up to build incrementally correctly. _GeneratePackageManagerJava is fully rebuilt as shown below, but the updated environment contents do not make it into the app. Perhaps the issue lies somewhere in ApplicationConfigNativeAssemblyGenerator?
Unfortunately after a quick look I can't think of an easy workaround without having to drop in a .dll with a patched
_GeneratePackageManagerJavatask, unless you want to delete your bin/obj folders in between builds temporarily...dellis1972 commentedon Apr 3, 2024
Looking at the logs even
_CompileNativeAssemblySourcesis running.This is part of the native side. I guess the app is not being deployed which is why the new values are not showing up.
@BretJohnson are you able to repo using the
-t:Installtarget from the command line?BretJohnson commentedon Apr 3, 2024
If I make C# code changes and restart those are applied, so the app must be getting redeployed.
dellis1972 commentedon Apr 3, 2024
@BretJohnson I ment if you just change the myenv.txt file and then call
-t:Installdoes that re-deploy the binaries?BretJohnson commentedon Apr 3, 2024
I did that test: I updated myenv.txt and then did
dotnet build -f net8.0-android -t:install -bl.Here are the results:
msbuild.binlog.txt
Add a unit test to check environment processing (#8856)