Skip to content
This repository was archived by the owner on Nov 10, 2017. It is now read-only.

Commit 1ecb2c1

Browse files
committed
Enabled the .NET Compiler Platform ("Roslyn").
1 parent a4054e8 commit 1ecb2c1

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

src/Sitecore.Azure.Diagnostics.UI/Sitecore.Azure.Diagnostics.UI.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="12.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')" />
34
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
45
<PropertyGroup>
56
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -24,6 +25,8 @@
2425
<SccAuxPath>SAK</SccAuxPath>
2526
<SccProvider>SAK</SccProvider>
2627
<UseGlobalApplicationHostFile />
28+
<NuGetPackageImportStamp>
29+
</NuGetPackageImportStamp>
2730
</PropertyGroup>
2831
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2932
<DebugSymbols>true</DebugSymbols>
@@ -159,6 +162,12 @@
159162
</FlavorProperties>
160163
</VisualStudio>
161164
</ProjectExtensions>
165+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
166+
<PropertyGroup>
167+
<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>
168+
</PropertyGroup>
169+
<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'))" />
170+
</Target>
162171
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
163172
Other similar extension points exist, see Microsoft.Common.targets.
164173
<Target Name="BeforeBuild">

src/Sitecore.Azure.Diagnostics.UI/packages.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<package id="Microsoft.Data.Edm" version="5.7.0" targetFramework="net45" />
55
<package id="Microsoft.Data.OData" version="5.7.0" targetFramework="net45" />
66
<package id="Microsoft.Data.Services.Client" version="5.7.0" targetFramework="net45" />
7+
<package id="Microsoft.Net.Compilers" version="1.3.2" targetFramework="net45" developmentDependency="true" />
78
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" />
89
<package id="SC.Sitecore.Client" version="8.1.3" targetFramework="net45" />
910
<package id="SC.Sitecore.Kernel" version="8.1.3" targetFramework="net45" />

src/Sitecore.Azure.Diagnostics/Sitecore.Azure.Diagnostics.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<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')" />
34
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
45
<PropertyGroup>
56
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -11,6 +12,8 @@
1112
<AssemblyName>Sitecore.Azure.Diagnostics</AssemblyName>
1213
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
1314
<FileAlignment>512</FileAlignment>
15+
<NuGetPackageImportStamp>
16+
</NuGetPackageImportStamp>
1417
</PropertyGroup>
1518
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1619
<DebugSymbols>true</DebugSymbols>
@@ -104,6 +107,12 @@
104107
<None Include="packages.config" />
105108
</ItemGroup>
106109
<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>
107116
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
108117
Other similar extension points exist, see Microsoft.Common.targets.
109118
<Target Name="BeforeBuild">

src/Sitecore.Azure.Diagnostics/packages.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<package id="Microsoft.Data.Edm" version="5.7.0" targetFramework="net45" />
55
<package id="Microsoft.Data.OData" version="5.7.0" targetFramework="net45" />
66
<package id="Microsoft.Data.Services.Client" version="5.7.0" targetFramework="net45" />
7+
<package id="Microsoft.Net.Compilers" version="1.3.2" targetFramework="net45" developmentDependency="true" />
78
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" />
89
<package id="SC.Sitecore.Client" version="8.1.3" targetFramework="net45" />
910
<package id="SC.Sitecore.Kernel" version="8.1.3" targetFramework="net45" />

0 commit comments

Comments
 (0)