|
2 | 2 | <Project>
|
3 | 3 | <PropertyGroup>
|
4 | 4 | <_RuntimePackInWorkloadVersionCurrent>${PackageVersion}</_RuntimePackInWorkloadVersionCurrent>
|
| 5 | + <_RuntimePackInWorkloadVersion8>${PackageVersionNet8}</_RuntimePackInWorkloadVersion8> |
5 | 6 | <_RuntimePackInWorkloadVersion7>${PackageVersionNet7}</_RuntimePackInWorkloadVersion7>
|
6 | 7 | <_RuntimePackInWorkloadVersion6>${PackageVersionNet6}</_RuntimePackInWorkloadVersion6>
|
7 | 8 |
|
| 9 | + <TargetsNet9 Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and $([MSBuild]::VersionEquals('$(TargetFrameworkVersion)', '9.0'))">true</TargetsNet9> |
8 | 10 | <TargetsNet8 Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and $([MSBuild]::VersionEquals('$(TargetFrameworkVersion)', '8.0'))">true</TargetsNet8>
|
9 |
| - <TargetsNet6 Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and $([MSBuild]::VersionEquals('$(TargetFrameworkVersion)', '6.0'))">true</TargetsNet6> |
10 | 11 | <TargetsNet7 Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and $([MSBuild]::VersionEquals('$(TargetFrameworkVersion)', '7.0'))">true</TargetsNet7>
|
11 |
| - <TargetsCurrent Condition="'$(TargetsNet8)' == 'true'">true</TargetsCurrent> |
| 12 | + <TargetsNet6 Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and $([MSBuild]::VersionEquals('$(TargetFrameworkVersion)', '6.0'))">true</TargetsNet6> |
| 13 | + |
| 14 | + <TargetsCurrent Condition="'$(TargetsNet9)' == 'true'">true</TargetsCurrent> |
12 | 15 |
|
13 | 16 | <!-- override WorkloadDetectionWhen net7 == net8 -->
|
14 | 17 | <WasmNativeWorkload7 Condition="'${PackageVersionNet7}' == '${PackageVersion}'">$(WasmNativeWorkload8)</WasmNativeWorkload7>
|
15 | 18 | </PropertyGroup>
|
16 | 19 |
|
17 |
| - <Import Project="$(MSBuildThisFileDirectory)WorkloadManifest.Wasi.targets" /> |
| 20 | + <Import Project="$(MSBuildThisFileDirectory)WorkloadManifest.Wasi.targets" Condition="'$(RuntimeIdentifier)' == 'wasi-wasm'" /> |
18 | 21 |
|
19 | 22 | <PropertyGroup Condition="'$(RuntimeIdentifier)' == 'browser-wasm' and '$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
|
20 | 23 | <_BrowserWorkloadNotSupportedForTFM Condition="$([MSBuild]::VersionLessThan($(TargetFrameworkVersion), '6.0'))">true</_BrowserWorkloadNotSupportedForTFM>
|
|
31 | 34 |
|
32 | 35 | <PropertyGroup Condition="'$(RuntimeIdentifier)' == 'browser-wasm'">
|
33 | 36 | <SelfContained>true</SelfContained>
|
34 |
| - <WasmNativeWorkloadAvailable Condition="'$(TargetsNet7)' == 'true'">$(WasmNativeWorkload7)</WasmNativeWorkloadAvailable> |
| 37 | + <WasmNativeWorkloadAvailable Condition="'$(TargetsNet9)' == 'true'">$(WasmNativeWorkload9)</WasmNativeWorkloadAvailable> |
35 | 38 | <WasmNativeWorkloadAvailable Condition="'$(TargetsNet8)' == 'true'">$(WasmNativeWorkload8)</WasmNativeWorkloadAvailable>
|
| 39 | + <WasmNativeWorkloadAvailable Condition="'$(TargetsNet7)' == 'true'">$(WasmNativeWorkload7)</WasmNativeWorkloadAvailable> |
36 | 40 | <WasmNativeWorkloadAvailable Condition="'$(TargetsNet6)' == 'true'">$(WasmNativeWorkload)</WasmNativeWorkloadAvailable>
|
37 | 41 | <WasmNativeWorkloadAvailable Condition="'$(WasmNativeWorkloadAvailable)' == '' or '$(WasmNativeWorkload)' == 'false'">false</WasmNativeWorkloadAvailable>
|
38 | 42 | <WasmNativeWorkload>$(WasmNativeWorkloadAvailable)</WasmNativeWorkload>
|
|
141 | 145 | <Import Project="Sdk.targets" Sdk="Microsoft.NET.Runtime.MonoTargets.Sdk" />
|
142 | 146 | </ImportGroup>
|
143 | 147 |
|
144 |
| - <ImportGroup Condition="'$(TargetsCurrent)' == 'true' and '$(RuntimeIdentifier)' == 'wasi-wasm' and '$(UsingWasiRuntimeWorkload)' == 'true'"> |
| 148 | + <ImportGroup Condition="$([MSBuild]::VersionGreaterThanOrEquals('$(TargetFrameworkVersion)', '8.0')) and '$(RuntimeIdentifier)' == 'wasi-wasm' and '$(UsingWasiRuntimeWorkload)' == 'true'"> |
145 | 149 | <Import Project="Sdk.props" Sdk="Microsoft.NET.Runtime.MonoTargets.Sdk" />
|
146 | 150 | <Import Project="Sdk.props" Sdk="Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk" />
|
147 | 151 | <Import Project="Sdk.targets" Sdk="Microsoft.NET.Runtime.WebAssembly.Wasi.Sdk" />
|
148 | 152 | <Import Project="Sdk.targets" Sdk="Microsoft.NET.Runtime.MonoTargets.Sdk" />
|
149 | 153 | </ImportGroup>
|
150 | 154 |
|
151 |
| - <PropertyGroup Condition="'$(TargetsCurrent)' == 'true' and ('$(UsingMobileWorkload)' == 'true' or '$(RuntimeIdentifier)' == 'browser-wasm' or '$(RuntimeIdentifier)' == 'wasi-wasm')"> |
| 155 | + <PropertyGroup Condition="$([MSBuild]::VersionGreaterThanOrEquals('$(TargetFrameworkVersion)', '8.0')) and ('$(UsingMobileWorkload)' == 'true' or '$(RuntimeIdentifier)' == 'browser-wasm' or '$(RuntimeIdentifier)' == 'wasi-wasm')"> |
152 | 156 | <_MonoWorkloadTargetsMobile>true</_MonoWorkloadTargetsMobile>
|
153 | 157 | <_MonoWorkloadRuntimePackPackageVersion>$(_RuntimePackInWorkloadVersionCurrent)</_MonoWorkloadRuntimePackPackageVersion>
|
154 | 158 | <_KnownWebAssemblySdkPackVersion>$(_RuntimePackInWorkloadVersionCurrent)</_KnownWebAssemblySdkPackVersion>
|
|
163 | 167 | <SdkSupportedTargetPlatformVersion Include="1.0" />
|
164 | 168 | </ItemGroup>
|
165 | 169 |
|
166 |
| - <ItemGroup Condition="'$(TargetsCurrent)' == 'true' and '$(_MonoWorkloadTargetsMobile)' == 'true'"> |
| 170 | + <!-- Support for "wasi" target platform identifier --> |
| 171 | + <PropertyGroup Condition="'$(TargetPlatformIdentifier)' == 'wasi' and $([MSBuild]::VersionGreaterThanOrEquals('$(TargetFrameworkVersion)', '8.0'))"> |
| 172 | + <TargetPlatformSupported>true</TargetPlatformSupported> |
| 173 | + <TargetPlatformVersion Condition="'$(TargetPlatformVersion)' == ''">1.0</TargetPlatformVersion> |
| 174 | + </PropertyGroup> |
| 175 | + <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'wasi' and $([MSBuild]::VersionGreaterThanOrEquals('$(TargetFrameworkVersion)', '8.0'))"> |
| 176 | + <SdkSupportedTargetPlatformVersion Include="1.0" /> |
| 177 | + </ItemGroup> |
| 178 | + |
| 179 | + <ItemGroup Condition="(('$(RuntimeIdentifier)' == 'wasi-wasm' and '$(TargetsNet8)' == 'true') or '$(TargetsCurrent)' == 'true') and '$(_MonoWorkloadTargetsMobile)' == 'true'"> |
167 | 180 | <KnownRuntimePack Update="@(KnownRuntimePack)">
|
168 | 181 | <!-- FIXMEWASI: workaround for now -->
|
169 | 182 | <RuntimePackRuntimeIdentifiers Condition="'$(RuntimeIdentifier)' == 'wasi-wasm'">%(RuntimePackRuntimeIdentifiers);wasi-wasm</RuntimePackRuntimeIdentifiers>
|
|
212 | 225 | Importance="High" />
|
213 | 226 | </Target>
|
214 | 227 |
|
215 |
| - <Import Condition="'$(TargetsCurrent)' == 'true' and ('$(UsingBrowserRuntimeWorkload)' == 'true' or '$(UsingMobileWorkload)' == 'true')" |
| 228 | + <Import Condition="$([MSBuild]::VersionGreaterThanOrEquals('$(TargetFrameworkVersion)', '8.0')) and ('$(UsingBrowserRuntimeWorkload)' == 'true' or '$(UsingMobileWorkload)' == 'true')" |
216 | 229 | Project="$(MSBuildThisFileDirectory)WorkloadTelemetry.targets" />
|
217 | 230 | </Project>
|
0 commit comments