Skip to content

Commit 8a3fa34

Browse files
Sergio0694Copilot
andcommitted
Suppress CS8305 for the generated Windows projections
The generated projection sources surface evaluation-only ([Experimental]) Windows Runtime APIs (e.g. Windows.Storage.Provider.StorageProviderShareLinkState, Windows.ApplicationModel.DataTransfer.TransferTarget), which produce CS8305 and fail under the projections' warnings-as-errors. These APIs are expected in a full SDK projection, so add a NoWarn for CS8305 in the shared Projections Directory.Build.props. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 8c52dbe commit 8a3fa34

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Projections/Directory.Build.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
-->
2020
<WarningsNotAsErrors>$(WarningsNotAsErrors);CS0108;CS0109;CS0114;CS0219;CS0628;CS0660;CA2257</WarningsNotAsErrors>
2121

22+
<!-- Generated projections surface evaluation-only ([Experimental]) Windows Runtime APIs, so CS8305 is expected -->
23+
<NoWarn>$(NoWarn);CS8305</NoWarn>
24+
2225
<!-- Projections should not require runtime marshalling. -->
2326
<DisableRuntimeMarshalling>True</DisableRuntimeMarshalling>
2427
<CsWinRTAotOptimizerEnabled Condition="$([MSBuild]::GetTargetFrameworkVersion('$(TargetFramework)')) >= 6">Auto</CsWinRTAotOptimizerEnabled>

0 commit comments

Comments
 (0)