|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 3 | + <Import Project="..\packages\Microsoft.Net.Compilers.1.3.2\build\Microsoft.Net.Compilers.props" Condition="Exists('..\packages\Microsoft.Net.Compilers.1.3.2\build\Microsoft.Net.Compilers.props')" /> |
3 | 4 | <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> |
4 | 5 | <PropertyGroup> |
5 | 6 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
|
11 | 12 | <AssemblyName>Sitecore.Azure.Diagnostics</AssemblyName> |
12 | 13 | <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> |
13 | 14 | <FileAlignment>512</FileAlignment> |
| 15 | + <NuGetPackageImportStamp> |
| 16 | + </NuGetPackageImportStamp> |
14 | 17 | </PropertyGroup> |
15 | 18 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
16 | 19 | <DebugSymbols>true</DebugSymbols> |
|
104 | 107 | <None Include="packages.config" /> |
105 | 108 | </ItemGroup> |
106 | 109 | <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
| 110 | + <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> |
| 111 | + <PropertyGroup> |
| 112 | + <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> |
| 113 | + </PropertyGroup> |
| 114 | + <Error Condition="!Exists('..\packages\Microsoft.Net.Compilers.1.3.2\build\Microsoft.Net.Compilers.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Net.Compilers.1.3.2\build\Microsoft.Net.Compilers.props'))" /> |
| 115 | + </Target> |
107 | 116 | <!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
108 | 117 | Other similar extension points exist, see Microsoft.Common.targets. |
109 | 118 | <Target Name="BeforeBuild"> |
|
0 commit comments