forked from rajyraman/Dataverse-LINQPad-Driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
59 lines (51 loc) · 3.07 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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Set Default Properties -->
<PropertyGroup>
<!--
See: https://learn.microsoft.com/en-us/visualstudio/msbuild/customize-your-build?view=vs-2022
-->
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
<!-- SolutionDir is not defined when building projects explicitly -->
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
</PropertyGroup>
<!-- Set Folder Variables -->
<PropertyGroup>
<WorkspaceFolder>$(MSBuildThisFileDirectory.TrimEnd('\/'))</WorkspaceFolder>
<OutNoSlash>$(WorkspaceFolder)/bin/$(Configuration)/$(Platform)$(TargetArchitecture)</OutNoSlash>
<IntNoSlash>$(WorkspaceFolder)/.build/$(MSBuildProjectName)/$(Configuration)/$(Platform)$(TargetArchitecture)</IntNoSlash>
</PropertyGroup>
<!-- Set Base Variables -->
<PropertyGroup>
<!-- SolutionDir is not defined when building projects explicitly -->
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(WorkspaceFolder)</SolutionDir>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
<VSToolsPath
Condition="'$(VSToolsPath)' == '' and Exists('$(MSBuildExtensionsPath32)/Microsoft/VisualStudio/v$(VisualStudioVersion)')"
>$(MSBuildExtensionsPath32)/Microsoft/VisualStudio/v$(VisualStudioVersion)</VSToolsPath>
<NoWarn>IDE0040;IDE0028;IDE0022;IDE0055;IDE0008;IDE0011;IDE0021;IDE0025;IDE0045;IDE0046;IDE0047;IDE0052;IDE0065;CA1871;IDE0078;IDE0160;IDE0290;IDE0300;IDE0305;IDE1006;MSB3277;NU1504;$(NoWarn)</NoWarn>
</PropertyGroup>
<!-- Normalize Output Paths -->
<PropertyGroup>
<OutputPath>$([System.IO.Path]::Combine($(OutNoSlash),$(DirectorySeparatorChar)))</OutputPath>
<IntermediateOutputPath>$([System.IO.Path]::Combine($(IntNoSlash),$(DirectorySeparatorChar)))</IntermediateOutputPath>
</PropertyGroup>
<!-- Set Base Paths -->
<PropertyGroup>
<!--
We intentionally do NOT set 'OutDir' and 'IntDir' since we would rather rely on
internal implementation to set these.
-->
<BaseOutputPath>$(OutputPath)</BaseOutputPath>
<BaseIntermediateOutputPath>$(IntermediateOutputPath)</BaseIntermediateOutputPath>
<DocumentationFile>$(IntNoSlash)/$(MSBuildProjectName).xml</DocumentationFile>
<TransformOnBuild>true</TransformOnBuild>
<OverwriteReadOnlyOutputFiles>true</OverwriteReadOnlyOutputFiles>
<TransformOutOfDateOnly>true</TransformOutOfDateOnly>
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<Deterministic>true</Deterministic>
<UseCommonOutputDirectory>false</UseCommonOutputDirectory>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
</Project>