Skip to content

Commit a08cd80

Browse files
authored
[create-vsix] Create .vsix files (#541)
Visual Studio 2017 uses `.vsix` files for Xamarin.Android SDK support. A `.vsix` file is [ZIP container with additional metadata][0], and the [Microsoft.VSSDK.BuildTools NuGet package][1] contains various MSBuild targets and tools to assist in creating `.vsix` files. Add a new `build-tools/create-vsix/create-vsix.csproj` project to create the `bin/Build$(Configuration)/Xamarin.Android.Sdk*.vsix` file, so that we can plausibly provide per-build OSS Xamarin.Android releases that work with Visual Studio 2017. Unfortunately those tools were written on Windows, and not really well tested on macOS or Linux... In particular, there are case-sensitivity and directory-separator-char issues with the tooling, necessitating that `MONO_IOMAP=all` be exported in order to run them: MONO_IOMAP=all MONO_OPTIONS=--arch=64 msbuild \ build-tools/create-vsix/create-vsix.csproj /p:CreateVsixContainer=True Meanwhile, we're still attempting to allow things to be built with `xbuild` [^3]. Thread this needle by "special-casing" the `$(BuildDependsOn)`, `$(CopyVsixManifestFileDependsOn)`, and `$(DetokenizeVsixManifestFileDependsOn)` MSBuild properties so that when the `$(CreateVsixContainer)` MSBuild property is False -- the default -- no `.vsix` package will be created, and `xbuild` will be able to build the project. Similar needle threading is needed to "support" building on Linux: the Microsoft.VSSDK.BuildTools NuGet package uses case in an inconsistent fashion -- or is it `nuget`? -- which results in [failures when building on Linux][2] because `nuget` extracts e.g.: packages/Microsoft.VSSDK.BuildTools.15.0.26201/tools/vssdk/Microsoft.VsSDK.targets while Microsoft.VSSDK.BuildTools attempts to `<Import/>` the file: packages/Microsoft.VSSDK.BuildTools.15.0.26201/tools/VSSDK/Microsoft.VsSDK.targets `vssdk` != `VSSDK` on case-sensitive filesystems, so this results in an error on Ubuntu (and presumably case-senstive macOS as well). Handle the Linux case by extending the `xbuild` case: *even when* `$(CreateVsixContainer)` is True, we won't actually build the `.vsix` unless the `$(VsSDKInstall)` directory exists, which is the `tools/VSSDK` path. Building with `$(CreateVsixContainer)` set to True will require using `msbuild` with `MONO_IOMAP=all` and `MONO_OPPTIONS=--arch=64` exported, while using a case-insensitive filesystem. The new `make create-vsix CONFIGURATIONS=Debug` target can be used to explicitly create the `Xamarin.Android.Sdk*.vsix` file. One problem with creating `.vsix` files: macOS still defaults to using a 32-bit process for `mono`, and `make create-vsix` regularly fails for me with an `OutOfMemoryException` when attempting to generate a `.vsix` file ~600-700+MB in size. (Why so large? In part because for Debug configuration we're including un-`strip`'d native libraries; `libmonosgen-2.0.dll` is *237MB* in size (!); it's closer to 5MB when `strip`'d, but any un-`strip`'d MXE-generated native libraries to the `.vsix` file quickly results in `OutOfMemoryException`s.) A 64-bit mono can be used by using `mono64` -- which isn't easily done with `msbuild` -- or by using `mono --arch=64`, which *can* be done with `msbuild` by exporting `MONO_OPTIONS=--arch=64`. The `make create-vsix` target does this. Finally, once we have a `.visx` being created, we then examine the *contents* of the `.vsix` file, which is...weird: $MSBuild/Xamarin/Android/Xamarin.Android.CSharp.targets # Desirable $ReferenceAssemblies/Microsoft/Framework/MonoAndroid/v1.0/Xamarin.Android.CSharp.targets # wat? $ReferenceAssemblies/Microsoft/Framework/MonoAndroid/v1.0/Facades/Xamarin.Android.CSharp.targets # really?! $ReferenceAssemblies/Microsoft/Framework/MonoAndroid/v7.1/Xamarin.Android.CSharp.targets # !!!! Turns Out™, the problem was due to `@(ProjectReference)`. We're (ab)using `@(ProjectReference)` to explicitly specify project dependencies, and the (implicit) project build order. Unexpectedly (forgetten?), MSBuild *also* copies the *outputs* of `@(ProjectReference)`s into the `$(OutputPath)` of the current project. Since e.g. `Mono.Posix.csproj` had a reference on `Xamarin.Android.Build.Tasks.csproj`, the result of this is that the `$(OutputPath)` of `Mono.Posix.csproj` -- `$prefix/lib/xbuild-frameworks/MonoAndroid/v1.0` -- also contained the `%(None.CopyToOutputDirectory)` items from `Xamarin.Android.Build.Tasks.csproj`. Oops. The fix is to set `%(ProjectReference.Private)` to False, which disables this copying of additional and undesirable files. [0]: https://msdn.microsoft.com/en-us/library/dd997148.aspx [1]: https://www.nuget.org/packages/Microsoft.VSSDK.BuildTools/ [2]: https://jenkins.mono-project.com/view/Xamarin.Android/job/xamarin-anroid-linux-pr-builder/297/consoleText [^3]: But for how much longer?
1 parent f53290d commit a08cd80

34 files changed

+820
-118
lines changed

Documentation/UsingJenkinsBuildArtifacts.md

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
The [**Project xamarin-android** Jenkins page][xa-jenkins-page] has a link
44
to the [Latest Azure Artifacts][xa-macOS-azure-artifacts], which contains an
5-
`oss-xamarin.android*.zip` file for every Jenkins build on macOS.
6-
The `oss-xamarin.android*.zip` file can be downloaded and used, without
5+
`oss-xamarin.android*.zip` and `Xamarin.Android.Sdk*.vsix` file for every
6+
Jenkins build on macOS. These files can be downloaded and used, without
77
requiring a local `xamarin-android` repo build.
88

99
[xa-jenkins-page]: https://jenkins.mono-project.com/view/Xamarin.Android/job/xamarin-android/
@@ -23,20 +23,15 @@ download the `oss-xamarin.android*.zip` file, e.g.
2323

2424
[oss-xa-macOS]: https://jenkins.mono-project.com/view/Xamarin.Android/job/xamarin-android/lastSuccessfulBuild/Azure/processDownloadRequest/xamarin-android/oss-xamarin.android_v7.2.99.19_Darwin-x86_64_master_3b893cd.zip
2525

26+
Windows users using Visual Studio 2017 may instead download the
27+
`Xamarin.Android.Sdk*.vsix` file.
28+
2629
macOS users may just extract this into their **Downloads** folder using
2730
**Archive Utility.app** or `unzip` from **Terminal.app**. This will result
2831
in a file such as:
2932

3033
$HOME/Downloads/oss-xamarin.android_v7.2.99.19_Darwin-x86_64_master_3b893cd/bin/Debug/bin/xabuild
3134

32-
Windows users should right-click this file within Explorer and click
33-
**Extract All...**, and in the **Extract Compressed (Zipped) Folders** dialog
34-
enter a *short* path such as `C:\xa-sdk`. This is necessary because some
35-
of the contained filenames are quite long. This will result in a path
36-
such as:
37-
38-
C:\xa-sdk\oss-xamarin.android_v7.2.99.19_Darwin-x86_64_master_3b893cd\bin\Debug\bin\mono-symbolicate.cmd
39-
4035
Linux/x86_64 users can go to the
4136
[Latest xamarin-android-linux Azure Artifacts page][xa-linux-azure-artifacts]
4237
and download the `oss-xamarin.android*.zip` file, e.g.
@@ -45,6 +40,20 @@ and download the `oss-xamarin.android*.zip` file, e.g.
4540
[xa-linux-azure-artifacts]: https://jenkins.mono-project.com/view/Xamarin.Android/job/xamarin-android-linux/lastSuccessfulBuild/Azure/
4641
[oss-xa-Linux]: https://jenkins.mono-project.com/view/Xamarin.Android/job/xamarin-android-linux/lastSuccessfulBuild/Azure/processDownloadRequest/xamarin-android/oss-xamarin.android_v7.2.99.19_Linux-x86_64_master_3b893cd.zip
4742

43+
## Windows Installation
44+
45+
Windows users can right-click the `oss-xamarin.android*.zip` file within
46+
Windows Explorer and click **Extract All...**, and in the
47+
**Extract Compressed (Zipped) Folders** dialog enter a *short* path such as
48+
`C:\xa-sdk`. This is necessary because some of the contained filenames are
49+
quite long. This will result in a path such as:
50+
51+
C:\xa-sdk\oss-xamarin.android_v7.2.99.19_Darwin-x86_64_master_3b893cd\bin\Debug\bin\mono-symbolicate.cmd
52+
53+
Alternatively, if you download the `Xamarin.Android.Sdk*.vsix` file, you can
54+
double-click the file to install the Xamarin.Android SDK extension into
55+
Visual Studio 2017.
56+
4857
# Using Jenkins Build Artifacts
4958

5059
## Command-line use: Linux and macOS

Xamarin.Android.sln

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "javadoc2mdoc", "tools\javad
107107
EndProject
108108
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Xamarin.Android.Build.Tests.Shared", "src\Xamarin.Android.Build.Tasks\Tests\Xamarin.Android.Build.Tests\Xamarin.Android.Build.Tests.Shared.shproj", "{BD1D66BF-5AC7-4926-8EBE-B2198A112EB0}"
109109
EndProject
110+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "create-vsix", "build-tools\create-vsix\create-vsix.csproj", "{94756FEB-1F64-411D-A18E-81B5158F776A}"
111+
EndProject
110112
Global
111113
GlobalSection(SolutionConfigurationPlatforms) = preSolution
112114
Debug|AnyCPU = Debug|AnyCPU
@@ -489,6 +491,14 @@ Global
489491
{A87352E6-CE7F-4346-B6B1-586AE931C0A7}.XAIntegrationDebug|AnyCPU.Build.0 = Debug|Any CPU
490492
{A87352E6-CE7F-4346-B6B1-586AE931C0A7}.XAIntegrationRelease|AnyCPU.ActiveCfg = Debug|Any CPU
491493
{A87352E6-CE7F-4346-B6B1-586AE931C0A7}.XAIntegrationRelease|AnyCPU.Build.0 = Debug|Any CPU
494+
{94756FEB-1F64-411D-A18E-81B5158F776A}.Debug|AnyCPU.ActiveCfg = Debug|Any CPU
495+
{94756FEB-1F64-411D-A18E-81B5158F776A}.Debug|AnyCPU.Build.0 = Debug|Any CPU
496+
{94756FEB-1F64-411D-A18E-81B5158F776A}.Release|AnyCPU.ActiveCfg = Release|Any CPU
497+
{94756FEB-1F64-411D-A18E-81B5158F776A}.Release|AnyCPU.Build.0 = Release|Any CPU
498+
{94756FEB-1F64-411D-A18E-81B5158F776A}.XAIntegrationDebug|AnyCPU.ActiveCfg = Debug|Any CPU
499+
{94756FEB-1F64-411D-A18E-81B5158F776A}.XAIntegrationDebug|AnyCPU.Build.0 = Debug|Any CPU
500+
{94756FEB-1F64-411D-A18E-81B5158F776A}.XAIntegrationRelease|AnyCPU.ActiveCfg = Debug|Any CPU
501+
{94756FEB-1F64-411D-A18E-81B5158F776A}.XAIntegrationRelease|AnyCPU.Build.0 = Debug|Any CPU
492502
EndGlobalSection
493503
GlobalSection(NestedProjects) = preSolution
494504
{8FF78EB6-6FC8-46A7-8A15-EBBA9045C5FA} = {E351F97D-EA4F-4E7F-AAA0-8EBB1F2A4A62}
@@ -540,6 +550,7 @@ Global
540550
{E0890301-F75F-40E7-B008-54C28B3BA542} = {864062D3-A415-4A6F-9324-5820237BA058}
541551
{A87352E6-CE7F-4346-B6B1-586AE931C0A7} = {864062D3-A415-4A6F-9324-5820237BA058}
542552
{BD1D66BF-5AC7-4926-8EBE-B2198A112EB0} = {CAB438D8-B0F5-4AF0-BEBD-9E2ADBD7B483}
553+
{94756FEB-1F64-411D-A18E-81B5158F776A} = {E351F97D-EA4F-4E7F-AAA0-8EBB1F2A4A62}
543554
EndGlobalSection
544555
GlobalSection(MonoDevelopProperties) = preSolution
545556
Policies = $0

build-tools/create-vsix/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Xamarin.Android.Sdk.pkgdef
418 KB
Binary file not shown.
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
VS SDK Notes: This resx file contains the resources that will be consumed from your package by Visual Studio.
4+
For example, Visual Studio will attempt to load resource '400' from this resource stream when it needs to
5+
load your package's icon. Because Visual Studio will always look in the VSPackage.resources stream first for
6+
resources it needs, you should put additional resources that Visual Studio will load directly into this resx
7+
file.
8+
9+
Resources that you would like to access directly from your package in a strong-typed fashion should be stored
10+
in Resources.resx or another resx file.
11+
-->
12+
<root>
13+
<!--
14+
Microsoft ResX Schema
15+
16+
Version 2.0
17+
18+
The primary goals of this format is to allow a simple XML format
19+
that is mostly human readable. The generation and parsing of the
20+
various data types are done through the TypeConverter classes
21+
associated with the data types.
22+
23+
Example:
24+
25+
... ado.net/XML headers & schema ...
26+
<resheader name="resmimetype">text/microsoft-resx</resheader>
27+
<resheader name="version">2.0</resheader>
28+
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
29+
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
30+
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
31+
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
32+
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
33+
<value>[base64 mime encoded serialized .NET Framework object]</value>
34+
</data>
35+
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
36+
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
37+
<comment>This is a comment</comment>
38+
</data>
39+
40+
There are any number of "resheader" rows that contain simple
41+
name/value pairs.
42+
43+
Each data row contains a name, and value. The row also contains a
44+
type or mimetype. Type corresponds to a .NET class that support
45+
text/value conversion through the TypeConverter architecture.
46+
Classes that don't support this are serialized and stored with the
47+
mimetype set.
48+
49+
The mimetype is used for serialized objects, and tells the
50+
ResXResourceReader how to depersist the object. This is currently not
51+
extensible. For a given mimetype the value must be set accordingly:
52+
53+
Note - application/x-microsoft.net.object.binary.base64 is the format
54+
that the ResXResourceWriter will generate, however the reader can
55+
read any of the formats listed below.
56+
57+
mimetype: application/x-microsoft.net.object.binary.base64
58+
value : The object must be serialized with
59+
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
60+
: and then encoded with base64 encoding.
61+
62+
mimetype: application/x-microsoft.net.object.soap.base64
63+
value : The object must be serialized with
64+
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
65+
: and then encoded with base64 encoding.
66+
67+
mimetype: application/x-microsoft.net.object.bytearray.base64
68+
value : The object must be serialized into a byte array
69+
: using a System.ComponentModel.TypeConverter
70+
: and then encoded with base64 encoding.
71+
-->
72+
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
73+
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
74+
<xsd:element name="root" msdata:IsDataSet="true">
75+
<xsd:complexType>
76+
<xsd:choice maxOccurs="unbounded">
77+
<xsd:element name="metadata">
78+
<xsd:complexType>
79+
<xsd:sequence>
80+
<xsd:element name="value" type="xsd:string" minOccurs="0" />
81+
</xsd:sequence>
82+
<xsd:attribute name="name" use="required" type="xsd:string" />
83+
<xsd:attribute name="type" type="xsd:string" />
84+
<xsd:attribute name="mimetype" type="xsd:string" />
85+
<xsd:attribute ref="xml:space" />
86+
</xsd:complexType>
87+
</xsd:element>
88+
<xsd:element name="assembly">
89+
<xsd:complexType>
90+
<xsd:attribute name="alias" type="xsd:string" />
91+
<xsd:attribute name="name" type="xsd:string" />
92+
</xsd:complexType>
93+
</xsd:element>
94+
<xsd:element name="data">
95+
<xsd:complexType>
96+
<xsd:sequence>
97+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
98+
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
99+
</xsd:sequence>
100+
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
101+
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
102+
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
103+
<xsd:attribute ref="xml:space" />
104+
</xsd:complexType>
105+
</xsd:element>
106+
<xsd:element name="resheader">
107+
<xsd:complexType>
108+
<xsd:sequence>
109+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
110+
</xsd:sequence>
111+
<xsd:attribute name="name" type="xsd:string" use="required" />
112+
</xsd:complexType>
113+
</xsd:element>
114+
</xsd:choice>
115+
</xsd:complexType>
116+
</xsd:element>
117+
</xsd:schema>
118+
<resheader name="resmimetype">
119+
<value>text/microsoft-resx</value>
120+
</resheader>
121+
<resheader name="version">
122+
<value>2.0</value>
123+
</resheader>
124+
<resheader name="reader">
125+
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
126+
</resheader>
127+
<resheader name="writer">
128+
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
129+
</resheader>
130+
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
131+
<data name="110" xml:space="preserve">
132+
<value>Xamarin.Android SDK</value>
133+
</data>
134+
<data name="112" xml:space="preserve">
135+
<value>Xamarin.Android Reference Assemblies and MSBuild support.</value>
136+
</data>
137+
<data name="400" type="System.Resources.ResXFileRef, System.Windows.Forms">
138+
<value>Resources/AndroidSdkPackage.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
139+
</data>
140+
</root>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[$RootKey$\InstalledProducts\AndroidSdkPackage]
2+
@="#110"
3+
"Package"="{d0e8d881-b09d-40bf-923b-b3efddc53c16}"
4+
"PID"="@PACKAGE_VERSION@.@PACKAGE_VERSION_BUILD@ (@PACKAGE_HEAD_BRANCH@/@PACKAGE_HEAD_REV@)"
5+
"ProductDetails"="#112"
6+
"LogoID"="#400"
7+
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\..\packages\Microsoft.VSSDK.BuildTools.15.0.26201\build\Microsoft.VSSDK.BuildTools.props" Condition="Exists('..\..\packages\Microsoft.VSSDK.BuildTools.15.0.26201\build\Microsoft.VSSDK.BuildTools.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{94756FEB-1F64-411D-A18E-81B5158F776A}</ProjectGuid>
8+
<OutputType>Library</OutputType>
9+
<RootNamespace>Xamarin.Android.Sdk</RootNamespace>
10+
<AssemblyName>Xamarin.Android.Sdk</AssemblyName>
11+
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
12+
<CreateVsixContainer Condition=" '$(CreateVsixContainer)' == '' ">False</CreateVsixContainer>
13+
<CopyBuildOutputToOutputDirectory>False</CopyBuildOutputToOutputDirectory>
14+
<CopyOutputSymbolsToOutputDirectory>False</CopyOutputSymbolsToOutputDirectory>
15+
<GeneratePkgDefFile>False</GeneratePkgDefFile>
16+
<IncludeAssemblyInVSIXContainer>False</IncludeAssemblyInVSIXContainer>
17+
<IncludeCopyLocalReferencesInVSIXContainer>False</IncludeCopyLocalReferencesInVSIXContainer>
18+
<IncludeDebugSymbolsInLocalVSIXDeployment>False</IncludeDebugSymbolsInLocalVSIXDeployment>
19+
<IncludeDebugSymbolsInVSIXContainer>False</IncludeDebugSymbolsInVSIXContainer>
20+
<IsProductComponent Condition=" '$(IsProductComponent)' == '' ">False</IsProductComponent>
21+
<_BuildVsix Condition=" '$(CreateVsixContainer)' == 'True' And Exists ('$(VsSDKInstall)') ">True</_BuildVsix>
22+
<_BuildVsix Condition=" '$(_BuildVsix)' == '' ">False</_BuildVsix>
23+
<OutputPath>bin\$(Configuration)</OutputPath>
24+
</PropertyGroup>
25+
<Import Project="..\..\Configuration.props" />
26+
<ItemGroup>
27+
<Content Include="Resources\AndroidSdkPackage.ico" />
28+
<Content Include="Xamarin.Android.Sdk.pkgdef">
29+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
30+
<IncludeInVSIX>True</IncludeInVSIX>
31+
</Content>
32+
</ItemGroup>
33+
<ItemGroup>
34+
<EmbeddedResource Include="VSPackage.resx">
35+
<MergeWithCTO>True</MergeWithCTO>
36+
<ManifestResourceName>VSPackage</ManifestResourceName>
37+
</EmbeddedResource>
38+
</ItemGroup>
39+
<ItemGroup>
40+
<None Include="packages.config" />
41+
<None Include="source.extension.vsixmanifest">
42+
<SubType>Designer</SubType>
43+
</None>
44+
<None Include="Xamarin.Android.Sdk.pkgdef.in" />
45+
</ItemGroup>
46+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
47+
<Import Project="$(VsSDKInstall)\Microsoft.VsSDK.targets" Condition=" '$(_BuildVsix)' == 'True' " />
48+
<PropertyGroup Condition=" '$(_BuildVsix)' == 'True' ">
49+
<BuildDependsOn>
50+
_CreateDependencies;
51+
$(BuildDependsOn);
52+
_CopyToBuildConfiguration
53+
</BuildDependsOn>
54+
</PropertyGroup>
55+
<!-- Hacks to allow "building" with xbuild -->
56+
<PropertyGroup Condition=" '$(_BuildVsix)' == 'False' ">
57+
<BuildDependsOn>
58+
_CreateDependencies;
59+
$(BuildDependsOn);
60+
</BuildDependsOn>
61+
<CopyVsixManifestFileDependsOn />
62+
<DetokenizeVsixManifestFileDependsOn />
63+
</PropertyGroup>
64+
<Import Project="create-vsix.targets" />
65+
<Import Project="..\..\packages\Microsoft.VSSDK.BuildTools.15.0.26201\build\Microsoft.VSSDK.BuildTools.targets" Condition="Exists('..\..\packages\Microsoft.VSSDK.BuildTools.15.0.26201\build\Microsoft.VSSDK.BuildTools.targets')" />
66+
<ItemGroup>
67+
<ProjectReference Include="..\xa-prep-tasks\xa-prep-tasks.csproj">
68+
<Project>{7CE69551-BD73-4726-ACAA-AAF89C84BAF8}</Project>
69+
<Name>xa-prep-tasks</Name>
70+
<ReferenceOutputAssembly>False</ReferenceOutputAssembly>
71+
<Private>False</Private>
72+
</ProjectReference>
73+
</ItemGroup>
74+
</Project>

0 commit comments

Comments
 (0)