Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* Prevent xml doc warnings in Kudu.Services.csproj in release builds

* Change build.cmd to build in release by default to mirror CI
* Updated Kudu.targets to always treat warnings as errors
  • Loading branch information...
commit 0f21eb80d9cf2bb9df7ca7a5053bf1dd5288d29c 1 parent 1b4552e
@pranavkm pranavkm authored
View
14 Build/Kudu.targets
@@ -7,18 +7,12 @@
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
-
- <ProductVersion>8.0.30703</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <FileAlignment>512</FileAlignment>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<RestorePackages>true</RestorePackages>
- <TargetFrameworkProfile />
- <Prefer32Bit>false</Prefer32Bit>
-
<CodeAnalysisRuleSet>$(KuduBuildPath)kudu.ruleset</CodeAnalysisRuleSet>
+ <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
@@ -26,15 +20,13 @@
<DefineConstants>DEBUG;TRACE;CODE_ANALYSIS</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE;CODE_ANALYSIS</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
</PropertyGroup>
</Project>
View
1  Build/Kudu.tests.targets
@@ -3,5 +3,6 @@
<Import Project="Kudu.targets" />
<PropertyGroup>
<CodeAnalysisRuleSet>$(KuduBuildPath)kuduTest.ruleset</CodeAnalysisRuleSet>
+ <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
</PropertyGroup>
</Project>
View
3  Kudu.Services/Kudu.Services.csproj
@@ -14,6 +14,9 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<NoWarn>1591</NoWarn>
</PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
+ <NoWarn>1591</NoWarn>
+ </PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<Private>True</Private>
View
2  build.cmd
@@ -1,6 +1,6 @@
@echo Off
set config=%1
if "%config%" == "" (
- set config=debug
+ set config=Release
)
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild Build\Build.proj /p:Configuration="%config%";ExcludeXmlAssemblyFiles=false /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false /m
Please sign in to comment.
Something went wrong with that request. Please try again.