---
# System prepended metadata

title: csproj `BlockReflectionAttribute` の意味は？？ .NET Core 2021-08-22
tags: [MSBuild, .NET Core, System.Private.ServiceModel, csproj, BlockReflectionAttribute]

---

---
lang: ja-jp
breaks: true
---
# csproj `BlockReflectionAttribute` の意味は？？ .NET Core 2021-08-22

`System.Private.ServiceModel`パッケージのcsprojに以下の設定がある。

```xml=
  <PropertyGroup>
    <BlockReflectionAttribute>true</BlockReflectionAttribute>
    <!--
    <BlockReflectionAttribute Condition="'$(BlockReflectionAttribute)' == '' and '$(UWPCompatible)' == 'true' and '$(IsTestProject)' != 'true'">true</BlockReflectionAttribute>
    <BlockReflectionAttribute Condition="'$(MSBuildProjectExtension)' != '.csproj'">false</BlockReflectionAttribute>
    -->
    <!-- For debug builds we include the full value string so that we get actual resources, even in the case the toolchain strips the resources file -->
    <GenerateResxSourceIncludeDefaultValues Condition="'$(ConfigurationGroup)' == 'Debug'">true</GenerateResxSourceIncludeDefaultValues>
  </PropertyGroup>
```

###### tags: `MSBuild` `csproj` `BlockReflectionAttribute` `System.Private.ServiceModel` `.NET Core`
