Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Avoid SxS issues with NuGet tasks by IL merging #79

Merged
merged 1 commit into from
Dec 21, 2016
Merged

Conversation

kzu
Copy link
Contributor

@kzu kzu commented Dec 21, 2016

During a build, it's possible that a different version of the NuGet
assemblies are loaded by the MSBuild process (i.e. from the MSBuild
extensions path), potentially causing this package to break.

So instead of including the NuGet (and Newtonsoft.Json) assemblies
as external references, we merge them with the main tasks assemblies,
thereby isolating our tasks from those deps and ensuring that the
targets will behave as tested and shipped regardless of the installed
version of NuGet.

During a build, it's possible that a different version of the NuGet
assemblies are loaded by the MSBuild process (i.e. from the MSBuild
extensions path), potentially causing this package to break.

So instead of including the NuGet (and Newtonsoft.Json) assemblies
as external references, we merge them with the main tasks assemblies,
thereby isolating our tasks from those deps and ensuring that the
targets will behave as tested and shipped regardless of the installed
version of NuGet.
@adalon adalon merged commit bae4b02 into NuGet:dev Dec 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants