Skip to content

Commit 876ce69

Browse files
committed
Restore for Demo project
1 parent 6727f94 commit 876ce69

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

DevTrends.MvcDonutCaching.Demo/MvcDonutCaching.Demo.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
<IISExpressWindowsAuthentication />
2222
<IISExpressUseClassicPipelineMode />
2323
<TargetFrameworkProfile />
24+
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
25+
<RestorePackages>true</RestorePackages>
2426
</PropertyGroup>
2527
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2628
<DebugSymbols>true</DebugSymbols>
@@ -252,6 +254,13 @@
252254
</FlavorProperties>
253255
</VisualStudio>
254256
</ProjectExtensions>
257+
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
258+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
259+
<PropertyGroup>
260+
<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>
261+
</PropertyGroup>
262+
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
263+
</Target>
255264
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
256265
Other similar extension points exist, see Microsoft.Common.targets.
257266
<Target Name="BeforeBuild">

0 commit comments

Comments
 (0)