未验证 提交 3e278bca 编写于 作者: M Marcin Krystianc 提交者: GitHub

remove F# specific _GenerateCompileDependencyCache (#13306)

上级 539de850
......@@ -393,48 +393,6 @@ this file.
============================================================
-->
<!--
============================================================
Override _GenerateCompileDependencyCache
Workaround for Issue #3824 and #3739
MsBuild does some optimisations around CompileInputs
The project system erroneously uses this to determine whether
to notify language services of CommandLine Information changes.
C# accidently changes it's file lists every build ... and so
gets the notifications.
F# doesn't ... so we don't get CL notifications following rebuilds
or build.
This workaround is basically to adds the current time (in ticks)
into the hash of CoreCompileInputs.cache at design time so that
we always appear to have different options and overcome the
brokencache behaviour.
Both msbuild and the project-system will fix their code at which time
this can go away.
============================================================
-->
<Target Name="_GenerateCompileDependencyCache" DependsOnTargets="ResolveAssemblyReferences" Condition="'$(DesignTimeBuild)' == 'true'">
<ItemGroup>
<CustomAdditionalCompileInputs Include="$(IntermediateOutputPath)$(MSBuildProjectFile).CoreCompileInputs.cache" />
<CoreCompileCache Remove="@(Compile)" />
<CoreCompileCache Include="@(ReferencePath)" />
<CoreCompileCache Include="$([System.DateTime]::Now.Ticks)" />
</ItemGroup>
<Hash ItemsToHash="@(CoreCompileCache)">
<Output TaskParameter="HashResult" PropertyName="CoreCompileDependencyHash" />
</Hash>
<WriteLinesToFile Lines="$(CoreCompileDependencyHash)" File="$(IntermediateOutputPath)$(MSBuildProjectFile).CoreCompileInputs.cache" Overwrite="True" WriteOnlyWhenDifferent="True" />
<ItemGroup>
<FileWrites Include="$(IntermediateOutputPath)$(MSBuildProjectFile).CoreCompileInputs.cache" />
</ItemGroup>
</Target>
<Target Name="GenerateTargetFrameworkMonikerAttribute" BeforeTargets="BeforeCompile" DependsOnTargets="PrepareForBuild;GetReferenceAssemblyPaths" Inputs="$(MSBuildThisFileFullPath)" Outputs="$(TargetFrameworkMonikerAssemblyAttributesPath)" Condition="'$(GenerateTargetFrameworkAttribute)' == 'true'">
<PropertyGroup>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册