You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
3.9 KiB
82 lines
3.9 KiB
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|
|
|
<UsingTask TaskName="Microsoft.Build.Tasks.CreateVisualBasicManifestResourceName" AssemblyName="Microsoft.Build.Tasks, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> |
|
|
|
<PropertyGroup> |
|
<MSBuildAllProjects>$(MSBuildAllProjects);$(MonoBuildTasksPath)\Mono.Build.CSharp.targets</MSBuildAllProjects> |
|
</PropertyGroup> |
|
|
|
<PropertyGroup> |
|
<CreateManifestResourceNamesDependsOn></CreateManifestResourceNamesDependsOn> |
|
</PropertyGroup> |
|
<Target |
|
Name="CreateManifestResourceNames" |
|
Condition="'@(ResxWithNoCulture)@(ResxWithCulture)@(NonResxWithNoCulture)@(NonResxWithCulture)'!=''" |
|
DependsOnTargets="$(CreateManifestResourceNamesDependsOn)" |
|
> |
|
|
|
<!-- Create the target resource names for non-culture resx files. --> |
|
<CreateVisualBasicManifestResourceName Condition="'@(ResxWithNoCulture)'!=''" |
|
ResourceFiles="@(ResxWithNoCulture)" |
|
RootNamespace="$(RootNamespace)"> |
|
|
|
<Output TaskParameter="ManifestResourceNames" ItemName="ManifestResourceWithNoCultureName"/> |
|
|
|
</CreateVisualBasicManifestResourceName> |
|
|
|
<!-- Create the target resource names for culture resx files. --> |
|
<CreateVisualBasicManifestResourceName Condition="'@(ResxWithCulture)'!=''" |
|
ResourceFiles="@(ResxWithCulture)" |
|
RootNamespace="$(RootNamespace)"> |
|
|
|
<Output TaskParameter="ManifestResourceNames" ItemName="ManifestResourceWithCultureName"/> |
|
|
|
</CreateVisualBasicManifestResourceName> |
|
|
|
<!-- Create the target resource names for non-culture non-resx files. --> |
|
<CreateVisualBasicManifestResourceName Condition="'@(NonResxWithNoCulture)'!=''" |
|
ResourceFiles="@(NonResxWithNoCulture)" |
|
RootNamespace="$(RootNamespace)"> |
|
|
|
<Output TaskParameter="ManifestResourceNames" ItemName="ManifestNonResxWithNoCulture"/> |
|
|
|
</CreateVisualBasicManifestResourceName> |
|
|
|
<!-- Create the target resource names for culture non-resx files. --> |
|
<CreateVisualBasicManifestResourceName Condition="'@(NonResxWithCulture)'!=''" |
|
ResourceFiles="@(NonResxWithCulture)" |
|
RootNamespace="$(RootNamespace)"> |
|
|
|
<Output TaskParameter="ManifestResourceNames" ItemName="ManifestNonResxWithCulture"/> |
|
|
|
</CreateVisualBasicManifestResourceName> |
|
</Target> |
|
|
|
<PropertyGroup> |
|
<!-- "None" is not technically a valid DebugType, so we can't pass it in as such |
|
to the compiler. So here, we modify the properties so they make sense. --> |
|
<DebugSymbols Condition=" '$(DebugType)' == 'none' ">false</DebugSymbols> |
|
<DebugType Condition=" '$(DebugType)' == 'none' "></DebugType> |
|
|
|
<!-- Provide a facility to override UseHostCompilerIfAvailable--> |
|
<UseHostCompilerIfAvailable Condition=" '$(UseHostCompilerIfAvailable)' == ''">true</UseHostCompilerIfAvailable> |
|
</PropertyGroup> |
|
|
|
<ItemGroup> |
|
<DocFileItem Include="$(IntermediateOutputPath)$(DocumentationFile)" Condition="'$(DocumentationFile)'!=''"> |
|
<InProject>false</InProject> |
|
</DocFileItem> |
|
</ItemGroup> |
|
|
|
<PropertyGroup> |
|
<CoreCompileDependsOn>_ComputeNonExistentFileProperty</CoreCompileDependsOn> |
|
</PropertyGroup> |
|
|
|
<!-- Use Microsoft's C# standard targets --> |
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> |
|
|
|
<!-- Mono imports --> |
|
<Import Condition=" '$(MonoTargetFrameworkVersion)' == 'v1.1' " Project="$(MonoBuildTasksPath)\SharpDevelop.Build.Mono.Mcs.targets"/> |
|
<Import Condition=" '$(MonoTargetFrameworkVersion)' == 'v2.0' " Project="$(MonoBuildTasksPath)\SharpDevelop.Build.Mono.Gmcs.targets"/> |
|
<Import Condition=" '$(MonoTargetFrameworkVersion)' == 'v4.0' " Project="$(MonoBuildTasksPath)\SharpDevelop.Build.Mono.Dmcs.targets"/> |
|
</Project>
|
|
|