|
1 |
| -<Project Sdk="Microsoft.NET.Sdk"> |
| 1 | +<Project Sdk="MSBuild.Sdk.Extras"> |
2 | 2 | <PropertyGroup>
|
3 | 3 | <AssemblyName>protobuf-net</AssemblyName>
|
4 | 4 | <Title>protobuf-net</Title>
|
5 | 5 | <Description>Provides simple access to fast and efficient "Protocol Buffers" serialization from .NET applications</Description>
|
6 |
| - <TargetFrameworks>net20;net35;net40;netstandard1.0;netstandard1.3;netstandard2.0</TargetFrameworks> |
| 6 | + <TargetFrameworks>net20;net35;net40;netstandard1.0;netstandard1.3;netstandard2.0;uap10.0</TargetFrameworks> |
7 | 7 | <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
8 | 8 | <DefineConstants>EMIT_ASSEMBLY_INFO</DefineConstants>
|
9 | 9 | <!-- new build tools spit these out -->
|
|
24 | 24 | <PropertyGroup Condition="'$(TargetFramework)' == 'net20'">
|
25 | 25 | <FeatureServiceModel>false</FeatureServiceModel>
|
26 | 26 | </PropertyGroup>
|
| 27 | + <PropertyGroup Condition="'$(TargetFramework)' == 'uap10.0'"> |
| 28 | + <FeatureServiceModel>false</FeatureServiceModel> |
| 29 | + <FeatureCompiler>false</FeatureCompiler> |
| 30 | + <PlatformBinaryFormatter>false</PlatformBinaryFormatter> |
| 31 | + <DefineConstants>$(DefineConstants);COREFX;UAP</DefineConstants> |
| 32 | + </PropertyGroup> |
27 | 33 | <PropertyGroup Condition="'$(TargetFramework)' == 'netstandard1.0'">
|
28 | 34 | <DefineConstants>$(DefineConstants);PROFILE259;FEAT_SAFE</DefineConstants>
|
29 | 35 | <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
|
65 | 71 | <Reference Include="System.Configuration" />
|
66 | 72 | <Reference Include="System.Runtime.Serialization" />
|
67 | 73 | </ItemGroup>
|
68 |
| - <ItemGroup Condition="'$(ImportLibs)' == 'core'"> |
69 |
| - <!-- could make this more granular to respect the options, but no need yet --> |
| 74 | + <ItemGroup Condition="'$(ImportLibs)' == 'core' and '$(FeatureCompiler)' == 'true'"> |
70 | 75 | <PackageReference Include="System.Reflection.Emit" Version="4.3.0" />
|
71 | 76 | <PackageReference Include="System.Reflection.Emit.Lightweight" Version="4.3.0" />
|
| 77 | + </ItemGroup> |
| 78 | + <ItemGroup Condition="'$(ImportLibs)' == 'core'"> |
72 | 79 | <PackageReference Include="System.Reflection.TypeExtensions" Version="4.4.0" />
|
73 | 80 | <PackageReference Include="System.Xml.XmlSerializer" Version="4.3.0" />
|
74 | 81 | <PackageReference Include="System.Runtime.Serialization.Primitives" Version="4.3.0" />
|
|
0 commit comments