3dff232920
Set the GenerateRuntimeConfigurationFiles (GRCF) property to true to avoid warnings at build time + add test for change. Diving deeper into the fix... - This warning only occurs with .NET apps which is why GRCF is only updated in the dotnet directory and not msbuild (legacy) - After examining the binlog (see issue), it was found that the GRCF was contingent upon the HasRuntimeOutput property, which is only defined for executable projects. And in this case, the user's project output type is library thus both the RuntimeOutput and consequently GRCF properties were not enabled. - By setting the GRCF to true we can address the original warning of concern while ensuring the rest of the projects's behavior is not altered in mysterious ways (i.e. by touching the RuntimeOutput property or the project output type instead, these changes could have extraneous effects). Fixes #17543 --------- Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com> |
||
---|---|---|
.. | ||
AdditionalAppExtensionConsumer | ||
AppWithGenericLibraryReference | ||
AppWithNativeDynamicLibrariesInPackageReference | ||
AppWithResources | ||
AppWithWinExeOutputType | ||
AppWithXCAssets | ||
AutoDetectEntitlements | ||
BindingOldStyle | ||
BindingWithDefaultCompileInclude | ||
BindingWithUncompressedResourceBundle | ||
BundleStructure | ||
CatalystAppOptimizedForMacOS | ||
CentralPackageVersionsApp | ||
CustomizedCodeSigning | ||
Entitlements | ||
ExtensionConsumer | ||
ExtensionProject | ||
LibraryReferencingBindingLibrary | ||
MyCatalystApp | ||
MyClassLibrary | ||
MyCocoaApp | ||
MyInterpretedApp | ||
MyPartialAppManifestApp | ||
MyRegistrarApp | ||
MySatelliteAssembliesLibrary | ||
MySimpleApp | ||
MySimpleAppWithSatelliteReference | ||
MySingleView | ||
MyTVApp | ||
NativeDynamicLibraryReferencesApp | ||
NativeFileReferencesApp | ||
NativeFrameworkReferencesApp | ||
NativeXCFrameworkReferencesApp | ||
Net6_0SimpleApp | ||
SimpleAppWithOldReferences | ||
UnitTests | ||
WidgetConsumer | ||
WidgetExtension | ||
Windows | ||
size-comparison | ||
.gitignore | ||
Makefile | ||
README.md |
README.md
.net tests
size-comparison
To install the latest appcompare
tool do:
$ dotnet tool install --global appcompare
You can update it to the latest version by running:
$ dotnet tool update --global appcompare
The current directory might point to a different and incompatible dotnet SDK, resulting in an error. However running the command from a different location (outside the repo) should work.
Easier Analysis
If you want to read/compare the IL inside the assemblies you need to disable IL stripping.
- Legacy (oldnet)
Add this option inside the Release|iPhone
configuration of size-comparison/MySingleView/oldnet/MySingleView.csproj
<MtouchExtraArgs>--nostrip</MtouchExtraArgs>
- net6
Build with /p:EnableAssemblyILStripping=false
set. The MtouchExtraArgs
legacy option is also honored.