Skip to content

Commit 51ff41b

Browse files
jonpryorvictorgarciaaprea
authored andcommitted
[create-vsix] Copy Xamarin.Android.Sdk.json to output dir (#752)
Some internal workflows require the `Xamarin.Android.Sdk.json` file in order to use the generated `.vsix`. Copy the generated `Xamarin.Android.Sdk.json` file into the directory that `$(VsixPath)` uses
1 parent 7ed6be8 commit 51ff41b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build-tools/create-vsix/create-vsix.targets

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
</PropertyGroup>
110110
<PropertyGroup>
111111
<VsixPath Condition=" '$(VsixPath)' == '' ">..\..\bin\Build$(Configuration)\$(AssemblyName)-OSS-$(ProductVersion).$(XAVersionCommitCount)_$(_Branch)_$(XAVersionHash).vsix</VsixPath>
112+
<_VsixDir>$([System.IO.Path]::GetDirectoryName ($(VsixPath)))</_VsixDir>
112113
</PropertyGroup>
113114
</Target>
114115
<Target Name="_CopyToBuildConfiguration"
@@ -119,6 +120,10 @@
119120
SourceFiles="$(OutputPath)$(AssemblyName).vsix"
120121
DestinationFiles="$(VsixPath)"
121122
/>
123+
<Copy
124+
SourceFiles="$(OutputPath)Xamarin.Android.Sdk.json"
125+
DestinationFolder="$(_VsixDir)"
126+
/>
122127
</Target>
123128
<!--
124129
This *replaces* `Microsoft.VSSDK.BuildTools.15.0.26201\build\Microsoft.VSSDK.BuildTools.targets`

0 commit comments

Comments
 (0)