mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Specify .NET Search by Build Type (#25837)
Co-authored-by: Travis Plunk (HE/HIM) <tplunk@ntdev.microsoft.com> Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
This commit is contained in:
co-authored by
Travis Plunk
Travis Plunk
parent
2fb12a31f3
commit
111a8e4b61
@@ -176,6 +176,27 @@
|
||||
<DebugType>portable</DebugType>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Define properties for Framework dependent deployments in Packages
|
||||
https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#apphostdotnetsearch
|
||||
For FxDependent, we want to search for the apphost in the Environment or global location,
|
||||
as this was not causing any issues.
|
||||
For FxDependentDeployment, we want to search ONLY in global location.
|
||||
For SelfContained, we want to search in the app local location.
|
||||
-->
|
||||
<PropertyGroup Condition=" '$(AppDeployment)' == 'FxDependent' ">
|
||||
<!-- Specify both to keep existing behavior because we have not had complaints about this scenario -->
|
||||
<AppHostDotNetSearch>EnvironmentVariable;Global</AppHostDotNetSearch>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(AppDeployment)' == 'FxDependentDeployment' ">
|
||||
<!-- If we specify Environment too, it searches that first, no matter what order we specify-->
|
||||
<AppHostDotNetSearch>Global</AppHostDotNetSearch>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(AppDeployment)' == 'SelfContained' ">
|
||||
<AppHostDotNetSearch>AppLocal</AppHostDotNetSearch>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Define all OS, release configuration properties -->
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
||||
<PublishReadyToRun>true</PublishReadyToRun>
|
||||
|
||||
Reference in New Issue
Block a user