Skip to content

Commit 498feab

Browse files
committed
MVC 3 builds wouldn't compile on machines without Windows Update MS14-059 with the previous patch (84f43d2). This patch makes the build work whether or not the Windows Update is installed on the build machine, with the caveat that when the update is on the build machine, it must also be on the target machines as well. Otherwise, it the binaries will work in either environment.
1 parent 2087df5 commit 498feab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/MvcSiteMapProvider/MvcSiteMapProvider/MvcSiteMapProvider.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@
4949
<Reference Include="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
5050
</ItemGroup>
5151
<ItemGroup Condition=" $(DefineConstants.Contains('MVC3')) ">
52-
<Reference Include="System.Web.Mvc, Version=3.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
52+
<!-- Due to the windows update MS14-059, we need this hack to ensure we can build MVC3 both on machines that have the update and those that don't -->
53+
<Reference Condition=" Exists('$(windir)\Microsoft.NET\assembly\GAC_MSIL\System.Web.Mvc\v4.0_3.0.0.0__31bf3856ad364e35\System.Web.Mvc.dll') " Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
54+
<Reference Condition=" !Exists('$(windir)\Microsoft.NET\assembly\GAC_MSIL\System.Web.Mvc\v4.0_3.0.0.0__31bf3856ad364e35\System.Web.Mvc.dll') " Include="System.Web.Mvc, Version=3.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
5355
<Private>True</Private>
5456
<HintPath>..\packages\Microsoft.AspNet.Mvc.3.0.20105.1\lib\net40\System.Web.Mvc.dll</HintPath>
5557
</Reference>

0 commit comments

Comments
 (0)