Browse Source

Update RunAotCompilation msbuild condition

Steve 3 years ago
parent
commit
63ba6fa7ed
1 changed files with 2 additions and 2 deletions
  1. 2 2
      samples/ControlCatalog.NetCore/ControlCatalog.NetCore.csproj

+ 2 - 2
samples/ControlCatalog.NetCore/ControlCatalog.NetCore.csproj

@@ -6,7 +6,7 @@
     <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
   </PropertyGroup>
 
-  <PropertyGroup Condition="$(RunAotCompilation)">
+  <PropertyGroup Condition="'$(RunAotCompilation)' == 'true'">
     <IlcTrimMetadata>true</IlcTrimMetadata>
     <RestoreAdditionalProjectSources>https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json</RestoreAdditionalProjectSources>
     <NativeAotCompilerVersion>7.0.0-*</NativeAotCompilerVersion>
@@ -21,7 +21,7 @@
     <PackageReference Include="Avalonia.Angle.Windows.Natives" Version="2.1.0.2020091801" />
   </ItemGroup>
 
-  <ItemGroup Condition="$(RunAotCompilation)">
+  <ItemGroup Condition="'$(RunAotCompilation)' == 'true'">
     <PackageReference Include="Microsoft.DotNet.ILCompiler" Version="$(NativeAotCompilerVersion)" />
     <!-- Cross-compilation for Windows x64-arm64 and Linux x64-arm64 -->
     <PackageReference Condition="'$(RuntimeIdentifier)'=='win-arm64'" Include="runtime.win-x64.Microsoft.DotNet.ILCompiler" Version="$(NativeAotCompilerVersion)" />