Only compile with net461 in visual studio

This commit is contained in:
smoogipoo
2018-03-26 15:46:16 +09:00
parent 9a2679b406
commit 4e12855985
3 changed files with 7 additions and 5 deletions

View File

@@ -4,7 +4,8 @@
<Import Project="..\osu.Framework.props" />
<PropertyGroup Label="Project">
<TargetFrameworks>net461;netcoreapp2.0</TargetFrameworks>
<TargetFramework Condition="'$(BuildingInsideVisualStudio)' == 'true'">net461</TargetFramework>
<TargetFrameworks Condition="'$(BuildingInsideVisualStudio)' != 'true'">net461;netcoreapp2.0</TargetFrameworks>
<OutputType>WinExe</OutputType>
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>

View File

@@ -4,7 +4,8 @@
<Import Project="..\osu.Framework.props" />
<PropertyGroup Label="Project">
<TargetFrameworks>net461;netcoreapp2.0;netstandard2.0</TargetFrameworks>
<TargetFramework Condition="'$(BuildingInsideVisualStudio)' == 'true'">net461</TargetFramework>
<TargetFrameworks Condition="'$(BuildingInsideVisualStudio)' != 'true'">net461;netstandard2.0;netcoreapp2.0</TargetFrameworks>
<OutputType>WinExe</OutputType>
<PlatformTarget>AnyCPU</PlatformTarget>
<AssemblyName>osu.Framework.Tests</AssemblyName>

View File

@@ -4,8 +4,8 @@
<Import Project="..\osu.Framework.props" />
<PropertyGroup Label="Project">
<!-- We need to compile for net461 here for System.Drawing to work under .NET Framework... -->
<TargetFrameworks>net461;netstandard2.0;netcoreapp2.0</TargetFrameworks>
<TargetFramework Condition="'$(BuildingInsideVisualStudio)' == 'true'">net461</TargetFramework>
<TargetFrameworks Condition="'$(BuildingInsideVisualStudio)' != 'true'">net461;netstandard2.0;netcoreapp2.0</TargetFrameworks>
<OutputType>Library</OutputType>
<PlatformTarget>AnyCPU</PlatformTarget>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
@@ -22,7 +22,7 @@
</PropertyGroup>
<ItemGroup Label="References">
<Reference Include="System.Runtime.InteropServices.RuntimeInformation"/>
<Reference Include="System.Runtime.InteropServices.RuntimeInformation" />
</ItemGroup>
<ItemGroup Label="Package References">