Skip to content

Commit

Permalink
ICU4N.csproj: Added Target to set AlToolPath as in: dotnet/msbuild#59…
Browse files Browse the repository at this point in the history
  • Loading branch information
NightOwl888 committed Mar 14, 2022
1 parent b2ab2fa commit 3b23348
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ICU4N/ICU4N.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@
<ItemGroup Label="Specifies generated sattelite assemblies should be copied to the output folder (and dependent projects as well)">
<None Include="$(ICU4NSatelliteAssemblyOutputDir)/**/*.resources.dll" CopyToOutputDirectory="PreserveNewest" Visible="false"/>
</ItemGroup>

<Target Name="ALBeforeBuild" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<AlToolPath>$(TargetFrameworkSDKToolsDirectory)</AlToolPath>
</PropertyGroup>
</Target>

<Target Name="DownloadICU4J" BeforeTargets="ExecICU4JResourceConverter" Returns="$(ICU4JJarFilePath)" Condition=" '$(TargetFramework)' == '$(SatelliteAssemblyTargetFramework)' ">

Expand Down Expand Up @@ -147,7 +153,7 @@
<MakeDir Directories="$(ICU4NSatelliteAssemblyOutputDir)" Condition="!Exists('$(ICU4NSatelliteAssemblyOutputDir)')" />

<!-- Make invariant resources -->
<AL SdkToolsPath="$(TargetFrameworkSDKToolsDirectory)" EmbedResources="@(EmbeddedResources)" TargetType="library" TemplateFile="$(TemplateAssemblyFilePath)" Culture="" KeyFile="$(AssemblyOriginatorKeyFile)" OutputAssembly="$(ICU4NSatelliteAssemblyOutputDir)/$(AssemblyName).resources.dll" />
<AL EmbedResources="@(EmbeddedResources)" TargetType="library" TemplateFile="$(TemplateAssemblyFilePath)" Culture="" KeyFile="$(AssemblyOriginatorKeyFile)" OutputAssembly="$(ICU4NSatelliteAssemblyOutputDir)/$(AssemblyName).resources.dll" />

<!-- Make localized resources -->
<LinkAssemblies DotNetToolsDirectory="$(TargetFrameworkSDKToolsDirectory)" EmbedResources="@(FolderInLocale->'%(Files)')" Culture="%(FolderInLocale.Culture)" TemplateFile="$(TemplateAssemblyFilePath)" KeyFile="$(AssemblyOriginatorKeyFile)" OutputAssembly="$(ICU4NSatelliteAssemblyOutputDir)/%(FolderInLocale.Culture)/$(AssemblyName).resources.dll" />
Expand Down

0 comments on commit 3b23348

Please sign in to comment.