-
Notifications
You must be signed in to change notification settings - Fork 414
Expand file tree
/
Copy pathDirectory.Build.targets
More file actions
36 lines (30 loc) · 2.17 KB
/
Copy pathDirectory.Build.targets
File metadata and controls
36 lines (30 loc) · 2.17 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
<!-- Licensed under MIT No Attribution, see LICENSE file at the root. -->
<Project>
<!-- Continue the analyzer dependency plumbing from UnitsNet.Modular. -->
<Import Project="../Directory.Build.targets" />
<PropertyGroup Condition="'$(EmitCompilerGeneratedFiles)' == 'true'">
<CompilerGeneratedFilesOutputPath>$(MSBuildProjectDirectory)/obj/$(UnitsNetModularSampleDependencyMode)/$(Configuration)/$(TargetFramework)/Generated</CompilerGeneratedFilesOutputPath>
</PropertyGroup>
<Import Project="UnitsNet.Modular.LocalPackages.targets"
Condition="'$(UsesUnitsNetModular)' == 'true' and '$(UnitsNetModularSampleDependencyMode)' == 'LocalPackages'" />
<ItemGroup Condition="'$(UsesUnitsNetModular)' == 'true' and '$(UnitsNetModularSampleDependencyMode)' == 'ProjectReferences'">
<ProjectReference Include="$(MSBuildThisFileDirectory)..\UnitsNet.Modular\UnitsNet.Modular.csproj" />
<ProjectReference Include="$(MSBuildThisFileDirectory)..\UnitsNet.Modular.Generator\UnitsNet.Modular.Generator.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false" />
</ItemGroup>
<ItemGroup Condition="'$(UsesUnitsNetModular)' == 'true' and '$(UnitsNetModularSampleDependencyMode)' == 'LocalPackages'">
<PackageVersion Update="UnitsNet.Modular" Version="$(UnitsNetModularSampleLocalVersion)" />
<PackageReference Include="UnitsNet.Modular" />
</ItemGroup>
<ItemGroup Condition="'$(UsesUnitsNetModular)' == 'true' and '$(UnitsNetModularSampleDependencyMode)' == 'PublishedPackages'">
<PackageReference Include="UnitsNet.Modular" />
</ItemGroup>
<Target Name="ValidateUnitsNetModularSampleDependencyMode"
BeforeTargets="PrepareForBuild;CollectPackageReferences;AssignProjectConfiguration"
Condition="'$(UnitsNetModularSampleDependencyMode)' != 'ProjectReferences' and
'$(UnitsNetModularSampleDependencyMode)' != 'LocalPackages' and
'$(UnitsNetModularSampleDependencyMode)' != 'PublishedPackages'">
<Error Text="Unsupported UnitsNet.Modular sample platform '$(Platform)'. Choose ProjectReferences, LocalPackages, or PublishedPackages." />
</Target>
</Project>