Skip to content

Commit 9e53fe5

Browse files
committed
stash
1 parent 951b6ea commit 9e53fe5

File tree

10 files changed

+17
-8
lines changed

10 files changed

+17
-8
lines changed

eng/targets/Cpp.Common.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
<VCProjectVersion>15.0</VCProjectVersion>
2121
<Keyword>Win32Proj</Keyword>
2222
<Platform Condition="'$(Platform)' == ''">x64</Platform>
23-
<PlatformToolsetVersion>v143</PlatformToolsetVersion>
24-
<PlatformToolset>$(PlatformToolsetVersion)</PlatformToolset>
23+
<PlatformToolsetVersion>143</PlatformToolsetVersion>
24+
<PlatformToolset>v$(PlatformToolsetVersion)</PlatformToolset>
2525
<!-- If the following line is updated ensure that the /eng/scripts/vs.17.*.json files are updated to include the same version component too. -->
2626
<WindowsTargetPlatformVersion Condition=" '$(WindowsTargetPlatformVersion)' == '' ">10.0.19041.0</WindowsTargetPlatformVersion>
2727
</PropertyGroup>

src/Servers/IIS/AspNetCoreModuleV2/CommonLib/CommonLib.vcxproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\..\build\Build.Lib.Settings" />
34
<PropertyGroup Label="Globals">
45
<ProjectGuid>{55494E58-E061-4C4C-A0A8-837008E72F85}</ProjectGuid>
56
<RootNamespace>NewCommon</RootNamespace>
7+
<RunCodeAnalysis>false</RunCodeAnalysis>
68
</PropertyGroup>
7-
<Import Project="..\..\build\Build.Lib.Settings" />
89
<ItemDefinitionGroup>
910
<ClCompile>
1011
<AdditionalIncludeDirectories>..\iislib;$(LibNetHostPath)</AdditionalIncludeDirectories>

src/Servers/IIS/AspNetCoreModuleV2/CommonLib/application.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class APPLICATION : public IAPPLICATION
7777

7878
virtual
7979
VOID
80-
StopInternal(bool fServerInitiated)
80+
StopInternal(bool fServerInitiated) noexcept
8181
{
8282
UNREFERENCED_PARAMETER(fServerInitiated);
8383
}

src/Servers/IIS/AspNetCoreModuleV2/CommonLibTests/CommonLibTests.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<ProjectGuid>{1eac8125-1765-4e2d-8cbe-56dc98a1c8c1}</ProjectGuid>
1010
<Keyword>Win32Proj</Keyword>
1111
<ConfigurationType>Application</ConfigurationType>
12-
<PlatformToolset>$(PlatformToolsetVersion)</PlatformToolset>
12+
<PlatformToolset>v$(PlatformToolsetVersion)</PlatformToolset>
1313
<CharacterSet>Unicode</CharacterSet>
1414
<IsTestProject>true</IsTestProject>
1515
<DisableArcadeTestFramework>true</DisableArcadeTestFramework>

src/Servers/IIS/AspNetCoreModuleV2/DefaultRules.ruleset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<Rule Id="C26435" Action="Error" />
4747
<Rule Id="C26436" Action="Error" />
4848
<Rule Id="C26437" Action="Error" />
49-
<Rule Id="C26438" Action="Error" />
49+
<Rule Id="C26438" Action="None" /> <!-- Avoid goto -->
5050
<Rule Id="C26439" Action="Error" />
5151
<Rule Id="C26440" Action="Error" />
5252
<Rule Id="C26441" Action="Error" />

src/Servers/IIS/AspNetCoreModuleV2/IISLib/IISLib.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<ProjectGuid>{09D9D1D6-2951-4E14-BC35-76A23CF9391A}</ProjectGuid>
66
<RootNamespace>IISLib</RootNamespace>
77
<ProjectName>IISLib</ProjectName>
8+
<RunCodeAnalysis>false</RunCodeAnalysis>
89
</PropertyGroup>
910
<PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
1011
<WholeProgramOptimization>true</WholeProgramOptimization>

src/Servers/IIS/AspNetCoreModuleV2/RequestHandlerLib/AppOfflineTrackingApplication.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
HRESULT AppOfflineTrackingApplication::StartMonitoringAppOffline()
1010
{
1111
LOG_INFOF(L"Starting app_offline monitoring in application '%ls'", m_applicationPath.c_str());
12-
HRESULT hr = StartMonitoringAppOflineImpl();
12+
const HRESULT hr = StartMonitoringAppOflineImpl();
1313

1414
if (FAILED_LOG(hr))
1515
{

src/Servers/IIS/AspNetCoreModuleV2/gtest/gtest.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<PropertyGroup Label="Globals">
88
<ProjectGuid>{CAC1267B-8778-4257-AAC6-CAF481723B01}</ProjectGuid>
99
<RootNamespace>gtest</RootNamespace>
10+
<RunCodeAnalysis>false</RunCodeAnalysis>
1011
</PropertyGroup>
1112
<PropertyGroup Label="Configuration">
1213
<TargetName>gtest</TargetName>

src/Servers/IIS/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
<HostArch Condition="'$(Platform)' == 'AnyCPU'">x64</HostArch>
99
<LibNetHostPath>$(NetCoreTargetingPackRoot)Microsoft.NETCore.App.Host.win-$(HostArch)\$(LibNetHostAppPackVersion)\runtimes\win-$(HostArch)\native</LibNetHostPath>
1010
<!-- This tools version MUST match the same version as runtime uses to compile libnethost.lib -->
11-
<PlatformToolsetVersion>v142</PlatformToolsetVersion>
11+
<PlatformToolsetVersion>143</PlatformToolsetVersion>
1212
</PropertyGroup>
1313
</Project>

src/Servers/IIS/build/Build.Common.Settings

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@
3232
</ImportGroup>
3333
<PropertyGroup Label="UserMacros" />
3434

35+
<PropertyGroup>
36+
<CodeAnalysisRuleSet>..\DefaultRules.ruleset</CodeAnalysisRuleSet>
37+
<RunCodeAnalysis Condition="'$(VCToolsRedistVersion)' != '' AND '$(VCToolsRedistVersion)' >= 14.15.26706">true</RunCodeAnalysis>
38+
<EnablePREfast>$(RunCodeAnalysis)</EnablePREfast>
39+
</PropertyGroup>
40+
3541
<ItemDefinitionGroup>
3642
<ClCompile>
3743
<PrecompiledHeader>Use</PrecompiledHeader>

0 commit comments

Comments
 (0)