Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include BCL assemblies required for VS 2017 build tools #590

Merged
merged 1 commit into from Apr 15, 2021
Merged

Conversation

AArnott
Copy link
Collaborator

@AArnott AArnott commented Apr 15, 2021

Include BCL assemblies required for VS 2017 build tools

Several assemblies are required by this msbuild task but are not included in MSBuild 2017.

Adding the assemblies to the package alone is not enough, since binding redirects are also missing in msbuild.exe.config. We make up for this with a custom assembly resolver.

Fixes #589

@AArnott AArnott added this to the v3.4 milestone Apr 15, 2021
@AArnott AArnott self-assigned this Apr 15, 2021
@AArnott
Copy link
Collaborator Author

AArnott commented Apr 15, 2021

@KalleOlaviNiemitalo could you please verify that this addresses the problem? You can download the package built by this PR for testing from the deployables artifact.

@KalleOlaviNiemitalo
Copy link

@AArnott thank you. I don't know whether I'll have time to test it today. Before Monday for sure.

@AArnott
Copy link
Collaborator Author

AArnott commented Apr 15, 2021

I tried testing it myself, but it seems SDK style projects can't build with just the VS 2017 Build Tools installed. I filed a bug against them on that in the meantime.

@AArnott
Copy link
Collaborator Author

AArnott commented Apr 15, 2021

I found a way to test it. It doesn't work because another assembly is then missing. I'm working on a better fix.

@AArnott AArnott force-pushed the fix589 branch 2 times, most recently from 162443a to de7e8b4 Compare April 15, 2021 18:51
@AArnott AArnott changed the title Include System.Memory.dll for VS 2017 build tools Include BCL assemblies required for VS 2017 build tools Apr 15, 2021
Several assemblies are required by this msbuild task but are not included in MSBuild 2017.

Adding the assemblies to the package alone is not enough, since binding redirects are also missing in msbuild.exe.config. We make up for this with a custom assembly resolver.

Fixes #589
@KalleOlaviNiemitalo
Copy link

https://dev.azure.com/andrewarnott/OSS/_build/results?buildId=4555&view=artifacts&pathAsName=false&type=publishedArtifacts (#3.4.196+e22f3b6a14) seems to be the build with the latest changes.

@AArnott
Copy link
Collaborator Author

AArnott commented Apr 17, 2021

You can get it now per the instructions on the README from our CI feed, if you want it before we push to nuget.org.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FileNotFoundException for System.Memory when using Visual Studio Build Tools 2017
2 participants