-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Correct $(IntermediateDepsFilePath) logic
#11527
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -987,10 +987,11 @@ Copyright (c) .NET Foundation. All rights reserved. | |
| <PropertyGroup> | ||
| <!-- IntermediateDepsFilePath is the location where the deps.json file is originally created | ||
| PublishDepsFilePath is the location where the deps.json resides when published | ||
| PublishDepsFilePath is empty (by default) for PublishSingleFile, since the deps.json file is embedde within the single-file bundle --> | ||
| PublishDepsFilePath is empty (by default) for PublishSingleFile, since the deps.json file is embedded within the single-file bundle --> | ||
| <IntermediateDepsFilePath Condition=" '$(PublishDepsFilePath)' != ''">$(PublishDepsFilePath)</IntermediateDepsFilePath > | ||
| <IntermediateDepsFilePath Condition=" '$(PublishDepsFilePath)' == ''">$(IntermediateOutputPath)$(ProjectDepsFileName)</IntermediateDepsFilePath > | ||
| <PublishDepsFilePath Condition=" '$(PublishDepsFilePath)' == '' And '$(PublishSingleFile)' != 'true'">$(PublishDir)$(ProjectDepsFileName)</PublishDepsFilePath> | ||
| <IntermediateDepsFilePath Condition=" '$(PublishDepsFilePath)' == '' And '$(PublishSingleFile)' != 'true'">$(PublishDir)$(ProjectDepsFileName)</IntermediateDepsFilePath> | ||
| <IntermediateDepsFilePath Condition=" '$(IntermediateDepsFilePath)' == ''">$(IntermediateOutputPath)$(ProjectDepsFileName)</IntermediateDepsFilePath > | ||
| <PublishDepsFilePath Condition=" '$(PublishDepsFilePath)' == '' And '$(PublishSingleFile)' != 'true'">$(IntermediateDepsFilePath)</PublishDepsFilePath> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the deps.json file is directly written to the publish directory, it should be removed from ResolvedFileToPublish here in the non-single-file case.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. However, I'm not sure its a good idea to write to the publish directory -- before CC: @dsplaisted |
||
| </PropertyGroup> | ||
| <ItemGroup> | ||
| <ResolvedCompileFileDefinitions Remove="@(_PublishConflictPackageFiles)" Condition="'%(_PublishConflictPackageFiles.ConflictItemType)' == 'Reference'" /> | ||
|
|
@@ -1030,7 +1031,7 @@ Copyright (c) .NET Foundation. All rights reserved. | |
| IncludeRuntimeFileVersions="$(IncludeFileVersionsInDependencyFile)" | ||
| RuntimeGraphPath="$(BundledRuntimeIdentifierGraphFile)"/> | ||
|
|
||
| <ItemGroup> | ||
| <ItemGroup Condition=" '$(IntermediateDepsFilePath)' != '$(PublishDepsFilePath)' "> | ||
| <ResolvedFileToPublish Include="$(IntermediateDepsFilePath)"> | ||
| <RelativePath>$(ProjectDepsFileName)</RelativePath> | ||
| </ResolvedFileToPublish> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please update the comments here to say:
In the single-file case, we write deps file to intermediate dir, and it is bundled into the single-file app.
In the non-single-file case, we write deps file directly in the publish directory due to legacy reasons.