Skip to content

Commit 1a3dc5b

Browse files
committed
Example Projects - Add Microsoft.Net.Compilers Nuget package
Adding Microsoft.Net.Compilers so we can use C#7+ syntax in the example projects. Will limit to the example projects for now. For anyone using VS2015, you should still be able to compile, just intellisense won't like the new keywords and syntax
1 parent 11fe920 commit 1a3dc5b

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj

+1
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.2.7.0\build\Microsoft.Net.Compilers.props" Condition="Exists('..\packages\Microsoft.Net.Compilers.2.7.0\build\Microsoft.Net.Compilers.props')" />
34
<Import Project="..\packages\cef.redist.x86.3.3325.1751\build\cef.redist.x86.props" Condition="Exists('..\packages\cef.redist.x86.3.3325.1751\build\cef.redist.x86.props')" />
45
<Import Project="..\packages\cef.redist.x64.3.3325.1751\build\cef.redist.x64.props" Condition="Exists('..\packages\cef.redist.x64.3.3325.1751\build\cef.redist.x64.props')" />
56
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />

CefSharp.OffScreen.Example/packages.config

+1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
<packages>
33
<package id="cef.redist.x64" version="3.3325.1751" targetFramework="net452" />
44
<package id="cef.redist.x86" version="3.3325.1751" targetFramework="net452" />
5+
<package id="Microsoft.Net.Compilers" version="2.7.0" targetFramework="net452" developmentDependency="true" />
56
</packages>

CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj

+1
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.2.7.0\build\Microsoft.Net.Compilers.props" Condition="Exists('..\packages\Microsoft.Net.Compilers.2.7.0\build\Microsoft.Net.Compilers.props')" />
34
<Import Project="..\packages\cef.redist.x86.3.3325.1751\build\cef.redist.x86.props" Condition="Exists('..\packages\cef.redist.x86.3.3325.1751\build\cef.redist.x86.props')" />
45
<Import Project="..\packages\cef.redist.x64.3.3325.1751\build\cef.redist.x64.props" Condition="Exists('..\packages\cef.redist.x64.3.3325.1751\build\cef.redist.x64.props')" />
56
<PropertyGroup>

CefSharp.WinForms.Example/packages.config

+1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
<packages>
33
<package id="cef.redist.x64" version="3.3325.1751" targetFramework="net452" />
44
<package id="cef.redist.x86" version="3.3325.1751" targetFramework="net452" />
5+
<package id="Microsoft.Net.Compilers" version="2.7.0" targetFramework="net452" developmentDependency="true" />
56
</packages>

CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj

+1
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.2.7.0\build\Microsoft.Net.Compilers.props" Condition="Exists('..\packages\Microsoft.Net.Compilers.2.7.0\build\Microsoft.Net.Compilers.props')" />
34
<Import Project="..\packages\cef.redist.x86.3.3325.1751\build\cef.redist.x86.props" Condition="Exists('..\packages\cef.redist.x86.3.3325.1751\build\cef.redist.x86.props')" />
45
<Import Project="..\packages\cef.redist.x64.3.3325.1751\build\cef.redist.x64.props" Condition="Exists('..\packages\cef.redist.x64.3.3325.1751\build\cef.redist.x64.props')" />
56
<PropertyGroup>

CefSharp.Wpf.Example/packages.config

+1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
<package id="cef.redist.x64" version="3.3325.1751" targetFramework="net452" />
44
<package id="cef.redist.x86" version="3.3325.1751" targetFramework="net452" />
55
<package id="CommonServiceLocator" version="1.3" targetFramework="net45" />
6+
<package id="Microsoft.Net.Compilers" version="2.7.0" targetFramework="net452" developmentDependency="true" />
67
<package id="MvvmLightLibs" version="5.1.1.0" targetFramework="net45" />
78
</packages>

0 commit comments

Comments
 (0)