Switch to short-form projects and build for both net461 and netstandard2.0. (#68)

* Use package references instead of packages.conf in preparation for move to short-form csprojs.

* Move to short-form csproj.

* Build for netstandard2.0.
This commit is contained in:
Rolf Bjarne Kvinge 2020-01-07 09:08:32 +01:00 коммит произвёл GitHub
Родитель 0f578f51e6
Коммит d34430aea5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 13 добавлений и 110 удалений

Просмотреть файл

@ -1,50 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{39DBAAF8-57A5-49A3-9E9A-11B545906AED}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>UnitTests</RootNamespace>
<AssemblyName>UnitTests</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<Optimize>true</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TargetFramework>net461</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="NUnit.ConsoleRunner" Version="3.10.0" />
</ItemGroup>
<ItemGroup>
<Compile Include="TestMobileProvisionIndex.cs" />
</ItemGroup>
<ItemGroup>
<None Include="TestData\Provisioning Profiles\29cbf4b4-a170-4c74-a29a-64ecd55b102e.mobileprovision" />
<None Include="TestData\Provisioning Profiles\7079f389-6ff4-4290-bf76-c8a222947616.mobileprovision" />
</ItemGroup>
<ItemGroup>
<Folder Include="TestData\" />
<Folder Include="TestData\Provisioning Profiles\" />
<ProjectReference Include="..\Xamarin.MacDev\Xamarin.MacDev.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Xamarin.MacDev\Xamarin.MacDev.csproj">
<Project>{CC3D9353-20C4-467A-8522-A9DED6F0C753}</Project>
<Name>Xamarin.MacDev</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
</Project>

Просмотреть файл

@ -1,83 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(PackagesDirectory)\MicroBuild.Core.0.3.0\build\MicroBuild.Core.props" Condition="Exists('$(PackagesDirectory)\MicroBuild.Core.0.3.0\build\MicroBuild.Core.props')"/>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{CC3D9353-20C4-467A-8522-A9DED6F0C753}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>Xamarin.MacDev</RootNamespace>
<AssemblyName>Xamarin.MacDev</AssemblyName>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<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>full</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MicroBuild.Core" Version="0.3.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<FilesToSign Include="$(OutDir)\$(AssemblyName).dll">
<Authenticode>Microsoft400</Authenticode>
</FilesToSign>
</ItemGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml" />
<Reference Include="Mono.Posix" />
<Reference Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="AnalyticsService.cs" />
<Compile Include="AppleCodeSigningIdentity.cs" />
<Compile Include="AppleIPhoneSdk.cs" />
<Compile Include="AppleSdk.cs" />
<Compile Include="AppleSdkSettings.cs" />
<Compile Include="AppleTVOSSdk.cs" />
<Compile Include="AppleWatchSdk.cs" />
<Compile Include="EntitlementExtensions.cs" />
<Compile Include="ExtendedVersion.cs" />
<Compile Include="HttpMessageHandler.cs" />
<Compile Include="IMonoMacSdk.cs" />
<Compile Include="IPhoneArchitecture.cs" />
<Compile Include="IPhoneCertificate.cs" />
<Compile Include="IPhoneDeviceCapabilities.cs" />
<Compile Include="IPhoneDeviceType.cs" />
<Compile Include="IPhoneImageSizes.cs" />
<Compile Include="IPhoneSdkVersion.cs" />
<Compile Include="Keychain.cs" />
<Compile Include="LoggingService.cs" />
<Compile Include="MacOSXSdk.cs" />
<Compile Include="MacOSXSdkVersion.cs" />
<Compile Include="ManifestExtensions.cs" />
<Compile Include="MobileProvision.cs" />
<Compile Include="MobileProvisionIndex.cs" />
<Compile Include="MonoMacSdk.cs" />
<Compile Include="MonoTouchSdk.cs" />
<Compile Include="PlatformAvailability.cs" />
<Compile Include="PListObject.cs" />
<Compile Include="ProcessArgumentBuilder.cs" />
<Compile Include="SQLite.cs" />
<Compile Include="XamMacSdk.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(PackagesDirectory)\MicroBuild.Core.0.3.0\build\MicroBuild.Core.targets" Condition="Exists('$(PackagesDirectory)\MicroBuild.Core.0.3.0\build\MicroBuild.Core.targets')"/>
</Project>