-
Notifications
You must be signed in to change notification settings - Fork 414
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
40 lines (34 loc) · 2.26 KB
/
Copy pathDirectory.Build.props
File metadata and controls
40 lines (34 loc) · 2.26 KB
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
<!-- Licensed under MIT No Attribution, see LICENSE file at the root. -->
<Project>
<!-- Continue the repository and UnitsNet.Modular build settings from the nearest parent file. -->
<Import Project="../Directory.Build.props" />
<PropertyGroup>
<!-- Rider and Visual Studio show these beside the ordinary Debug and Release configurations. -->
<Platforms>ProjectReferences;LocalPackages;PublishedPackages</Platforms>
<!-- Direct project builds without a solution platform retain the contributor-friendly mode. -->
<UnitsNetModularSampleDependencyMode
Condition="'$(Platform)' == '' or '$(Platform)' == 'AnyCPU'">ProjectReferences</UnitsNetModularSampleDependencyMode>
<UnitsNetModularSampleDependencyMode
Condition="'$(UnitsNetModularSampleDependencyMode)' == ''">$(Platform)</UnitsNetModularSampleDependencyMode>
<!-- PackageReference versions are intentionally controlled by this sample infrastructure. -->
<CentralPackageFloatingVersionsEnabled>true</CentralPackageFloatingVersionsEnabled>
<UnitsNetModularSampleUsePackagedAnalyzer
Condition="'$(UnitsNetModularSampleDependencyMode)' != 'ProjectReferences'">true</UnitsNetModularSampleUsePackagedAnalyzer>
<RestoreSources
Condition="'$(UnitsNetModularSampleDependencyMode)' == 'LocalPackages'">$(RepositoryLocalNuGetFeed)</RestoreSources>
<RestoreSources
Condition="'$(UnitsNetModularSampleDependencyMode)' == 'PublishedPackages'">https://api.nuget.org/v3/index.json</RestoreSources>
<!--
Keep the conventional obj root excluded from source globs. The SDK appends the custom
platform to intermediate paths, while NuGet restore and final outputs are isolated here.
-->
<BaseIntermediateOutputPath>obj/</BaseIntermediateOutputPath>
<MSBuildProjectExtensionsPath>obj/$(UnitsNetModularSampleDependencyMode)/</MSBuildProjectExtensionsPath>
<OutputPath>$(MSBuildThisFileDirectory)..\..\Artifacts\$(MSBuildProjectName)\$(UnitsNetModularSampleDependencyMode)</OutputPath>
</PropertyGroup>
<!-- Keep the shared package-refresh command visible and runnable from every sample project. -->
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)refresh-local-packages.ps1"
Link="refresh-local-packages.ps1" />
</ItemGroup>
</Project>