Skip to content

Explain or update the TWAE properties in csproj #67

@ttd2089

Description

@ttd2089

wimm.Secundatives/wimm.Secundatives.csproj contains the following property groups:

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
    <NoWarn>1591</NoWarn>
    <WarningsAsErrors />
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
  </PropertyGroup>

It's not clear (to me) why we need an empty <WarningsAsErrors> element in the release configuration but not in the debug configuration, nor why we are suppressing warnings about undocumented public interface in release but not in debug. It seems like we should be fine with just <TreatWarningsAsErrors> in the unconditional property group. Maybe this is an idiosyncrasy of (an older version of) Visual Studio?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions