Skip to content

Commit 974ad32

Browse files
authored
[build] Copy Mono.Options.pdb to output directory (#896)
Context: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1421424/ A recent update to `Mono.Options.dll` (presumably commit c936d09) has caused a symbol check failure in our latest VS insertion. We can fix this by updating one of the tools projects that references this package to copy `Mono.Options.pdb` to the Output Directory. Once the file is in the right output path we can include it in the Xamarin.Android installers.
1 parent d1d64c1 commit 974ad32

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/generator/generator.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
<ItemGroup>
3333
<PackageReference Include="Irony" />
34-
<PackageReference Include="Mono.Options" />
34+
<PackageReference Include="Mono.Options" GeneratePathProperty="true" />
3535
<!-- Since we are sharing an OutputDirectory, and HtmlAgilityPack is also referenced by a different netstandard2.0 libary,
3636
we can explicitly reference the netstandard2.0 version here. This will also ensure symbol files are copied to the output directory. -->
3737
<PackageReference Include="HtmlAgilityPack" ExcludeAssets="Compile" GeneratePathProperty="true" />
@@ -41,6 +41,11 @@
4141
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="All" />
4242
</ItemGroup>
4343

44+
<ItemGroup>
45+
<None Condition=" '$(TargetFramework)' == 'net472' " Include="$(PkgMono_Options)\lib\net40\Mono.Options.pdb" CopyToOutputDirectory="PreserveNewest" />
46+
<None Condition=" '$(TargetFramework)' == 'net6.0' " Include="$(PkgMono_Options)\lib\netstandard2.0\Mono.Options.pdb" CopyToOutputDirectory="PreserveNewest" />
47+
</ItemGroup>
48+
4449
<ItemGroup>
4550
<ProjectReference Include="..\..\src\Java.Interop.Localization\Java.Interop.Localization.csproj" />
4651
<ProjectReference Include="..\..\src\Java.Interop.Tools.Generator\Java.Interop.Tools.Generator.csproj" />

0 commit comments

Comments
 (0)