Skip to content

Commit

Permalink
[tests] assert that Designer Assembly is not packaged. (#8467)
Browse files Browse the repository at this point in the history
We had a worry that the `_Microsoft.Android.Resource.Designer.dll` was
being auto included in NuGet packages.

Update the `XASdkTests.DotNetPack()` test to assert that
`_Microsoft.Android.Resource.Designer.dll` is not included in the
generated `.nuget` file.

Spoiler... turns out it wasn't :D
  • Loading branch information
dellis1972 authored Oct 30, 2023
1 parent d5c4ec0 commit a9a5d2c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ public String Say (String quote) {
nupkg.AssertDoesNotContainEntry (nupkgPath, "content/nopack.aar");
nupkg.AssertDoesNotContainEntry (nupkgPath, $"contentFiles/any/{dotnetVersion}-android{apiLevel}.0/nopack.aar");
nupkg.AssertContainsEntry (nupkgPath, $"lib/{dotnetVersion}-android{apiLevel}.0/baz.aar");
nupkg.AssertDoesNotContainEntry (nupkgPath, $"lib/{dotnetVersion}-android{apiLevel}.0/_Microsoft.Android.Resource.Designer.dll");
}

static readonly object[] DotNetTargetFrameworks = new object[] {
Expand Down

0 comments on commit a9a5d2c

Please sign in to comment.