Skip to content

[tests] fix failing NetStandardReferenceTest on Windows - #1470

Closed
jonathanpeppers wants to merge 1 commit into
dotnet:masterfrom
jonathanpeppers:windows-packagingtest
Closed

[tests] fix failing NetStandardReferenceTest on Windows#1470
jonathanpeppers wants to merge 1 commit into
dotnet:masterfrom
jonathanpeppers:windows-packagingtest

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Context: https://devdiv.visualstudio.com/DevDiv/_build/index?buildId=1515010&tab=ms.vss-test-web.test-result-details

Since f7c942d, the NUnit tests have been failing on Windows. The
NetStandardReferenceTest is looking for System.IO.Compression.dll
inside the APK, but it is not there.

Looking into it, I don't see anything that explicitly needs
System.IO.Compression.dll, so perhaps we really don't need to assert
that this file exists.

Context: https://devdiv.visualstudio.com/DevDiv/_build/index?buildId=1515010&tab=ms.vss-test-web.test-result-details

Since f7c942d, the NUnit tests have been failing on Windows. The
`NetStandardReferenceTest` is looking for `System.IO.Compression.dll`
inside the APK, but it is not there.

Looking into it, I don't see anything that explicitly needs
`System.IO.Compression.dll`, so perhaps we really don't need to assert
that this file exists.
@jonathanpeppers

Copy link
Copy Markdown
Member Author

It's also completely possible there is something wrong here, let me know what you think @dellis1972

@dellis1972

Copy link
Copy Markdown
Contributor

@jonathanpeppers nope. System.IO.Packaging has a dependency on System.IO.Compression. At least the lib version does. If we are not seeing that assembly then the ref version is still being used.
Probably need to make sure the Nuget lookup changes are working on windows.

@dellis1972

Copy link
Copy Markdown
Contributor

See 029a8b4

@dellis1972

Copy link
Copy Markdown
Contributor

I suspect it might be [1]. If that path starts with a \ or folder.Path does not end with one. Then the comparison will fail. We should probably make sure folder.Path ends with a Path.Seperator before we replace that string with Empty

[1] 029a8b4#diff-0288d889422bfb2c25f3263df583775bR174

@jonathanpeppers

Copy link
Copy Markdown
Member Author

Monday I’ll debug on Windows and see if I can fix it, I can update this PR with the fix.

@jonathanpeppers jonathanpeppers added the do-not-merge PR should not be merged. label Mar 24, 2018
@dellis1972

Copy link
Copy Markdown
Contributor

Replaced by #1474

@dellis1972 dellis1972 closed this Mar 26, 2018
@jonathanpeppers
jonathanpeppers deleted the windows-packagingtest branch March 26, 2018 18:35
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

do-not-merge PR should not be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants