Skip to content

No debug version (also, no default version) #18

Description

@lilwhitemouse

Problem

The newest version of the .csproj lacks the 'Debug|AnyCPU' configuration:

<!--old version, was not replaced-->
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>false</DebugSymbols>
    <DebugType>none</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>..\Assemblies\</OutputPath>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>

However, it's the default:

<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>

The debug version should probably be added back.

When adding it, it's probably a good idea to change DebugSymbols to true and to add the DEBUG symbol, so that DEBUG-only code works:

#if DEBUG
....do debug stuff
#endif

The line that monodevelop uses for this is:

  <!-- inside 'Debug|AnyCPU'-->
   <DefineConstants>DEBUG;</DefineConstants>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions