Check if references file exists on disk before installing into project file #2224
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check if
paket.references
file exists on disk before allowing paket to blindly install/modify (csproj
) project files with<Import>
. Ifpaket.references
is missing from a project directory, paket should not touch any project files.Also, according to @forki:
This is currently not true as there is no check here to exclude project files (
csproj
s) from theFindAllProjects
enumeration. Additionally, this particular issue has caused some drama in issue #2029.This PR resolves the issue and makes sure that
paket.references
exists on disk before paket does anything to MSBuild project files.Also resolves #2220 by providing a way to opt-out of the
<Import>
mechanism.Thanks,
Brian
🍫 🍪 🍭 Ronald Jenkees - Stay Crunchy