Changeset 1601


Ignore:
Timestamp:
1/19/2010 4:02:06 AM (5 years ago)
Author:
lowjoel
Message:

Define the CODE_ANALYSIS constant in debug builds so that System.Diagnostics.CodeAnalysis?.SuppressMessage? attributes get generated and FxCop? will silence those warnings.

Location:
branches/eraser6/CodeReview
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/CodeReview/Eraser.DefaultPlugins/Eraser.DefaultPlugins.csproj

    r1539 r1601  
    1414    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> 
    1515    <RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent> 
     16    <PublishUrl>publish\</PublishUrl> 
     17    <Install>true</Install> 
     18    <InstallFrom>Disk</InstallFrom> 
     19    <UpdateEnabled>false</UpdateEnabled> 
     20    <UpdateMode>Foreground</UpdateMode> 
     21    <UpdateInterval>7</UpdateInterval> 
     22    <UpdateIntervalUnits>Days</UpdateIntervalUnits> 
     23    <UpdatePeriodically>false</UpdatePeriodically> 
     24    <UpdateRequired>false</UpdateRequired> 
     25    <MapFileExtensions>true</MapFileExtensions> 
     26    <ApplicationRevision>0</ApplicationRevision> 
     27    <ApplicationVersion>1.0.0.%2a</ApplicationVersion> 
     28    <IsWebBootstrapper>false</IsWebBootstrapper> 
     29    <UseApplicationTrust>false</UseApplicationTrust> 
     30    <BootstrapperEnabled>true</BootstrapperEnabled> 
    1631  </PropertyGroup> 
    1732  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> 
     
    2035    <Optimize>false</Optimize> 
    2136    <OutputPath>..\bin\Debug\Plugins\</OutputPath> 
    22     <DefineConstants>DEBUG;TRACE</DefineConstants> 
     37    <DefineConstants>TRACE;DEBUG;CODE_ANALYSIS</DefineConstants> 
    2338    <ErrorReport>prompt</ErrorReport> 
    2439    <WarningLevel>4</WarningLevel> 
     
    137152    </CodeAnalysisDictionary> 
    138153  </ItemGroup> 
     154  <ItemGroup> 
     155    <BootstrapperPackage Include="Microsoft.Net.Client.3.5"> 
     156      <Visible>False</Visible> 
     157      <ProductName>.NET Framework Client Profile</ProductName> 
     158      <Install>false</Install> 
     159    </BootstrapperPackage> 
     160    <BootstrapperPackage Include="Microsoft.Net.Framework.2.0"> 
     161      <Visible>False</Visible> 
     162      <ProductName>.NET Framework 2.0 %28x86%29</ProductName> 
     163      <Install>false</Install> 
     164    </BootstrapperPackage> 
     165    <BootstrapperPackage Include="Microsoft.Net.Framework.3.0"> 
     166      <Visible>False</Visible> 
     167      <ProductName>.NET Framework 3.0 %28x86%29</ProductName> 
     168      <Install>false</Install> 
     169    </BootstrapperPackage> 
     170    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5"> 
     171      <Visible>False</Visible> 
     172      <ProductName>.NET Framework 3.5</ProductName> 
     173      <Install>false</Install> 
     174    </BootstrapperPackage> 
     175    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> 
     176      <Visible>False</Visible> 
     177      <ProductName>.NET Framework 3.5 SP1</ProductName> 
     178      <Install>true</Install> 
     179    </BootstrapperPackage> 
     180    <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1"> 
     181      <Visible>False</Visible> 
     182      <ProductName>Windows Installer 3.1</ProductName> 
     183      <Install>true</Install> 
     184    </BootstrapperPackage> 
     185  </ItemGroup> 
    139186  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 
    140187  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.  
  • branches/eraser6/CodeReview/Eraser.Manager/Eraser.Manager.csproj

    r1572 r1601  
    1414    <AssemblyOriginatorKeyFile>..\Strong Name.snk</AssemblyOriginatorKeyFile> 
    1515    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> 
     16    <PublishUrl>publish\</PublishUrl> 
     17    <Install>true</Install> 
     18    <InstallFrom>Disk</InstallFrom> 
     19    <UpdateEnabled>false</UpdateEnabled> 
     20    <UpdateMode>Foreground</UpdateMode> 
     21    <UpdateInterval>7</UpdateInterval> 
     22    <UpdateIntervalUnits>Days</UpdateIntervalUnits> 
     23    <UpdatePeriodically>false</UpdatePeriodically> 
     24    <UpdateRequired>false</UpdateRequired> 
     25    <MapFileExtensions>true</MapFileExtensions> 
     26    <ApplicationRevision>0</ApplicationRevision> 
     27    <ApplicationVersion>1.0.0.%2a</ApplicationVersion> 
     28    <IsWebBootstrapper>false</IsWebBootstrapper> 
     29    <UseApplicationTrust>false</UseApplicationTrust> 
     30    <BootstrapperEnabled>true</BootstrapperEnabled> 
    1631  </PropertyGroup> 
    1732  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> 
     
    2035    <Optimize>false</Optimize> 
    2136    <OutputPath>..\bin\Debug\</OutputPath> 
    22     <DefineConstants>DEBUG;TRACE</DefineConstants> 
     37    <DefineConstants>TRACE;DEBUG;CODE_ANALYSIS</DefineConstants> 
    2338    <ErrorReport>prompt</ErrorReport> 
    2439    <WarningLevel>4</WarningLevel> 
     
    94109    </CodeAnalysisDictionary> 
    95110  </ItemGroup> 
     111  <ItemGroup> 
     112    <BootstrapperPackage Include="Microsoft.Net.Client.3.5"> 
     113      <Visible>False</Visible> 
     114      <ProductName>.NET Framework Client Profile</ProductName> 
     115      <Install>false</Install> 
     116    </BootstrapperPackage> 
     117    <BootstrapperPackage Include="Microsoft.Net.Framework.2.0"> 
     118      <Visible>False</Visible> 
     119      <ProductName>.NET Framework 2.0 %28x86%29</ProductName> 
     120      <Install>false</Install> 
     121    </BootstrapperPackage> 
     122    <BootstrapperPackage Include="Microsoft.Net.Framework.3.0"> 
     123      <Visible>False</Visible> 
     124      <ProductName>.NET Framework 3.0 %28x86%29</ProductName> 
     125      <Install>false</Install> 
     126    </BootstrapperPackage> 
     127    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5"> 
     128      <Visible>False</Visible> 
     129      <ProductName>.NET Framework 3.5</ProductName> 
     130      <Install>false</Install> 
     131    </BootstrapperPackage> 
     132    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> 
     133      <Visible>False</Visible> 
     134      <ProductName>.NET Framework 3.5 SP1</ProductName> 
     135      <Install>true</Install> 
     136    </BootstrapperPackage> 
     137    <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1"> 
     138      <Visible>False</Visible> 
     139      <ProductName>Windows Installer 3.1</ProductName> 
     140      <Install>true</Install> 
     141    </BootstrapperPackage> 
     142  </ItemGroup> 
    96143  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 
    97144  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.  
  • branches/eraser6/CodeReview/Eraser.Util.Native/Eraser.Util.Unlocker.vcproj

    r1582 r1601  
    4848                Name="VCCLCompilerTool" 
    4949                Optimization="0" 
    50                 PreprocessorDefinitions="WIN32;_DEBUG" 
     50                PreprocessorDefinitions="WIN32;_DEBUG;CODE_ANALYSIS" 
    5151                RuntimeLibrary="3" 
    5252                UsePrecompiledHeader="2" 
     
    123123                Name="VCCLCompilerTool" 
    124124                Optimization="0" 
    125                 PreprocessorDefinitions="WIN32;_DEBUG" 
     125                PreprocessorDefinitions="WIN32;_DEBUG;CODE_ANALYSIS" 
    126126                RuntimeLibrary="3" 
    127127                UsePrecompiledHeader="2" 
  • branches/eraser6/CodeReview/Eraser.Util/Eraser.Util.csproj

    r1572 r1601  
    1313    <AssemblyOriginatorKeyFile>..\Strong Name.snk</AssemblyOriginatorKeyFile> 
    1414    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> 
     15    <PublishUrl>publish\</PublishUrl> 
     16    <Install>true</Install> 
     17    <InstallFrom>Disk</InstallFrom> 
     18    <UpdateEnabled>false</UpdateEnabled> 
     19    <UpdateMode>Foreground</UpdateMode> 
     20    <UpdateInterval>7</UpdateInterval> 
     21    <UpdateIntervalUnits>Days</UpdateIntervalUnits> 
     22    <UpdatePeriodically>false</UpdatePeriodically> 
     23    <UpdateRequired>false</UpdateRequired> 
     24    <MapFileExtensions>true</MapFileExtensions> 
     25    <ApplicationRevision>0</ApplicationRevision> 
     26    <ApplicationVersion>1.0.0.%2a</ApplicationVersion> 
     27    <IsWebBootstrapper>false</IsWebBootstrapper> 
     28    <UseApplicationTrust>false</UseApplicationTrust> 
     29    <BootstrapperEnabled>true</BootstrapperEnabled> 
    1530  </PropertyGroup> 
    1631  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> 
     
    1934    <Optimize>false</Optimize> 
    2035    <OutputPath>..\bin\Debug\</OutputPath> 
    21     <DefineConstants>DEBUG;TRACE</DefineConstants> 
     36    <DefineConstants>TRACE;DEBUG;CODE_ANALYSIS</DefineConstants> 
    2237    <ErrorReport>prompt</ErrorReport> 
    2338    <WarningLevel>4</WarningLevel> 
     
    89104    <Compile Include="Win32ErrorCodes.cs" /> 
    90105  </ItemGroup> 
     106  <ItemGroup> 
     107    <BootstrapperPackage Include="Microsoft.Net.Client.3.5"> 
     108      <Visible>False</Visible> 
     109      <ProductName>.NET Framework Client Profile</ProductName> 
     110      <Install>false</Install> 
     111    </BootstrapperPackage> 
     112    <BootstrapperPackage Include="Microsoft.Net.Framework.2.0"> 
     113      <Visible>False</Visible> 
     114      <ProductName>.NET Framework 2.0 %28x86%29</ProductName> 
     115      <Install>false</Install> 
     116    </BootstrapperPackage> 
     117    <BootstrapperPackage Include="Microsoft.Net.Framework.3.0"> 
     118      <Visible>False</Visible> 
     119      <ProductName>.NET Framework 3.0 %28x86%29</ProductName> 
     120      <Install>false</Install> 
     121    </BootstrapperPackage> 
     122    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5"> 
     123      <Visible>False</Visible> 
     124      <ProductName>.NET Framework 3.5</ProductName> 
     125      <Install>false</Install> 
     126    </BootstrapperPackage> 
     127    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> 
     128      <Visible>False</Visible> 
     129      <ProductName>.NET Framework 3.5 SP1</ProductName> 
     130      <Install>true</Install> 
     131    </BootstrapperPackage> 
     132    <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1"> 
     133      <Visible>False</Visible> 
     134      <ProductName>Windows Installer 3.1</ProductName> 
     135      <Install>true</Install> 
     136    </BootstrapperPackage> 
     137  </ItemGroup> 
    91138  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 
    92139  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.  
  • branches/eraser6/CodeReview/Eraser/Eraser.csproj

    r1521 r1601  
    1414    <FileAlignment>512</FileAlignment> 
    1515    <ApplicationIcon>..\Resources\Eraser.ico</ApplicationIcon> 
     16    <IsWebBootstrapper>false</IsWebBootstrapper> 
     17    <SignAssembly>true</SignAssembly> 
     18    <AssemblyOriginatorKeyFile>..\Strong Name.snk</AssemblyOriginatorKeyFile> 
    1619    <PublishUrl>publish\</PublishUrl> 
    1720    <Install>true</Install> 
     
    2629    <ApplicationRevision>0</ApplicationRevision> 
    2730    <ApplicationVersion>1.0.0.%2a</ApplicationVersion> 
    28     <IsWebBootstrapper>false</IsWebBootstrapper> 
    2931    <UseApplicationTrust>false</UseApplicationTrust> 
    3032    <BootstrapperEnabled>true</BootstrapperEnabled> 
    31     <SignAssembly>true</SignAssembly> 
    32     <AssemblyOriginatorKeyFile>..\Strong Name.snk</AssemblyOriginatorKeyFile> 
    3333  </PropertyGroup> 
    3434  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> 
     
    3737    <Optimize>false</Optimize> 
    3838    <OutputPath>..\bin\Debug\</OutputPath> 
    39     <DefineConstants>DEBUG;TRACE</DefineConstants> 
     39    <DefineConstants>TRACE;DEBUG;CODE_ANALYSIS</DefineConstants> 
    4040    <ErrorReport>prompt</ErrorReport> 
    4141    <WarningLevel>4</WarningLevel> 
Note: See TracChangeset for help on using the changeset viewer.