Skip to content

Commit 7e5b2a2

Browse files
committed
Merge remote-tracking branch 'origin/dev' into dev
2 parents bce940a + fa36f34 commit 7e5b2a2

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

DevTrends.MvcDonutCaching/MvcDonutCaching.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
<AssemblyName>DevTrends.MvcDonutCaching</AssemblyName>
1313
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
1414
<FileAlignment>512</FileAlignment>
15+
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
16+
<RestorePackages>true</RestorePackages>
1517
</PropertyGroup>
1618
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1719
<DebugSymbols>true</DebugSymbols>
@@ -96,6 +98,13 @@
9698
<Compile Include="Properties\AssemblyInfo.cs" />
9799
</ItemGroup>
98100
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
101+
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
102+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
103+
<PropertyGroup>
104+
<ErrorText>Ce projet fait référence à des packages NuGet qui sont manquants sur cet ordinateur. Activez l'option de restauration des packages NuGet pour les télécharger. Pour plus d'informations, consultez http://go.microsoft.com/fwlink/?LinkID=322105. Le fichier manquant est le suivant : {0}.</ErrorText>
105+
</PropertyGroup>
106+
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
107+
</Target>
99108
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
100109
Other similar extension points exist, see Microsoft.Common.targets.
101110
<Target Name="BeforeBuild">
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="Microsoft.AspNet.Mvc" version="3.0.50813.1" targetFramework="net40" />
4+
</packages>

0 commit comments

Comments
 (0)