Skip to content

Commit a2be407

Browse files
Merge pull request #2 from vladislav-karamfilov/master
Addressed code review comments of PR "Updating references to NuGet packages"
2 parents ab06f28 + 06c92e8 commit a2be407

File tree

5 files changed

+21
-23
lines changed

5 files changed

+21
-23
lines changed

System.Web.Mvc.Expressions/GlobalSuppressions.cs

Lines changed: 0 additions & 7 deletions
This file was deleted.

System.Web.Mvc.Expressions/Internals/MvcExtensions.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ public static class MvcExtensions
1010
{
1111
private const string ControllerSuffix = "Controller";
1212

13-
#pragma warning disable SA1306
14-
private static ConcurrentDictionary<MethodInfo, string> ActionNameInfo = new ConcurrentDictionary<MethodInfo, string>();
15-
private static ConcurrentDictionary<Type, string> RouteAreaInfo = new ConcurrentDictionary<Type, string>();
16-
#pragma warning restore SA1306
13+
private static readonly ConcurrentDictionary<MethodInfo, string> ActionNameInfo = new ConcurrentDictionary<MethodInfo, string>();
14+
private static readonly ConcurrentDictionary<Type, string> RouteAreaInfo = new ConcurrentDictionary<Type, string>();
1715

1816
public static string GetActionName(this LambdaExpression actionExpression)
1917
{
@@ -79,4 +77,4 @@ private static int GetAreaIndex(IReadOnlyList<string> namespaceParts)
7977
return -1;
8078
}
8179
}
82-
}
80+
}

System.Web.Mvc.Expressions/System.Web.Mvc.Expressions.csproj

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,32 +40,37 @@
4040
<Reference Include="System.Core" />
4141
<Reference Include="System.Web" />
4242
<Reference Include="System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
43-
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.7\lib\net45\System.Web.Helpers.dll</HintPath>
43+
<SpecificVersion>False</SpecificVersion>
44+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.0.0\lib\net45\System.Web.Helpers.dll</HintPath>
4445
</Reference>
45-
<Reference Include="System.Web.Mvc, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
46-
<HintPath>..\packages\Microsoft.AspNet.Mvc.5.2.7\lib\net45\System.Web.Mvc.dll</HintPath>
46+
<Reference Include="System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
47+
<SpecificVersion>False</SpecificVersion>
48+
<HintPath>..\packages\Microsoft.AspNet.Mvc.5.0.0\lib\net45\System.Web.Mvc.dll</HintPath>
4749
</Reference>
4850
<Reference Include="System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
49-
<HintPath>..\packages\Microsoft.AspNet.Razor.3.2.7\lib\net45\System.Web.Razor.dll</HintPath>
51+
<SpecificVersion>False</SpecificVersion>
52+
<HintPath>..\packages\Microsoft.AspNet.Razor.3.0.0\lib\net45\System.Web.Razor.dll</HintPath>
5053
</Reference>
5154
<Reference Include="System.Web.Routing" />
5255
<Reference Include="System.Data.DataSetExtensions" />
5356
<Reference Include="Microsoft.CSharp" />
5457
<Reference Include="System.Data" />
5558
<Reference Include="System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
56-
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.7\lib\net45\System.Web.WebPages.dll</HintPath>
59+
<SpecificVersion>False</SpecificVersion>
60+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.0.0\lib\net45\System.Web.WebPages.dll</HintPath>
5761
</Reference>
5862
<Reference Include="System.Web.WebPages.Deployment, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
59-
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.7\lib\net45\System.Web.WebPages.Deployment.dll</HintPath>
63+
<SpecificVersion>False</SpecificVersion>
64+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.0.0\lib\net45\System.Web.WebPages.Deployment.dll</HintPath>
6065
</Reference>
6166
<Reference Include="System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
62-
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.7\lib\net45\System.Web.WebPages.Razor.dll</HintPath>
67+
<SpecificVersion>False</SpecificVersion>
68+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.0.0\lib\net45\System.Web.WebPages.Razor.dll</HintPath>
6369
</Reference>
6470
</ItemGroup>
6571
<ItemGroup>
6672
<Compile Include="AjaxHelperExtensions.cs" />
6773
<Compile Include="ControllerExtensions.cs" />
68-
<Compile Include="GlobalSuppressions.cs" />
6974
<Compile Include="HtmlHelperExtensions.cs" />
7075
<Compile Include="Internals\ExpressionHelpers.cs" />
7176
<Compile Include="ModelStateDictionaryExtensions.cs" />

System.Web.Mvc.Expressions/System.Web.Mvc.Expressions.ruleset

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@
7373
<Rule Id="IDE0003" Action="None" />
7474
</Rules>
7575
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
76+
<Rule Id="SA0001" Action="None" />
77+
<Rule Id="SA1600" Action="None" />
7678
<Rule Id="SA1633" Action="None" />
7779
<Rule Id="SA1652" Action="None" />
7880
</Rules>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Microsoft.AspNet.Mvc" version="5.2.7" targetFramework="net45" />
4-
<package id="Microsoft.AspNet.Razor" version="3.2.7" targetFramework="net45" />
5-
<package id="Microsoft.AspNet.WebPages" version="3.2.7" targetFramework="net45" />
3+
<package id="Microsoft.AspNet.Mvc" version="5.0.0" targetFramework="net45" />
4+
<package id="Microsoft.AspNet.Razor" version="3.0.0" targetFramework="net45" />
5+
<package id="Microsoft.AspNet.WebPages" version="3.0.0" targetFramework="net45" />
66
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
77
<package id="StyleCop.Analyzers" version="1.1.118" targetFramework="net45" developmentDependency="true" />
88
</packages>

0 commit comments

Comments
 (0)