Skip to content

Commit ca51e50

Browse files
committed
[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 57627c9 commit ca51e50

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
@@ -110,6 +110,7 @@
110110
</PropertyGroup>
111111
<PropertyGroup>
112112
<VsixPath Condition=" '$(VsixPath)' == '' ">..\..\bin\Build$(Configuration)\$(AssemblyName)-OSS-$(ProductVersion).$(XAVersionCommitCount)_$(_Branch)_$(XAVersionHash).vsix</VsixPath>
113+
<_VsixDir>$([System.IO.Path]::GetDirectoryName ($(VsixPath)))</_VsixDir>
113114
</PropertyGroup>
114115
</Target>
115116
<Target Name="_CopyToBuildConfiguration"
@@ -120,6 +121,10 @@
120121
SourceFiles="$(OutputPath)$(AssemblyName).vsix"
121122
DestinationFiles="$(VsixPath)"
122123
/>
124+
<Copy
125+
SourceFiles="$(OutputPath)Xamarin.Android.Sdk.json"
126+
DestinationFolder="$(_VsixDir)"
127+
/>
123128
</Target>
124129
<!--
125130
This *replaces* `Microsoft.VSSDK.BuildTools.15.0.26201\build\Microsoft.VSSDK.BuildTools.targets`

0 commit comments

Comments
 (0)