[msbuild] Add props and targets files for Visual Basic.
These are just the C# versions changed just enough to use Visual Basic instead of C#.
This commit is contained in:
Родитель
eb7914cfc2
Коммит
e0d64e8f61
|
@ -1942,6 +1942,7 @@ global using nfloat = global::System.Runtime.InteropServices.NFloat%3B
|
|||
<_ProjectLanguage>$(Language)</_ProjectLanguage>
|
||||
<_ProjectLanguage Condition="'$(_ProjectLanguage)' == '' Or '$(_ProjectLanguage)' == 'C#' ">CSharp</_ProjectLanguage>
|
||||
<_ProjectLanguage Condition="'$(_ProjectLanguage)' == 'F#' ">FSharp</_ProjectLanguage>
|
||||
<_ProjectLanguage Condition="'$(_ProjectLanguage)' == 'VB' ">VisualBasic</_ProjectLanguage>
|
||||
|
||||
<_TargetsDirectory>$(_XamarinSdkRootDirectory)\tools\msbuild\$(_PlatformName)\</_TargetsDirectory>
|
||||
</PropertyGroup>
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
<!--
|
||||
***********************************************************************************************
|
||||
Xamarin.Mac.AppExtension.VisualBasic.targets
|
||||
|
||||
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.
|
||||
|
||||
This file imports the version- and platform-specific targets for the project importing
|
||||
this file. This file also defines targets to produce an error if the specified targets
|
||||
file does not exist, but the project is built anyway (command-line or IDE build).
|
||||
|
||||
Copyright (C) 2014 Xamarin. All rights reserved.
|
||||
***********************************************************************************************
|
||||
-->
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.targets"
|
||||
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.targets')"/>
|
||||
|
||||
<PropertyGroup>
|
||||
<!-- Version/fx properties -->
|
||||
<TargetFrameworkVersion Condition="'$(TargetFrameworkIdentifier)' == '' And '$(TargetFrameworkVersion)' ==''">v4.5</TargetFrameworkVersion>
|
||||
|
||||
<!-- This must be set before importing Microsoft.VisualBasic.targets -->
|
||||
<!-- See Xamarin.iOS.AppExtension.VisualBasic.targets for a detailed explanation of this variable -->
|
||||
<CopyNuGetImplementations Condition="'$(CopyNuGetImplementations)' == ''">true</CopyNuGetImplementations>
|
||||
|
||||
<!-- Enable nuget package conflict resolution -->
|
||||
<!-- This must be set before importing Microsoft.VisualBasic.targets -->
|
||||
<ResolveAssemblyConflicts>true</ResolveAssemblyConflicts>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" Condition="'$(UsingAppleNETSdk)' != 'true'" />
|
||||
<Import Project="Xamarin.Mac.AppExtension.Common.targets" />
|
||||
|
||||
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.targets"
|
||||
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.targets')"/>
|
||||
</Project>
|
|
@ -0,0 +1,36 @@
|
|||
<!--
|
||||
***********************************************************************************************
|
||||
Xamarin.Mac.VisualBasic.targets
|
||||
|
||||
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.
|
||||
|
||||
This file imports the version- and platform-specific targets for the project importing
|
||||
this file. This file also defines targets to produce an error if the specified targets
|
||||
file does not exist, but the project is built anyway (command-line or IDE build).
|
||||
|
||||
Copyright (C) 2014 Xamarin. All rights reserved.
|
||||
***********************************************************************************************
|
||||
-->
|
||||
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.targets"
|
||||
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.targets')"/>
|
||||
|
||||
<PropertyGroup>
|
||||
<!-- Version/fx properties -->
|
||||
<TargetFrameworkVersion Condition="'$(TargetFrameworkIdentifier)' == '' And '$(TargetFrameworkVersion)' == ''">v4.5</TargetFrameworkVersion>
|
||||
|
||||
<!-- Enable nuget package conflict resolution -->
|
||||
<!-- This must be set before importing Microsoft.VisualBasic.targets -->
|
||||
<ResolveAssemblyConflicts>true</ResolveAssemblyConflicts>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" Condition="'$(UsingAppleNETSdk)' != 'true'" />
|
||||
|
||||
<Import Project="Xamarin.Mac.Common.targets" />
|
||||
|
||||
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.targets"
|
||||
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.targets')"/>
|
||||
</Project>
|
|
@ -0,0 +1,32 @@
|
|||
<!--
|
||||
***********************************************************************************************
|
||||
Xamarin.MacCatalyst.VisualBasic.targets
|
||||
|
||||
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.
|
||||
|
||||
This file imports the version- and platform-specific targets for the project importing
|
||||
this file. This file also defines targets to produce an error if the specified targets
|
||||
file does not exist, but the project is built anyway (command-line or IDE build).
|
||||
|
||||
Copyright (C) 2015-2016 Xamarin. All rights reserved.
|
||||
***********************************************************************************************
|
||||
-->
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.targets"
|
||||
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.targets')"/>
|
||||
|
||||
<PropertyGroup>
|
||||
<!-- Version/fx properties -->
|
||||
<TargetFrameworkIdentifier Condition="'$(TargetFrameworkIdentifier)' == ''">Xamarin.MacCatalyst</TargetFrameworkIdentifier>
|
||||
<TargetFrameworkVersion Condition="'$(TargetFrameworkVersion)' == ''">v1.0</TargetFrameworkVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" Condition="'$(UsingAppleNETSdk)' != 'true'" />
|
||||
|
||||
<Import Project="Xamarin.MacCatalyst.Common.targets" />
|
||||
|
||||
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.targets"
|
||||
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.targets')"/>
|
||||
</Project>
|
|
@ -0,0 +1,39 @@
|
|||
<!--
|
||||
***********************************************************************************************
|
||||
Xamarin.TVOS.AppExtension.VisualBasic.targets
|
||||
|
||||
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.
|
||||
|
||||
This file imports the version- and platform-specific targets for the project importing
|
||||
this file. This file also defines targets to produce an error if the specified targets
|
||||
file does not exist, but the project is built anyway (command-line or IDE build).
|
||||
|
||||
Copyright (C) 2014-2016 Xamarin. All rights reserved.
|
||||
***********************************************************************************************
|
||||
-->
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.targets"
|
||||
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.targets')"/>
|
||||
|
||||
<PropertyGroup>
|
||||
<!-- Version/fx properties -->
|
||||
<TargetFrameworkIdentifier Condition="'$(TargetFrameworkIdentifier)' == ''">Xamarin.TVOS</TargetFrameworkIdentifier>
|
||||
<TargetFrameworkVersion Condition="'$(TargetFrameworkVersion)' == ''">v1.0</TargetFrameworkVersion>
|
||||
|
||||
<!-- This must be set before importing Microsoft.VisualBasic.targets -->
|
||||
<!-- See Xamarin.iOS.AppExtension.VisualBasic.targets for a detailed explanation of this variable -->
|
||||
<CopyNuGetImplementations Condition="'$(CopyNuGetImplementations)' == ''">true</CopyNuGetImplementations>
|
||||
|
||||
<!-- Enable nuget package conflict resolution -->
|
||||
<!-- This must be set before importing Microsoft.VisualBasic.targets -->
|
||||
<ResolveAssemblyConflicts>true</ResolveAssemblyConflicts>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" Condition="'$(UsingAppleNETSdk)' != 'true'" />
|
||||
<Import Project="Xamarin.TVOS.AppExtension.Common.targets" />
|
||||
|
||||
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.targets"
|
||||
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.targets')"/>
|
||||
</Project>
|
|
@ -0,0 +1,35 @@
|
|||
<!--
|
||||
***********************************************************************************************
|
||||
Xamarin.TVOS.VisualBasic.targets
|
||||
|
||||
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.
|
||||
|
||||
This file imports the version- and platform-specific targets for the project importing
|
||||
this file. This file also defines targets to produce an error if the specified targets
|
||||
file does not exist, but the project is built anyway (command-line or IDE build).
|
||||
|
||||
Copyright (C) 2015-2016 Xamarin. All rights reserved.
|
||||
***********************************************************************************************
|
||||
-->
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.targets"
|
||||
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.targets')"/>
|
||||
|
||||
<PropertyGroup>
|
||||
<!-- Version/fx properties -->
|
||||
<TargetFrameworkIdentifier Condition="'$(TargetFrameworkIdentifier)' == ''">Xamarin.TVOS</TargetFrameworkIdentifier>
|
||||
<TargetFrameworkVersion Condition="'$(TargetFrameworkVersion)' == ''">v1.0</TargetFrameworkVersion>
|
||||
|
||||
<!-- Enable nuget package conflict resolution -->
|
||||
<!-- This must be set before importing Microsoft.VisualBasic.targets -->
|
||||
<ResolveAssemblyConflicts>true</ResolveAssemblyConflicts>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" Condition="'$(UsingAppleNETSdk)' != 'true'" />
|
||||
<Import Project="Xamarin.TVOS.Common.targets" />
|
||||
|
||||
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.targets"
|
||||
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.targets')"/>
|
||||
</Project>
|
|
@ -0,0 +1,51 @@
|
|||
<!--
|
||||
***********************************************************************************************
|
||||
Xamarin.iOS.AppExtension.VisualBasic.targets
|
||||
|
||||
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.
|
||||
|
||||
This file imports the version- and platform-specific targets for the project importing
|
||||
this file. This file also defines targets to produce an error if the specified targets
|
||||
file does not exist, but the project is built anyway (command-line or IDE build).
|
||||
|
||||
Copyright (C) 2014-2016 Xamarin. All rights reserved.
|
||||
***********************************************************************************************
|
||||
-->
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.targets"
|
||||
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.targets')"/>
|
||||
|
||||
<PropertyGroup>
|
||||
<!-- Version/fx properties -->
|
||||
<TargetFrameworkIdentifier Condition="'$(TargetFrameworkIdentifier)' == ''">Xamarin.iOS</TargetFrameworkIdentifier>
|
||||
<TargetFrameworkVersion Condition="'$(TargetFrameworkVersion)' == ''">v1.0</TargetFrameworkVersion>
|
||||
|
||||
<!-- This must be set before importing Microsoft.VisualBasic.targets -->
|
||||
<!--
|
||||
In Xamarin.iOS.Common.targets, just before the _CompileToNative target, we modify the
|
||||
mtouch references to ensure that we get the lib assemblies for nugets, and not the ref references:
|
||||
|
||||
https://github.com/xamarin/xamarin-macios/blob/9e31d07ecc08a64372dd562e843c3d8950d24985/msbuild/Xamarin.iOS.Tasks.Core/Xamarin.iOS.Common.targets#L784-L791
|
||||
|
||||
This logic removes nuget references, and then re-adds any copy-local dll references.
|
||||
|
||||
This works fine in executable projects, but not in library projects (aka extensions), because nugets aren't copied for library projects:
|
||||
|
||||
https://github.com/NuGet/NuGet.BuildTasks/blob/cf4b0a12cf1f75e0654f28c2a9020251c41d126a/src/Microsoft.NuGet.Build.Tasks/Microsoft.NuGet.targets#L86
|
||||
|
||||
So we need to set the CopyNuGetImplementations variable to 'true' for our library projects.
|
||||
-->
|
||||
<CopyNuGetImplementations Condition="'$(CopyNuGetImplementations)' == ''">true</CopyNuGetImplementations>
|
||||
|
||||
<!-- Enable nuget package conflict resolution -->
|
||||
<!-- This must be set before importing Microsoft.VisualBasic.targets -->
|
||||
<ResolveAssemblyConflicts>true</ResolveAssemblyConflicts>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" Condition="'$(UsingAppleNETSdk)' != 'true'" />
|
||||
<Import Project="Xamarin.iOS.AppExtension.Common.targets" />
|
||||
|
||||
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.targets"
|
||||
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.targets')"/>
|
||||
</Project>
|
|
@ -0,0 +1,34 @@
|
|||
<!--
|
||||
***********************************************************************************************
|
||||
Xamarin.iOS.VisualBasic.targets
|
||||
|
||||
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.
|
||||
|
||||
This file imports the version- and platform-specific targets for the project importing
|
||||
this file. This file also defines targets to produce an error if the specified targets
|
||||
file does not exist, but the project is built anyway (command-line or IDE build).
|
||||
|
||||
Copyright (C) 2013-2016 Xamarin. All rights reserved.
|
||||
***********************************************************************************************
|
||||
-->
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.targets"
|
||||
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.targets')"/>
|
||||
|
||||
<PropertyGroup>
|
||||
<!-- Version/fx properties -->
|
||||
<TargetFrameworkIdentifier Condition="'$(TargetFrameworkIdentifier)' == ''">Xamarin.iOS</TargetFrameworkIdentifier>
|
||||
<TargetFrameworkVersion Condition="'$(TargetFrameworkVersion)' == ''">v1.0</TargetFrameworkVersion>
|
||||
|
||||
<!-- Enable nuget package conflict resolution -->
|
||||
<!-- This must be set before importing Microsoft.VisualBasic.targets -->
|
||||
<ResolveAssemblyConflicts>true</ResolveAssemblyConflicts>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" Condition="'$(UsingAppleNETSdk)' != 'true'" />
|
||||
<Import Project="Xamarin.iOS.Common.targets" />
|
||||
|
||||
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.targets"
|
||||
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.targets')"/>
|
||||
</Project>
|
Загрузка…
Ссылка в новой задаче