Skip to content

Commit 80945c5

Browse files
authored
Adding missing trimming attribute due to using custom assembly info and temporarily adding couple cswinrt properties to disable things that aren't needed (#4451)
1 parent 2ca1068 commit 80945c5

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See LICENSE-CODE in the project root for license information. -->
3+
<!-- This is a special MSBuild file that is parsed before everything else when MSBuild detects it in our directory structure.
4+
Adding Sdk="Microsoft.NET.Sdk" to a project causes NuGet files to be generated very early on, so we need these defines to be here
5+
to ensure that all of our build output files end up in the same location. -->
6+
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
7+
<Import Project="..\..\Directory.Build.props" />
8+
9+
<PropertyGroup>
10+
<!-- Both the IID optimizer and the CsWinRT lookup table aren't needed with the new CsWinRT version,
11+
so disabling them here until they are disabled automatically by CsWinRT. -->
12+
<CsWinRTIIDOptimizerOptOut>true</CsWinRTIIDOptimizerOptOut>
13+
<CsWinRTCcwLookupTableGeneratorEnabled>false</CsWinRTCcwLookupTableGeneratorEnabled>
14+
</PropertyGroup>
15+
</Project>

eng/common/VersionInfo/AssemblyInfo.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@
1515

1616
[assembly: AssemblyVersion("0.0")]
1717
[assembly: AssemblyFileVersion("0.0")]
18+
19+
[assembly: AssemblyMetadata("IsTrimmable", "True")]

eng/common/VersionInfo/GenerateVersionInfo.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ using System.Runtime.InteropServices;
4444
4545
[assembly: AssemblyVersion("$ProductMajor.$ProductMinor")]
4646
[assembly: AssemblyFileVersion("$ProductMajor.$ProductMinor")]
47+
48+
[assembly: AssemblyMetadata("IsTrimmable", "True")]
4749
"@
4850

4951
Write-Verbose $assemblyInfoCs

0 commit comments

Comments
 (0)