-
Notifications
You must be signed in to change notification settings - Fork 560
Comparing changes
Open a pull request
base repository: dotnet/android
base: 35.0.92
head repository: dotnet/android
compare: 35.0.101
- 9 commits
- 17 files changed
- 3 contributors
Commits on Jul 30, 2025
-
[xabt] suppress
XA0101
for Razor class libraries (#10350)Context: https://github.com/dotnet/sdk/blob/1ed2f8e9751753a1d249d129884a669363c1b832/src/StaticWebAssetsSdk/Sdk/Sdk.StaticWebAssets.StaticAssets.ProjectSystem.props#L30-L31 Fixes: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2533207 1. Create a `dotnet new maui-blazor-web` project. 2. Open the `*.Shared.csproj`, the Razor class library project. 3. Change the `$(TargetFramework)` from `net9.0` to `net9.0-android`. 4. Build the project. Get the warnings: hellomauiblazor.Shared net9.0-android succeeded with 11 warning(s) (0.4s) → hellomauiblazor.Shared\bin\Debug\net9.0-android\hellomauiblazor.Shared.dll wwwroot\app.css : warning XA0101: @(Content) build action is not supported wwwroot\bootstrap\bootstrap.min.css : warning XA0101: @(Content) build action is not supported wwwroot\bootstrap\bootstrap.min.css.map : warning XA0101: @(Content) build action is not supported wwwroot\favicon.png : warning XA0101: @(Content) build action is not supported Layout\MainLayout.razor : warning XA0101: @(Content) build action is not supported Layout\NavMenu.razor : warning XA0101: @(Content) build action is not supported Pages\Counter.razor : warning XA0101: @(Content) build action is not supported Pages\Home.razor : warning XA0101: @(Content) build action is not supported Pages\Weather.razor : warning XA0101: @(Content) build action is not supported Routes.razor : warning XA0101: @(Content) build action is not supported _Imports.razor : warning XA0101: @(Content) build action is not supported Reviewing the code in the .NET SDK for Razor projects, they include most of these files such as: <!-- Publish everything under wwwroot, all JSON files, all config files and all Razor files --> <Content Include="wwwroot\**" ExcludeFromSingleFile="true" CopyToPublishDirectory="PreserveNewest" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" /> `%(ExcludeFromSingleFile)` looks like a useful metadata here, as Android is basically "single file mode" no matter what. We set `$(EnableSingleFileAnalyzers)=true` by default, so we consider mobile a "single file" platform. Let's suppress the `XA0101` warning for files that have `%(ExcludeFromSingleFile)` metadata, as this seems actually appropriate and solves the warnings in Razor class libraries.
Configuration menu - View commit details
-
Copy full SHA for 29864d3 - Browse repository at this point
Copy the full SHA 29864d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for dcfbd65 - Browse repository at this point
Copy the full SHA dcfbd65View commit details -
I think we can reduce this list to just be `*`.
Configuration menu - View commit details
-
Copy full SHA for 1f2bc54 - Browse repository at this point
Copy the full SHA 1f2bc54View commit details
Commits on Aug 1, 2025
-
[xabt] Compute
$DOTNET_DiagnosticPorts
using MSBuild properties (#1……0351) If you run `dotnet-trace collect --dsrouter android`, it says: Start an application on android device with ONE of the following environment variables set: [Default Tracing] DOTNET_DiagnosticPorts=127.0.0.1:9000,nosuspend,connect [Startup Tracing] DOTNET_DiagnosticPorts=127.0.0.1:9000,suspend,connect Setting `$DOTNET_DiagnosticPorts` is non-trivial, so as a step to simplify this, we are adding multiple MSBuild properties to configure this value. This would allow the log message to say: Build and run an Android application such as: [Default Tracing] dotnet build -t:Run -c Release -p:DiagnosticAddress=127.0.0.1 -p:DiagnosticPort=9000 -p:DiagnosticSuspend=false -p:DiagnosticListenMode=connect [Startup Tracing] dotnet build -t:Run -c Release -p:DiagnosticAddress=127.0.0.1 -p:DiagnosticPort=9000 -p:DiagnosticSuspend=true -p:DiagnosticListenMode=connect You could also set `$(DiagnosticConfiguration)`, but you would need to escape the `,` character with `%2c`. Setting any of the new properties also implicitly means that `$(AndroidEnableProfiler)` is set to `true`.
Configuration menu - View commit details
-
Copy full SHA for dd397d5 - Browse repository at this point
Copy the full SHA dd397d5View commit details -
[Xamarin.Android.Build.Tasks] $DOTNET_MODIFIABLE_ASSEMBLIES & FastDev (…
…#9451) Context: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=10431207&view=ms.vss-test-web.build-test-results-tab&runId=114098346&resultId=100000&paneView=debug The `FastDeployEnvironmentFiles(false)` test fails on PRs from forks, because the "Fast Deployment" feature is not included in OSS builds: The Environment variable "DOTNET_MODIFIABLE_ASSEMBLIES" was not set. Expected: String containing "DOTNET_MODIFIABLE_ASSEMBLIES=Debug" But was: "--------- beginning of main … The problem appears to be related to target ordering: * `_GetGenerateJavaStubsInputs` : uses `@(AndroidEnvironment)` to set `@(_EnvironmentFiles)` * `_GetGenerateJavaStubs` : must have same `Inputs` as `_GeneratePackageManagerJava` * `_GeneratePackageManagerJava`: actually uses `@(_EnvironmentFiles)` * `_GenerateEnvironmentFiles` : creates a new `@(AndroidEnvironment)` file that won't be used! But when using either a `Release` build or `Debug` build with `FastDev` enabled, everything works fine. To fix this, rework the target ordering: * `_GetGenerateJavaStubsInputs` depends on `_GenerateEnvironmentFiles` Unfortunately, this is now a circular dependency that causes an MSBuild error. * Break the cycle by updating `_GenerateEnvironmentFiles` to no longer depend upon `_ReadAndroidManifest`. It does not appear that `_ReadAndroidManifest` is needed by `_GenerateEnvironmentFiles`, as no properties created there are used.
Configuration menu - View commit details
- < 8000 clipboard-copy value="d6327068483b679fb8e307c089a941eaed16f92a" tabindex="-1" id="item-1868a2b9-8332-468c-aea6-71775ad51548" role="menuitem" data-view-component="true" class="ActionListContent ActionListContent--visual16"> Copy full SHA for d632706
- Browse repository at this point
Copy the full SHA d632706View commit details
Commits on Aug 6, 2025
-
[release/9.0.1xx] [build] update
$(ProductVersion)
to align with An……droid 15 (#10378) Context: dotnet/maui#30948 I don't think this will solve dotnet/maui#30948, but it will at least reduce confusion if we put a 15.x version number on our .NET 9 MSBuild task assemblies.
Configuration menu - View commit details
-
Copy full SHA for fa454c9 - Browse repository at this point
Copy the full SHA fa454c9View commit details -
[xabt]
Xamarin.Android.Build.Tasks.dll
should be strong-named (#10377)Fixes: dotnet/maui#30948 MSBuild task assemblies can run on .NET framework when building inside Visual Studio. If you have a .NET 8, .NET 9, and .NET 10 project in the same solution, the best way to support this is to strong name *and* version your assembly so that .NET framework can load multiple copies of it. This can also happen if you update the `$(TargetFramework)` while a project is open. Unfortunately, #30948 uncovered an issue when .NET 9 and .NET 10: * .NET 8 `Xamarin.Android.Build.Tasks.dll`: strong named * .NET 9 `Xamarin.Android.Build.Tasks.dll`: *not* strong named * .NET 10 `Xamarin.Android.Build.Tasks.dll`: *not* strong named I suspect this went wrong in 003f5d1, but we didn't notice it until now because .NET 8 was strong-named and .NET 9 was not. To fix this, we simply need to set `$(SignAssembly)` to `true`. Prior to 003f5d1, this was set to false because the ILRepack process signed at the end of the repacking. When ILRepack was removed, we forgot to enable strong name signing! Whoops!
Configuration menu - View commit details
-
Copy full SHA for 2fc44eb - Browse repository at this point
Copy the full SHA 2fc44ebView commit details
Commits on Aug 12, 2025
-
Bump to dotnet/sdk@fffbe68733 9.0.305-servicing.25408.10 (#10398)
Changes: dotnet/sdk@5f2d07c...fffbe68 Updates: From 9.0.304-servicing.25365.6 to 9.0.305-servicing.25408.10 Microsoft.NET.Sdk Other changes: * Add NuGet feeds via: darc update-dependencies --name Microsoft.NET.Workload.Mono.ToolChain.Current.Manifest-8.0.100 --id 278395 Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
Configuration menu - View commit details
-
Copy full SHA for 629a84a - Browse repository at this point
Copy the full SHA 629a84aView commit details
Commits on Aug 18, 2025
-
Bump to dotnet/sdk@cf275d46ba 9.0.305-servicing.25417.7 (#10421)
Changes: dotnet/sdk@fffbe68...cf275d4 Updates: From 9.0.305-servicing.25408.10 to 9.0.305-servicing.25417.7 Microsoft.NET.Sdk
Configuration menu - View commit details
-
Copy full SHA for a618557 - Browse repository at this point
Copy the full SHA a618557View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 35.0.92...35.0.101