forked from chocolatey/choco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
29 lines (23 loc) · 1.08 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
<Project>
<!--
Setting nuget intermediate folder to src\obj\nuget\$(SolutionName) - avoid conflicts between
different .net platform - e.g. "net48" & "netcoreapp3.1"
Probing whether or not build is done from visual studio versus command line allows to avoid conflicts
between visual studio and command line execution ("build buildexe_win7")
-->
<PropertyGroup Condition=" '$(BuildingInsideVisualStudio)' != 'true' ">
<NugetSuffix>_msbuild</NugetSuffix>
</PropertyGroup>
<PropertyGroup Condition=" '$(BuildingFromCli)' == 'true' ">
<NugetSuffix>_msbuild</NugetSuffix>
</PropertyGroup>
<PropertyGroup Condition=" '$(PUBLISH_CHOCO)' != '' ">
<NugetSuffix>_ready2run</NugetSuffix>
</PropertyGroup>
<PropertyGroup Condition=" '$(MySolutionName)' == '' ">
<MySolutionName>$(SolutionName)</MySolutionName>
</PropertyGroup>
<PropertyGroup>
<BaseIntermediateOutputPath>$(MSBuildThisFileDirectory)src\obj\nuget\$(MySolutionName)$(NugetSuffix)\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
</PropertyGroup>
</Project>