| <!-- | |
| *********************************************************************************************** | |
| Sdk.props | |
| WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | |
| created a backup copy. Incorrect changes to this file will make it | |
| impossible to load or build your projects from the command-line or the IDE. | |
| Copyright (c) .NET Foundation. All rights reserved. | |
| *********************************************************************************************** | |
| --> | |
| <Project ToolsVersion="14.0"> | |
| <PropertyGroup> | |
| <UsingMicrosoftNETSdkWebAssembly>true</UsingMicrosoftNETSdkWebAssembly> | |
| <!-- WASM projects defaults to browser-wasm --> | |
| <RuntimeIdentifier Condition="'$(RuntimeIdentifier)' == ''">browser-wasm</RuntimeIdentifier> | |
| <UseMonoRuntime>true</UseMonoRuntime> | |
| <SelfContained>true</SelfContained> | |
| <PublishTrimmed Condition="'$(PublishTrimmed)' == ''">true</PublishTrimmed> | |
| <!-- Disable accelerated builds in Visual Studio as the Wasm SDK needs to post process the outputs from the build and the feature won't work as expected. --> | |
| <AccelerateBuildsInVisualStudio>false</AccelerateBuildsInVisualStudio> | |
| <!-- JS Modules - We disable the manifest generation because we are going to inline the modules in the blazor.boot.json manifest --> | |
| <GenerateJSModuleManifest>false</GenerateJSModuleManifest> | |
| <_WasmSdkImportsMicrosoftNETSdkPublish Condition="'$(UsingMicrosoftNETSdkPublish)' != 'true'">true</_WasmSdkImportsMicrosoftNETSdkPublish> | |
| <_WasmSdkImportsMicrosoftNETSdkStaticWebAssets Condition="'$(UsingMicrosoftNETSdkStaticWebAssets)' != 'true'">true</_WasmSdkImportsMicrosoftNETSdkStaticWebAssets> | |
| <_WasmSdkImportsMicrosoftNetSdk Condition="'$(UsingMicrosoftNETSdk)' != 'true'">true</_WasmSdkImportsMicrosoftNetSdk> | |
| </PropertyGroup> | |
| <!-- For browser-wasm, we want to import StaticWebAssets SDK which imports SDK. --> | |
| <!-- For wasi-wasm, we don't want to import StaticWebAssets SDK. --> | |
| <!-- This file runs before user csproj is evaluated and thus the switch here is just for completeness - SWA props file will always be imported. --> | |
| <Import Sdk="Microsoft.NET.Sdk.StaticWebAssets" Project="Sdk.props" Condition="'$(RuntimeIdentifier)' == 'browser-wasm' and '$(_WasmSdkImportsMicrosoftNETSdkStaticWebAssets)' == 'true'" /> | |
| <Import Sdk="Microsoft.NET.Sdk" Project="Sdk.props" Condition="'$(RuntimeIdentifier)' == 'wasi-wasm' and '$(_WasmSdkImportsMicrosoftNetSdk)' == 'true'" /> | |
| <Import Sdk="Microsoft.NET.Sdk.Publish" Project="Sdk.props" Condition="'$(_WasmSdkImportsMicrosoftNETSdkPublish)' == 'true'" /> | |
| <Import Project="$(_WebAssemblyPropsFile)" Condition="'$(_WebAssemblyPropsFile)' != ''" /> | |
| </Project> | |