38 lines
1.7 KiB
XML
Executable File
38 lines
1.7 KiB
XML
Executable File
<!-- Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information. -->
|
|
|
|
<!--
|
|
***********************************************************************************************
|
|
Microsoft.FSharp.Overrides.NetSdk.targets
|
|
|
|
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
|
|
created a backup copy. Incorrect changes to this file will make it
|
|
impossible to load or build your projects from the command-line or the IDE.
|
|
|
|
***********************************************************************************************
|
|
-->
|
|
|
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
<PropertyGroup>
|
|
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="CoreGenerateAssemblyInfo"
|
|
Condition="'$(Language)'=='F#'"
|
|
DependsOnTargets="CreateGeneratedAssemblyInfoInputsCacheFile"
|
|
Inputs="$(GeneratedAssemblyInfoInputsCacheFile)"
|
|
Outputs="$(GeneratedAssemblyInfoFile)">
|
|
<ItemGroup>
|
|
<!-- Ensure the generated assemblyinfo file is not already part of the Compile sources, as a workaround for https://github.com/dotnet/sdk/issues/114 -->
|
|
<Compile Remove="$(GeneratedAssemblyInfoFile)" />
|
|
</ItemGroup>
|
|
|
|
<WriteCodeFragment AssemblyAttributes="@(AssemblyAttribute)" Language="$(Language)" OutputFile="$(GeneratedAssemblyInfoFile)">
|
|
<Output TaskParameter="OutputFile" ItemName="CompileBefore" />
|
|
<Output TaskParameter="OutputFile" ItemName="FsGeneratedSource" />
|
|
<Output TaskParameter="OutputFile" ItemName="FileWrites" />
|
|
</WriteCodeFragment>
|
|
</Target>
|
|
|
|
</Project>
|