Only target netstandard2.0

This commit is contained in:
Shane Woolcock 2020-04-15 17:35:16 +09:30
parent 8d0760016b
commit 0f73183733
2 changed files with 37 additions and 114 deletions

@ -1,22 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net40;netstandard2.0</TargetFrameworks>
<Platforms>x64</Platforms>
</PropertyGroup>
<PropertyGroup>
<EnableDefaultItems>false</EnableDefaultItems>
<AssemblyName>SDL2-CS</AssemblyName>
<RootNamespace>SDL2</RootNamespace>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
<ItemGroup>
<Compile Include="src\SDL2.cs" />
<Compile Include="src\SDL2_image.cs" />
<Compile Include="src\SDL2_mixer.cs" />
<Compile Include="src\SDL2_ttf.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
</ItemGroup>
</Project>

@ -1,93 +1,38 @@
<?xml version="1.0" encoding="utf-8"?> <Project Sdk="Microsoft.NET.Sdk">
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup>
<PropertyGroup> <TargetFramework>netstandard2.0</TargetFramework>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <OutputType>Library</OutputType>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<ProductVersion>9.0.21022</ProductVersion> <AssemblyTitle>SDL2#</AssemblyTitle>
<SchemaVersion>2.0</SchemaVersion> <AssemblyName>SDL2-CS</AssemblyName>
<ProjectGuid>{85480198-8711-4355-830E-72FD794AD3F6}</ProjectGuid> <Description>libSDL2 bindings for C#</Description>
<OutputType>Library</OutputType> <RootNamespace>SDL2</RootNamespace>
<RootNamespace>SDL2</RootNamespace> <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<AssemblyName>SDL2-CS</AssemblyName> </PropertyGroup>
</PropertyGroup> <PropertyGroup Label="Nuget">
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> <Title>SDL2#</Title>
<DebugSymbols>true</DebugSymbols> <PackageId>ppy.SDL2-CS</PackageId>
<DebugType>full</DebugType> </PropertyGroup>
<Optimize>false</Optimize> <ItemGroup>
<OutputPath>bin\Debug</OutputPath> <Content Include="$(MSBuildThisFileDirectory)native\win-x64\SDL2.dll">
<DefineConstants>DEBUG;</DefineConstants> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ErrorReport>prompt</ErrorReport> <PackagePath>runtimes/win-x64/native</PackagePath>
<WarningLevel>4</WarningLevel> <Pack>true</Pack>
<PlatformTarget>x86</PlatformTarget> </Content>
<ConsolePause>false</ConsolePause> <Content Include="$(MSBuildThisFileDirectory)native\win-x86\SDL2.dll">
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</PropertyGroup> <PackagePath>runtimes/win-x86/native</PackagePath>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> <Pack>true</Pack>
<DebugType>none</DebugType> </Content>
<Optimize>true</Optimize> <Content Include="$(MSBuildThisFileDirectory)native\osx-x64\libSDL2.dylib">
<OutputPath>bin\Release</OutputPath> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ErrorReport>prompt</ErrorReport> <PackagePath>runtimes/osx-x64/native</PackagePath>
<WarningLevel>4</WarningLevel> <Pack>true</Pack>
<PlatformTarget>x86</PlatformTarget> </Content>
<ConsolePause>false</ConsolePause> </ItemGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <ItemGroup>
</PropertyGroup> <Content Include="app.config">
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<DebugSymbols>true</DebugSymbols> </Content>
<DebugType>full</DebugType> </ItemGroup>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x64</PlatformTarget>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x64</PlatformTarget>
<ConsolePause>false</ConsolePause>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="src\SDL2.cs" />
<Compile Include="src\SDL2_image.cs" />
<Compile Include="src\SDL2_mixer.cs" />
<Compile Include="src\SDL2_ttf.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config">
<Link>$(TargetFileName).config</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
</Project> </Project>