summaryrefslogtreecommitdiff
path: root/csharp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-09-26 11:27:27 +0200
committerJose <jose@zeroc.com>2019-09-26 11:27:27 +0200
commitadc6c78a96fb74f8fa3cb1d320bb44d736465b8c (patch)
treef2e63198c853e84d0300a6cbad7bb38ac541e7ad /csharp
parentRemove extra newline (diff)
downloadice-adc6c78a96fb74f8fa3cb1d320bb44d736465b8c.tar.bz2
ice-adc6c78a96fb74f8fa3cb1d320bb44d736465b8c.tar.xz
ice-adc6c78a96fb74f8fa3cb1d320bb44d736465b8c.zip
target netcoreapp2.1 with Visual Studio 2017 builds
Diffstat (limited to 'csharp')
-rw-r--r--csharp/Directory.Build.props15
1 files changed, 12 insertions, 3 deletions
diff --git a/csharp/Directory.Build.props b/csharp/Directory.Build.props
index 97eca0c8f30..efb889b06e0 100644
--- a/csharp/Directory.Build.props
+++ b/csharp/Directory.Build.props
@@ -1,6 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <AppTargetFramework Condition="'$(AppTargetFramework)' == ''">netcoreapp3.0</AppTargetFramework>
- </PropertyGroup>
+ <Choose>
+ <When Condition="'$(VisualStudioVersion)' == '15.0'">
+ <PropertyGroup>
+ <AppTargetFramework Condition="'$(AppTargetFramework)' == ''">netcoreapp2.1</AppTargetFramework>
+ </PropertyGroup>
+ </When>
+ <Otherwise>
+ <PropertyGroup>
+ <AppTargetFramework Condition="'$(AppTargetFramework)' == ''">netcoreapp3.0</AppTargetFramework>
+ </PropertyGroup>
+ </Otherwise>
+ </Choose>
</Project>