X Tutup
Skip to content
This repository was archived by the owner on Sep 24, 2020. It is now read-only.

Commit be0aa56

Browse files
committed
Set DebugType in release builds to PdbOnly
1 parent 9d875d3 commit be0aa56

File tree

4 files changed

+43
-12
lines changed

4 files changed

+43
-12
lines changed

ICSharpCode.NRefactory.CSharp/ICSharpCode.NRefactory.CSharp.csproj

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
33
<PropertyGroup>
44
<ProjectGuid>{53DCA265-3C3C-42F9-B647-F72BA678122B}</ProjectGuid>
@@ -11,7 +11,7 @@
1111
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
1212
<NoStdLib>False</NoStdLib>
1313
<WarningLevel>4</WarningLevel>
14-
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
14+
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
1515
<ProductVersion>8.0.30703</ProductVersion>
1616
<SchemaVersion>2.0</SchemaVersion>
1717
<SignAssembly>true</SignAssembly>
@@ -21,6 +21,8 @@
2121
<DocumentationFile>..\bin\$(Configuration)\ICSharpCode.NRefactory.CSharp.xml</DocumentationFile>
2222
<NoWarn>1591,1587,1570</NoWarn>
2323
<OutputPath>..\bin\$(Configuration)\</OutputPath>
24+
<NoWin32Manifest>False</NoWin32Manifest>
25+
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
2426
</PropertyGroup>
2527
<PropertyGroup Condition=" '$(Platform)' == 'AnyCPU' ">
2628
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -38,9 +40,10 @@
3840
<Optimize>True</Optimize>
3941
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
4042
<DefineConstants>TRACE;FULL_AST;NET_4_0</DefineConstants>
43+
<BaseIntermediateOutputPath>obj\</BaseIntermediateOutputPath>
4144
</PropertyGroup>
4245
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
43-
<DebugType>none</DebugType>
46+
<DebugType>PdbOnly</DebugType>
4447
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
4548
<OutputPath>..\bin\Release\</OutputPath>
4649
</PropertyGroup>
@@ -414,4 +417,4 @@
414417
<Folder Include="PatternMatching\" />
415418
<Folder Include="IndentEngine\" />
416419
</ItemGroup>
417-
</Project>
420+
</Project>

ICSharpCode.NRefactory.Cecil/ICSharpCode.NRefactory.Cecil.csproj

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,27 @@
1111
<AssemblyName>ICSharpCode.NRefactory.Cecil</AssemblyName>
1212
<SignAssembly>true</SignAssembly>
1313
<AssemblyOriginatorKeyFile>..\ICSharpCode.NRefactory.snk</AssemblyOriginatorKeyFile>
14+
<NoWin32Manifest>False</NoWin32Manifest>
15+
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
16+
<NoStdLib>False</NoStdLib>
17+
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
18+
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
19+
<DocumentationFile>bin\$(Configuration)\ICSharpCode.NRefactory.Cecil.xml</DocumentationFile>
20+
<NoWarn>1591</NoWarn>
1421
</PropertyGroup>
1522
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1623
<DebugSymbols>true</DebugSymbols>
1724
<DebugType>full</DebugType>
1825
<Optimize>false</Optimize>
1926
<OutputPath>bin\Debug</OutputPath>
20-
<DefineConstants>DEBUG;</DefineConstants>
2127
<ErrorReport>prompt</ErrorReport>
2228
<WarningLevel>4</WarningLevel>
2329
<ConsolePause>false</ConsolePause>
2430
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
2531
</PropertyGroup>
2632
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27-
<DebugType>full</DebugType>
28-
<Optimize>true</Optimize>
33+
<DebugType>PdbOnly</DebugType>
34+
<Optimize>True</Optimize>
2935
<OutputPath>bin\Release</OutputPath>
3036
<ErrorReport>prompt</ErrorReport>
3137
<WarningLevel>4</WarningLevel>
@@ -37,7 +43,6 @@
3743
<DebugType>full</DebugType>
3844
<Optimize>false</Optimize>
3945
<OutputPath>bin\Debug</OutputPath>
40-
<DefineConstants>DEBUG;</DefineConstants>
4146
<ErrorReport>prompt</ErrorReport>
4247
<WarningLevel>4</WarningLevel>
4348
<ConsolePause>false</ConsolePause>
@@ -52,6 +57,23 @@
5257
<ConsolePause>false</ConsolePause>
5358
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
5459
</PropertyGroup>
60+
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
61+
<DefineConstants>DEBUG;</DefineConstants>
62+
</PropertyGroup>
63+
<PropertyGroup Condition=" '$(Configuration)' == 'net_4_5_Debug' ">
64+
<DefineConstants>DEBUG;</DefineConstants>
65+
</PropertyGroup>
66+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
67+
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
68+
<BaseIntermediateOutputPath>obj\</BaseIntermediateOutputPath>
69+
</PropertyGroup>
70+
<PropertyGroup Condition=" '$(Platform)' == 'AnyCPU' ">
71+
<BaseAddress>4194304</BaseAddress>
72+
<PlatformTarget>AnyCPU</PlatformTarget>
73+
<RegisterForComInterop>False</RegisterForComInterop>
74+
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
75+
<FileAlignment>4096</FileAlignment>
76+
</PropertyGroup>
5577
<ItemGroup>
5678
<Reference Include="System" />
5779
<Reference Include="System.Core" />

ICSharpCode.NRefactory.Xml/ICSharpCode.NRefactory.Xml.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
1212
<NoStdLib>False</NoStdLib>
1313
<WarningLevel>4</WarningLevel>
14-
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
14+
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
1515
<SignAssembly>true</SignAssembly>
1616
<AssemblyOriginatorKeyFile>..\ICSharpCode.NRefactory.snk</AssemblyOriginatorKeyFile>
1717
<DelaySign>False</DelaySign>
@@ -20,6 +20,8 @@
2020
<SchemaVersion>2.0</SchemaVersion>
2121
<OutputPath>..\bin\$(Configuration)\</OutputPath>
2222
<DocumentationFile>..\bin\$(Configuration)\ICSharpCode.NRefactory.Xml.xml</DocumentationFile>
23+
<NoWin32Manifest>False</NoWin32Manifest>
24+
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
2325
</PropertyGroup>
2426
<PropertyGroup Condition=" '$(Platform)' == 'AnyCPU' ">
2527
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -37,9 +39,10 @@
3739
<Optimize>True</Optimize>
3840
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
3941
<DefineConstants>TRACE;FULL_AST;NET_4_0</DefineConstants>
42+
<BaseIntermediateOutputPath>obj\</BaseIntermediateOutputPath>
4043
</PropertyGroup>
4144
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
42-
<DebugType>none</DebugType>
45+
<DebugType>PdbOnly</DebugType>
4346
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
4447
<OutputPath>..\bin\Release\</OutputPath>
4548
</PropertyGroup>

ICSharpCode.NRefactory/ICSharpCode.NRefactory.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<SchemaVersion>2.0</SchemaVersion>
1313
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
1414
<NoStdLib>False</NoStdLib>
15-
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
15+
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
1616
<RunCodeAnalysis>False</RunCodeAnalysis>
1717
<CodeAnalysisRules>-Microsoft.Design#CA1000;-Microsoft.Design#CA1004;-Microsoft.Design#CA1005;-Microsoft.Design#CA1006;-Microsoft.Design#CA1026;-Microsoft.Design#CA1033;-Microsoft.Design#CA1051;-Microsoft.Design#CA1063;-Microsoft.Naming#CA1702;-Microsoft.Naming#CA1704;-Microsoft.Naming#CA1710;-Microsoft.Naming#CA1716;-Microsoft.Naming#CA1720;-Microsoft.Performance#CA1800;-Microsoft.Security#CA2104</CodeAnalysisRules>
1818
<SignAssembly>True</SignAssembly>
@@ -23,6 +23,8 @@
2323
<NoWarn>1591</NoWarn>
2424
<OutputPath>..\bin\$(Configuration)\</OutputPath>
2525
<DocumentationFile>..\bin\$(Configuration)\ICSharpCode.NRefactory.xml</DocumentationFile>
26+
<NoWin32Manifest>False</NoWin32Manifest>
27+
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
2628
</PropertyGroup>
2729
<PropertyGroup Condition=" '$(Platform)' == 'AnyCPU' ">
2830
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -41,14 +43,15 @@
4143
<Optimize>True</Optimize>
4244
<DefineConstants>TRACE</DefineConstants>
4345
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
46+
<BaseIntermediateOutputPath>obj\</BaseIntermediateOutputPath>
4447
</PropertyGroup>
4548
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
4649
<DebugType>full</DebugType>
4750
<DebugSymbols>True</DebugSymbols>
4851
<OutputPath>..\bin\Debug\</OutputPath>
4952
</PropertyGroup>
5053
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
51-
<DebugType>none</DebugType>
54+
<DebugType>PdbOnly</DebugType>
5255
<OutputPath>..\bin\Release\</OutputPath>
5356
</PropertyGroup>
5457
<PropertyGroup Condition=" '$(Configuration)' == 'net_4_5_Debug' ">

0 commit comments

Comments
 (0)
X Tutup