-
Notifications
You must be signed in to change notification settings - Fork 4
/
Directory.Build.props
92 lines (76 loc) · 4.96 KB
/
Directory.Build.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<Project>
<!-- This PropertyGroup defines the location and version of Silverlight and SDK for .Net projects (Metadata projects) -->
<PropertyGroup>
<IsTestProject Condition="'$(IsTestProject)' == '' And ($(MSBuildProjectFile.Contains('.Test.')) Or $(MSBuildProjectDirectory.Contains('\Test\')))">true</IsTestProject>
<IsFrameworkProject Condition="'$(IsTestProject)' != 'true' and !$(MSBuildProjectFile.Contains('.Demo.')) ">true</IsFrameworkProject>
<DeterministicSourcePaths Condition="'$(BUILD_BUILDID)' != '' and '$(IsFrameworkProject)' == 'true'">true</DeterministicSourcePaths>
<!-- Use csharp 7.3 for all projects -->
<LangVersion Condition="'$(MSBuildProjectExtension)' == '.csproj'">7.3</LangVersion>
<SonarQubeTestProject Condition="'$(IsTestProject)' == 'true'">True</SonarQubeTestProject>
<GenerateDocumentationFile Condition="'$(IsFrameworkProject)' == 'true'">true</GenerateDocumentationFile>
<CopyLocalLockFileAssemblies Condition="'$(IsFrameworkProject)' == 'true'">false</CopyLocalLockFileAssemblies>
<!-- Setup signing-->
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)OpenRiaServices.M2M.snk</AssemblyOriginatorKeyFile>
<!-- Include symbol files (*.pdb) in the built .nupkg -->
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<!-- Common Assembly and Package Info-->
<Version>2.0.0</Version>
<Authors>Merijn de Jonge, OpenRiaServices</Authors>
<Company>Merijn de Jonge</Company>
<Product>OpenRiaServices.M2M</Product>
<Copyright>Copyright © Merijn de Jonge 2012 - 2014</Copyright>
<PackageProjectUrl>https://github.com/OpenRIAServices/OpenRiaServices.M2M/</PackageProjectUrl>
<RepositoryUrl>https://github.com/OpenRIAServices/OpenRiaServices.M2M.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageLicenseExpression>MS-PL</PackageLicenseExpression>
<PackageReleaseNotes>This version supports Open Ria Services 4.6.0+.</PackageReleaseNotes>
<PackageTags>OpenRiaServices;Many2Many;M2M4RIA;M2M</PackageTags>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
</PropertyGroup>
<!-- Add Silverlight build support -->
<PropertyGroup Condition=" '$(TargetFramework)' == 'sl5' ">
<NugetTargetMoniker>Silverlight,Version=v5.0</NugetTargetMoniker>
<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'sl5' and '$(MSBuildProjectExtension)' == '.csproj' ">
<LanguageTargets>$(MSBuildProgramFiles32)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Silverlight.CSharp.targets</LanguageTargets>
<DefineConstants>$(DefineConstants);SILVERLIGHT</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'sl5' and '$(MSBuildProjectExtension)' == '.vbproj' ">
<LanguageTargets>$(MSBuildProgramFiles32)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Silverlight.VisualBasic.targets</LanguageTargets>
<DefineConstants>$(DefineConstants),SILVERLIGHT=1</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'portable40-net45+sl5+win8' ">
<TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>Profile47</TargetFrameworkProfile>
<LanguageTargets>$(MSBuildExtensionsPath)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets</LanguageTargets>
<DefineConstants>$(DefineConstants);PORTABLE;PORTABLE47;SILVERLIGHT</DefineConstants>
</PropertyGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'sl5' ">
<Reference Include="mscorlib" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Windows" />
<Reference Include="System.ComponentModel.DataAnnotations">
<HintPath>$(MSBuildProgramFiles32)\Microsoft SDKs\Silverlight\v5.0\Libraries\Client\System.ComponentModel.DataAnnotations.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'portable40-net45+sl5+win8' ">
<Reference Include="mscorlib" />
<Reference Include="System" />
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System.Core" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Windows" />
</ItemGroup>
<!-- Enable source link, we really only want this for framework assemblies and CI builds
-->
<ItemGroup Condition="'$(IsFrameworkProject)' == 'true'">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-18618-05" PrivateAssets="All"/>
</ItemGroup>
</Project>