-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(localization): Add support satellite resource assemblies publishing
- Loading branch information
1 parent
e72efbd
commit bd0e1fd
Showing
3 changed files
with
160 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,79 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<Project> | ||
<Import Project="..\Uno.Wasm.Bootstrap\build\Uno.Wasm.Bootstrap.props" /> | ||
<Import Project="..\Uno.Wasm.Bootstrap\build\Uno.Wasm.Bootstrap.targets" /> | ||
<Import Project="..\Uno.Wasm.Bootstrap.DevServer\build\Uno.Wasm.Bootstrap.DevServer.targets" /> | ||
<Import Project="..\Uno.Wasm.Bootstrap\build\Uno.Wasm.Bootstrap.props" /> | ||
<Import Project="..\Uno.Wasm.Bootstrap\build\Uno.Wasm.Bootstrap.targets" /> | ||
<Import Project="..\Uno.Wasm.Bootstrap.DevServer\build\Uno.Wasm.Bootstrap.DevServer.targets" /> | ||
|
||
<ItemGroup> | ||
<None Include="WasmScripts\**\*.js" /> | ||
<None Include="WasmCSS\**\*.css" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="WasmScripts\**\*.js" /> | ||
<None Include="WasmCSS\**\*.css" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<EmbeddedResource Include="WasmScripts\**\*.js" /> | ||
<EmbeddedResource Include="WasmCSS\**\*.css" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="System.Web.Services.Description" Version="4.10.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<EmbeddedResource Include="WasmScripts\**\*.js" /> | ||
<EmbeddedResource Include="WasmCSS\**\*.css" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<AssemblyName>Uno.Wasm.SampleNet</AssemblyName> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<WasmShellMonoEnvironment Include="MONO_GC_PARAMS" Value="soft-heap-limit=512m,nursery-size=64m,evacuation-threshold=66,major=marksweep" /> | ||
<WasmShellMonoEnvironment Include="MONO_LOG_LEVEL" Value="debug" /> | ||
<WasmShellMonoEnvironment Include="MONO_LOG_MASK" Value="gc" /> | ||
</ItemGroup> | ||
|
||
<Target Name="AfterBuildValidation" DependsOnTargets="BuildDist" AfterTargets="AfterBuild"> | ||
<ItemGroup> | ||
<_AdditionalFile1 Include="SomeContent01.txt" /> | ||
<_AdditionalFile1 Include="SomeContent02.txt" /> | ||
<_AdditionalFile1 Include=".editorconfig" /> | ||
<_AdditionalFile1 Include="nuget.config" /> | ||
|
||
<_duplicateValidationItems Include="$(WasmShellOutputPackagePath)\**\System.Private.CoreLib.clr" /> | ||
<WasmShellMonoEnvironment Include="MONO_GC_PARAMS" Value="soft-heap-limit=512m,nursery-size=64m,evacuation-threshold=66,major=marksweep" /> | ||
<WasmShellMonoEnvironment Include="MONO_LOG_LEVEL" Value="debug" /> | ||
<WasmShellMonoEnvironment Include="MONO_LOG_MASK" Value="gc" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<_monoConfigJson>$([System.IO.File]::ReadAllText('$(WasmShellOutputPackagePath)\mono-config.json'))</_monoConfigJson> | ||
<_duplicateValidation>@(_duplicateValidationItems)</_duplicateValidation> | ||
</PropertyGroup> | ||
|
||
<Error Condition="!exists('$(WasmShellOutputPackagePath)\AdditionalContent\%(_AdditionalFile1.Identity)')" Text="%(_AdditionalFile1.Identity) does not exist in $(WasmShellOutputPackagePath)" /> | ||
<Error Condition="exists('$(WasmShellOutputPackagePath)\AdditionalContent\SomeContent04.txt')" Text="AdditionalContent/SomeContent04.tx should not exist in $(WasmShellOutputPackagePath)" /> | ||
<Error Condition="!exists('$(WasmShellOutputPackagePath)\..\web.config')" Text="web.config should exist in $(WasmShellOutputPackagePath)\.." /> | ||
|
||
<Error Condition="exists('$(WasmShellOutputDistPath)\AdditionalContent\%(_AdditionalFile1.Identity)')" Text="%(_AdditionalFile1.Identity) should not exist in $(WasmShellOutputDistPath)" /> | ||
<Error Condition="!exists('$(WasmShellOutputDistPath)\AdditionalContent\SomeContent03.txt')" Text="AdditionalContent/SomeContent03.txt does not exist in $(WasmShellOutputDistPath)" /> | ||
<Error Condition="exists('$(WasmShellOutputDistPath)\AdditionalContent\SomeContent04.txt')" Text="AdditionalContent/SomeContent04.txt should not exist in $(WasmShellOutputDistPath)" /> | ||
|
||
<Error Condition="$(_monoConfigJson.Contains('System.IO.Pipes.dll'))" Text="mono-config.json is incorrectly filtered" /> | ||
|
||
<Error Condition="$(_duplicateValidation.Contains(';'))" Text="Duplicate System.Private.CoreLib.clr detected" /> | ||
|
||
<Message Importance="high" Text="Output dist validated" /> | ||
</Target> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Uno.Wasm.Bootstrap.Cli\Uno.Wasm.Bootstrap.Cli.csproj"> | ||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly> | ||
<SkipGetTargetFrameworkProperties>true</SkipGetTargetFrameworkProperties> | ||
<UndefineProperties>TargetFramework</UndefineProperties> | ||
</ProjectReference> | ||
<ProjectReference Include="..\Uno.Wasm.Bootstrap\Uno.Wasm.Bootstrap.csproj"> | ||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly> | ||
<SkipGetTargetFrameworkProperties>true</SkipGetTargetFrameworkProperties> | ||
<UndefineProperties>TargetFramework</UndefineProperties> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<Target Name="AfterBuildValidation" DependsOnTargets="BuildDist" AfterTargets="AfterBuild"> | ||
<ItemGroup> | ||
<_AdditionalFile1 Include="SomeContent01.txt" /> | ||
<_AdditionalFile1 Include="SomeContent02.txt" /> | ||
<_AdditionalFile1 Include=".editorconfig" /> | ||
<_AdditionalFile1 Include="nuget.config" /> | ||
|
||
<_duplicateValidationItems Include="$(WasmShellOutputPackagePath)\**\System.Private.CoreLib.clr" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<_monoConfigJson>$([System.IO.File]::ReadAllText('$(WasmShellOutputPackagePath)\mono-config.json'))</_monoConfigJson> | ||
<_duplicateValidation>@(_duplicateValidationItems)</_duplicateValidation> | ||
</PropertyGroup> | ||
|
||
<Error Condition="!exists('$(WasmShellOutputPackagePath)\AdditionalContent\%(_AdditionalFile1.Identity)')" Text="%(_AdditionalFile1.Identity) does not exist in $(WasmShellOutputPackagePath)" /> | ||
<Error Condition="exists('$(WasmShellOutputPackagePath)\AdditionalContent\SomeContent04.txt')" Text="AdditionalContent/SomeContent04.tx should not exist in $(WasmShellOutputPackagePath)" /> | ||
<Error Condition="!exists('$(WasmShellOutputPackagePath)\..\web.config')" Text="web.config should exist in $(WasmShellOutputPackagePath)\.." /> | ||
|
||
<Error Condition="exists('$(WasmShellOutputDistPath)\AdditionalContent\%(_AdditionalFile1.Identity)')" Text="%(_AdditionalFile1.Identity) should not exist in $(WasmShellOutputDistPath)" /> | ||
<Error Condition="!exists('$(WasmShellOutputDistPath)\AdditionalContent\SomeContent03.txt')" Text="AdditionalContent/SomeContent03.txt does not exist in $(WasmShellOutputDistPath)" /> | ||
<Error Condition="exists('$(WasmShellOutputDistPath)\AdditionalContent\SomeContent04.txt')" Text="AdditionalContent/SomeContent04.txt should not exist in $(WasmShellOutputDistPath)" /> | ||
|
||
<Error Condition="!exists('$(WasmShellOutputDistPath)\managed\fr\System.Web.Services.Description.resources.clr')" | ||
Text="managed\fr\System.Web.Services.Description.resources.clr does not exist in $(WasmShellOutputDistPath)" /> | ||
<Error Condition="!exists('$(WasmShellOutputDistPath)\managed\pt-BR\System.Web.Services.Description.resources.clr')" | ||
Text="managed\pt-BR\System.Web.Services.Description.resources.clr does not exist in $(WasmShellOutputDistPath)" /> | ||
|
||
<Error Condition="$(_monoConfigJson.Contains('System.IO.Pipes.dll'))" Text="mono-config.json is incorrectly filtered" /> | ||
|
||
<Error Condition="$(_duplicateValidation.Contains(';'))" Text="Duplicate System.Private.CoreLib.clr detected" /> | ||
|
||
<Message Importance="high" Text="Output dist validated" /> | ||
</Target> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Uno.Wasm.Bootstrap.Cli\Uno.Wasm.Bootstrap.Cli.csproj"> | ||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly> | ||
<SkipGetTargetFrameworkProperties>true</SkipGetTargetFrameworkProperties> | ||
<UndefineProperties>TargetFramework</UndefineProperties> | ||
</ProjectReference> | ||
<ProjectReference Include="..\Uno.Wasm.Bootstrap\Uno.Wasm.Bootstrap.csproj"> | ||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly> | ||
<SkipGetTargetFrameworkProperties>true</SkipGetTargetFrameworkProperties> | ||
<UndefineProperties>TargetFramework</UndefineProperties> | ||
</ProjectReference> | ||
</ItemGroup> | ||
|
||
</Project> |