New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AndroidEnvironment build task doesn't work properly when environment text file changes #8849
Comments
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 |
Looking at the logs even @BretJohnson are you able to repo using the |
If I make C# code changes and restart those are applied, so the app must be getting redeployed. |
@BretJohnson I ment if you just change the myenv.txt file and then call |
I did that test: I updated myenv.txt and then did |
Context: #8849 Add a unit test to make sure we update the `environment.xxx.ll` files when they are updated.
Android application type
.NET Android (net7.0-android, net8.0-android, etc.)
Affected platform version
VS 2022 17.10 P2
Description
AndroidEnvironment environment variables aren't updated when the environment text file changes.
AndroidEnvTest_Debug_AnyCPU_net8.0-android_Build_2024-04-01T12_13_05.9187908-04_00.binlog.txt
Steps to Reproduce
Result: Note that the Debug output still has ENV1-YYYY, not the new value.
Did you find any workaround?
No, not yet - and a workaround is what I'd most like here, so looking for hints on that.
Relevant log output
See attached binlog (renamed to have a .txt extension so I can attach it, but it's a .binlog).
The text was updated successfully, but these errors were encountered: