|
4 | 4 | <!-- Need to set to false to calculate RepositoryCommit. --> |
5 | 5 | <EnableSourceControlManagerQueries>false</EnableSourceControlManagerQueries> |
6 | 6 |
|
7 | | - <!-- We need to extract the non-portable OS name from the non-portable RID and pass that to installer build script --> |
8 | | - <OSNameOverride>$(TargetOS)</OSNameOverride> |
9 | | - <OSNameOverride Condition="'$(PortableBuild)' != 'true'">$(TargetRid.Substring(0, $(TargetRid.IndexOf("-"))))</OSNameOverride> |
10 | | - |
11 | 7 | <!-- Use the repo root build script --> |
12 | 8 | <BuildScript>$(ProjectDirectory)build$(ShellExtension)</BuildScript> |
13 | 9 |
|
14 | 10 | <!-- Restore and Build actions are already passed in by the root script. --> |
15 | 11 | <BuildActions>$(FlagParameterPrefix)pack $(FlagParameterPrefix)publish</BuildActions> |
16 | 12 |
|
17 | | - <BuildArgs>$(BuildArgs) $(FlagParameterPrefix)runtime-id $(TargetRid)</BuildArgs> |
18 | | - |
19 | 13 | <!-- |
20 | 14 | Setting NETCoreAppMaximumVersion to a high version so that the sdk doesn't complain if we're restoring/publishing for a higher version than the sdk. |
21 | 15 | See https://github.com/dotnet/sdk/issues/1512#issuecomment-377082883 |
22 | 16 | --> |
23 | 17 | <BuildArgs>$(BuildArgs) /p:NETCoreAppMaximumVersion=99.9</BuildArgs> |
24 | | - <BuildArgs>$(BuildArgs) /p:OSName=$(OSNameOverride)</BuildArgs> |
| 18 | + <!-- We need to extract the non-portable OS name from the non-portable RID and pass that to installer build script. |
| 19 | + This should not happen except when building non-portable. installer generally extracts the OSName from the host OS, |
| 20 | + or from the Rid if supplied. --> |
| 21 | + <BuildArgs Condition="$(PortableBuild) != 'true'">$(BuildArgs) /p:OSName=$(TargetRid.Substring(0, $(TargetRid.IndexOf("-"))))</BuildArgs> |
25 | 22 | <BuildArgs>$(BuildArgs) /p:PortableOSName=$(__PortableTargetOS)</BuildArgs> |
26 | 23 | <BuildArgs>$(BuildArgs) /p:Rid=$(TargetRid)</BuildArgs> |
27 | 24 | <BuildArgs>$(BuildArgs) /p:Architecture=$(TargetArchitecture)</BuildArgs> |
|
30 | 27 | <BuildArgs Condition="'$(TargetOS)' != 'windows'">$(BuildArgs) /p:AspNetCoreInstallerRid=$(TargetRid)</BuildArgs> |
31 | 28 | <!-- installer always wants to build portable on FreeBSD --> |
32 | 29 | <BuildArgs Condition="'$(TargetOS)' == 'freebsd' and '$(DotNetBuildSourceOnly)' == 'true'">$(BuildArgs) /p:PortableBuild=true</BuildArgs> |
33 | | - <BuildArgs Condition="'$(TargetOS)' != 'windows'">$(BuildArgs) /p:CoreSetupRid=$(TargetRid)</BuildArgs> |
| 30 | + <BuildArgs Condition="'$(TargetOS)' != 'windows'">$(BuildArgs) /p:NetRuntimeRid=$(TargetRid)</BuildArgs> |
| 31 | + <!-- https://github.com/dotnet/source-build/issues/4138 --> |
| 32 | + <BuildArgs Condition="'$(TargetOS)' != 'windows' and '$(TargetOS)' != 'osx'">$(BuildArgs) /p:SkipBuildingInstallers=true</BuildArgs> |
34 | 33 |
|
35 | 34 | <BuildArgs>$(BuildArgs) /p:PublicBaseURL=file:%2F%2F$(ArtifactsAssetsDir)</BuildArgs> |
36 | | - |
| 35 | + <!-- In non-source-only scenarios, currently consume aspnetcore from the normal public base url --> |
| 36 | + <BuildArgs>$(BuildArgs) /p:FallbackPublicBaseURL=https://dotnetbuilds.blob.core.windows.net/public/</BuildArgs> |
37 | 37 | <BuildArgs>$(BuildArgs) /p:UsePortableLinuxSharedFramework=false</BuildArgs> |
38 | 38 |
|
39 | 39 | <BuildArgs Condition="'$(PgoInstrument)' == 'true'">$(BuildArgs) /p:PgoInstrument=true</BuildArgs> |
|
74 | 74 |
|
75 | 75 | <ItemGroup> |
76 | 76 | <EnvironmentVariables Include="CLIBUILD_SKIP_TESTS=true" /> |
77 | | - |
78 | | - <!-- Disable bundled tools until we can figure out: |
79 | | - Unable to find package dotnet-dev-certs. |
80 | | - Unable to find package dotnet-ef. |
81 | | - Unable to find package dotnet-sql-cache. |
82 | | - Unable to find package dotnet-user-secrets. |
83 | | - Unable to find package dotnet-user-jwts. |
84 | | - Unable to find package dotnet-watch. --> |
85 | | - <EnvironmentVariables Include="CLIBUILD_SKIP_BUNDLEDDOTNETTOOLS=true" /> |
| 77 | + <!-- https://github.com/dotnet/source-build/issues/4115. --> |
| 78 | + <EnvironmentVariables Include="PublishWindowsPdb=false" /> |
86 | 79 | </ItemGroup> |
87 | 80 |
|
88 | 81 | <Target Name="GetInputsOutputForCreatePrivateSourceBuiltArtifactsArchive" |
|
0 commit comments