Skip to content

Commit

Permalink
Include file versions in deps file by default when targeting .NET Cor…
Browse files Browse the repository at this point in the history
…e or .NET Standard
  • Loading branch information
dsplaisted committed Apr 20, 2018
1 parent adfc2bb commit 5f34610
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -511,13 +511,6 @@ Copyright (c) .NET Foundation. All rights reserved.

<PropertyGroup>
<PublishDepsFilePath Condition=" '$(PublishDepsFilePath)' == '' ">$(PublishDir)$(ProjectDepsFileName)</PublishDepsFilePath>
<!--
If publishing a framework-dependent app, then include the assembly and file versions of files in the
deps.json to support rolling forward to a newer shared framework. See https://github.com/dotnet/core-setup/pull/3704
Reading these versions could impact build perf, so we avoid doing it by default if we aren't publishing or if we are
publishing a self-contained app.
-->
<IncludeRuntimeFileVersions Condition =" '$(IncludeRuntimeFileVersions)' == '' And '$(SelfContained)' != 'true' ">true</IncludeRuntimeFileVersions>
</PropertyGroup>

<GenerateDepsFile ProjectPath="$(MSBuildProjectFullPath)"
Expand All @@ -540,7 +533,7 @@ Copyright (c) .NET Foundation. All rights reserved.
ExcludeFromPublishPackageReferences="@(_ExcludeFromPublishPackageReference)"
RuntimeStorePackages="@(RuntimeStorePackages)"
IsSelfContained="$(SelfContained)"
IncludeRuntimeFileVersions="$(IncludeRuntimeFileVersions)" />
IncludeRuntimeFileVersions="$(IncludeFileVersionsInDependencyFile)" />

</Target>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ Copyright (c) .NET Foundation. All rights reserved.
<!-- Default settings for .NET Core and .NET Standard build logic -->
<PropertyGroup Condition="'$(_IsNETCoreOrNETStandard)' == 'true'">
<GenerateDependencyFile Condition=" '$(GenerateDependencyFile)' == '' ">true</GenerateDependencyFile>

<!-- Assembly and file versions of runtime assets should be written to the deps.json by default, to support
runtime minor version roll-forward: https://github.com/dotnet/core-setup/issues/3546 -->
<IncludeFileVersionsInDependencyFile Condition="'$(IncludeFileVersionsInDependencyFile)' == ''">true</IncludeFileVersionsInDependencyFile>

<!-- Force .dll extension for .NETCoreApp and .NETStandard projects even if output type is exe. -->
<TargetExt Condition="'$(TargetExt)' == ''">.dll</TargetExt>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Copyright (c) .NET Foundation. All rights reserved.
FilesToSkip="@(_ConflictPackageFiles)"
CompilerOptions="@(DependencyFileCompilerOptions)"
IsSelfContained="$(SelfContained)"
IncludeRuntimeFileVersions="$(IncludeRuntimeFileVersions)">
IncludeRuntimeFileVersions="$(IncludeFileVersionsInDependencyFile)">
</GenerateDepsFile>

<ItemGroup>
Expand Down

0 comments on commit 5f34610

Please sign in to comment.