Use version numbers in dotnet.js pack output (#1985)

* Use version numbers in dotnet.js pack output
This commit is contained in:
Pranav K 2020-03-03 09:15:57 -08:00 коммит произвёл GitHub
Родитель 3b691efded
Коммит 01064911ba
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 13 добавлений и 3 удалений

Просмотреть файл

@ -17,7 +17,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<WasmItemsToCopy Include="$(MonoIncomingDir)wasm\**" /> <WasmItemsToCopy Include="$(MonoIncomingDir)wasm\*" />
<BclItemsToCopy Include="$(MonoIncomingDir)bcl\**" /> <BclItemsToCopy Include="$(MonoIncomingDir)bcl\**" />
<FrameworkItemsToCopy Include="$(MonoIncomingDir)framework\**" /> <FrameworkItemsToCopy Include="$(MonoIncomingDir)framework\**" />
<BclWipeSpecFiles Include="$(BclWipeSpecDir)**" /> <BclWipeSpecFiles Include="$(BclWipeSpecDir)**" />
@ -25,10 +25,20 @@
<Target Name="OptimizeMono" DependsOnTargets="OptimizeMonoWasm; OptimizeBcl" BeforeTargets="Build" /> <Target Name="OptimizeMono" DependsOnTargets="OptimizeMonoWasm; OptimizeBcl" BeforeTargets="Build" />
<Target Name="OptimizeMonoWasm" Inputs="@(WasmItemsToCopy)" Outputs="@(WasmItemsToCopy->'$(MonoDistDir)wasm\%(RecursiveDir)%(FileName)%(Extension)')"> <Target Name="OptimizeMonoWasm">
<ItemGroup>
<_WasmItemsToCopy Include="@(WasmItemsToCopy)"
DestinationPath="$(MonoDistDir)wasm\%(RecursiveDir)%(FileName)%(Extension)"
Condition="'%(Extension)'!='.js'" />
<_WasmItemsToCopy Include="@(WasmItemsToCopy)"
DestinationPath="$(MonoDistDir)wasm\%(RecursiveDir)%(FileName).$(PackageVersion)%(Extension)"
Condition="'%(Extension)'=='.js'" />
</ItemGroup>
<!-- TODO: Implement WASM code stripping like in prototype --> <!-- TODO: Implement WASM code stripping like in prototype -->
<Message Importance="High" Text="Creating optimized Mono WebAssembly build" /> <Message Importance="High" Text="Creating optimized Mono WebAssembly build" />
<Copy SourceFiles="@(WasmItemsToCopy)" DestinationFiles="@(WasmItemsToCopy->'$(MonoDistDir)wasm\%(RecursiveDir)%(FileName)%(Extension)')" /> <Copy SourceFiles="@(_WasmItemsToCopy)" DestinationFiles="%(_WasmItemsToCopy.DestinationPath)" />
</Target> </Target>
<Target Name="OptimizeBcl" Inputs="@(BclItemsToCopy);@(BclWipeSpecFiles)" Outputs="@(BclItemsToCopy->'$(MonoDistDir)bcl\%(RecursiveDir)%(FileName)%(Extension)')"> <Target Name="OptimizeBcl" Inputs="@(BclItemsToCopy);@(BclWipeSpecFiles)" Outputs="@(BclItemsToCopy->'$(MonoDistDir)bcl\%(RecursiveDir)%(FileName)%(Extension)')">