|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| <Project TreatAsLocalProperty="RestoreAdditionalProjectSources" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
| <UsingTask TaskName="MapSourceRoots" AssemblyFile="$(FSharpBuildAssemblyFile)" />
|
|
|
| <PropertyGroup>
|
| <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
| </PropertyGroup>
|
|
|
| <PropertyGroup>
|
| <AlwaysUseNumericalSuffixInItemNames>true</AlwaysUseNumericalSuffixInItemNames>
|
| <DefineCommonItemSchemas Condition=" '$(DefineCommonItemSchemas)' == '' ">true</DefineCommonItemSchemas>
|
| <DefineCommonReferenceSchemas Condition=" '$(DefineCommonReferenceSchemas)' == '' ">true</DefineCommonReferenceSchemas>
|
| <DefineCommonCapabilities Condition=" '$(DefineCommonCapabilities)' == '' ">true</DefineCommonCapabilities>
|
| <SimpleResolution>true</SimpleResolution>
|
| </PropertyGroup>
|
|
|
| <ItemGroup Condition="'$(_DebugSymbolsProduced)' == 'true' and '$(PdbFile)' != ''">
|
| <_DebugSymbolsIntermediatePathTemporary Include="$(PdbFile)"/>
|
|
|
| <_DebugSymbolsIntermediatePath Include="@(_DebugSymbolsIntermediatePathTemporary->'%(RootDir)%(Directory)%(Filename).pdb')"/>
|
| </ItemGroup>
|
|
|
|
|
| <ItemGroup>
|
| <_ExplicitReference Include="$(FrameworkPathOverride)\mscorlib.dll" Condition=" '$(NoStdLib)' != 'true' " />
|
| </ItemGroup>
|
|
|
| <PropertyGroup>
|
| <TargetProfile Condition=" '$(TargetFrameworkIdentifier)' == '.NETFramework' " >mscorlib</TargetProfile>
|
| <TargetProfile Condition=" '$(TargetFrameworkIdentifier)' != '.NETFramework' " >netcore</TargetProfile>
|
| <TargetProfile Condition=" '$(TargetFrameworkIdentifier)' == '.NETStandard' and '$(_TargetFrameworkVersionWithoutV)' >= '2.0' " >netstandard</TargetProfile>
|
| </PropertyGroup>
|
|
|
| <Import Project="Microsoft.FSharp.Targets" />
|
|
|
| <PropertyGroup Condition="'$(PackProjectInputFile)' == ''">
|
| <PackProjectInputFile>$(MSBuildProjectFullPath)</PackProjectInputFile>
|
| </PropertyGroup>
|
|
|
| <PropertyGroup>
|
| <TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);PackageFSharpDesignTimeTools</TargetsForTfmSpecificContentInPackage>
|
| </PropertyGroup>
|
|
|
| <PropertyGroup Condition=" '$(DisableImplicitLibraryPacksFolder)' != 'true' ">
|
| <RestoreAdditionalProjectSources Condition="Exists('$(_FSharpCoreLibraryPacksFolder)')">$(RestoreAdditionalProjectSources);$(_FSharpCoreLibraryPacksFolder)</RestoreAdditionalProjectSources>
|
| </PropertyGroup>
|
|
|
| <Target Name="CollectFSharpDesignTimeTools" BeforeTargets="BeforeCompile" DependsOnTargets="_GetFrameworkAssemblyReferences">
|
| <ItemGroup>
|
| <PropertyNames Include = "Pkg$([System.String]::Copy('%(PackageReference.FileName)').Replace('.','_'))" Condition = " '%(PackageReference.IsFSharpDesignTimeProvider)' == 'true' and '%(PackageReference.Extension)' == '' "/>
|
| <PropertyNames Include = "Pkg$([System.String]::Copy('%(PackageReference.FileName)%(PackageReference.Extension)').Replace('.','_'))" Condition = " '%(PackageReference.IsFSharpDesignTimeProvider)' == 'true' and '%(PackageReference.Extension)' != '' "/>
|
| <FscCompilerTools Include = "$(%(PropertyNames.Identity))" />
|
| </ItemGroup>
|
| </Target>
|
|
|
| <Target Name="PackageFSharpDesignTimeTools" DependsOnTargets="_GetFrameworkAssemblyReferences">
|
| <PropertyGroup>
|
| <FSharpDesignTimeProtocol Condition = " '$(FSharpDesignTimeProtocol)' == '' ">fsharp41</FSharpDesignTimeProtocol>
|
| <FSharpToolsDirectory Condition = " '$(FSharpToolsDirectory)' == '' ">tools</FSharpToolsDirectory>
|
| </PropertyGroup>
|
|
|
| <Error Text="'$(FSharpToolsDirectory)' is an invalid value for 'FSharpToolsDirectory' valid values are 'typeproviders' and 'tools'." Condition="'$(FSharpToolsDirectory)' != 'typeproviders' and '$(FSharpToolsDirectory)' != 'tools'" />
|
| <Error Text="The 'FSharpDesignTimeProtocol' property can be only 'fsharp41'" Condition="'$(FSharpDesignTimeProtocol)' != 'fsharp41'" />
|
|
|
| <ItemGroup>
|
| <_ResolvedOutputFiles
|
| Include="%(_ResolvedProjectReferencePaths.RootDir)%(_ResolvedProjectReferencePaths.Directory)/**/*"
|
| Exclude="%(_ResolvedProjectReferencePaths.RootDir)%(_ResolvedProjectReferencePaths.Directory)/**/FSharp.Core.dll;%(_ResolvedProjectReferencePaths.RootDir)%(_ResolvedProjectReferencePaths.Directory)/**/System.ValueTuple.dll"
|
| Condition="'%(_ResolvedProjectReferencePaths.IsFSharpDesignTimeProvider)' == 'true'">
|
| <NearestTargetFramework>%(_ResolvedProjectReferencePaths.NearestTargetFramework)</NearestTargetFramework>
|
| </_ResolvedOutputFiles>
|
|
|
| <_ResolvedOutputFiles
|
| Include="@(BuiltProjectOutputGroupKeyOutput)"
|
| Condition=" '$(IsFSharpDesignTimeProvider)' == 'true' and '%(BuiltProjectOutputGroupKeyOutput->Filename)%(BuiltProjectOutputGroupKeyOutput->Extension)' != 'FSharp.Core.dll' and '%(BuiltProjectOutputGroupKeyOutput->Filename)%(BuiltProjectOutputGroupKeyOutput->Extension)' != 'System.ValueTuple.dll' ">
|
| <NearestTargetFramework>$(TargetFramework)</NearestTargetFramework>
|
| </_ResolvedOutputFiles>
|
|
|
| <TfmSpecificPackageFile Include="@(_ResolvedOutputFiles)">
|
| <PackagePath>$(FSharpToolsDirectory)/$(FSharpDesignTimeProtocol)/%(_ResolvedOutputFiles.NearestTargetFramework)/%(_ResolvedOutputFiles.FileName)%(_ResolvedOutputFiles.Extension)</PackagePath>
|
| </TfmSpecificPackageFile>
|
| </ItemGroup>
|
| </Target>
|
|
|
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| |
| |
| |
| |
| |
| |
| |
|
|
| <PropertyGroup>
|
| <DeterministicSourcePaths Condition="'$(DeterministicSourcePaths)' == '' and '$(Deterministic)' == 'true' and '$(ContinuousIntegrationBuild)' == 'true'">true</DeterministicSourcePaths>
|
| </PropertyGroup>
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| <Target Name="InitializeSourceRootMappedPaths"
|
| DependsOnTargets="_InitializeSourceRootMappedPathsFromSourceControl"
|
| Returns="@(SourceRoot)">
|
|
|
| <ItemGroup Condition="'@(_MappedSourceRoot)' != ''">
|
| <_MappedSourceRoot Remove="@(_MappedSourceRoot)" />
|
| </ItemGroup>
|
|
|
| <MapSourceRoots SourceRoots="@(SourceRoot)" Deterministic="$(DeterministicSourcePaths)">
|
| <Output TaskParameter="MappedSourceRoots" ItemName="_MappedSourceRoot" />
|
| </MapSourceRoots>
|
|
|
| <ItemGroup>
|
| <SourceRoot Remove="@(SourceRoot)" />
|
| <SourceRoot Include="@(_MappedSourceRoot)" />
|
| </ItemGroup>
|
| </Target>
|
|
|
| |
| |
|
|
| <PropertyGroup>
|
| <SourceRootMappedPathsFeatureSupported>true</SourceRootMappedPathsFeatureSupported>
|
| </PropertyGroup>
|
|
|
| |
| |
| |
|
|
| <Target Name="_InitializeSourceRootMappedPathsFromSourceControl"
|
| DependsOnTargets="InitializeSourceControlInformation"
|
| Condition="'$(SourceControlInformationFeatureSupported)' == 'true'" />
|
|
|
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| <Target Name="_SetPathMapFromSourceRoots"
|
| DependsOnTargets="InitializeSourceRootMappedPaths"
|
| BeforeTargets="CoreCompile"
|
| Condition="'$(DeterministicSourcePaths)' == 'true'">
|
|
|
| <ItemGroup>
|
| <_TopLevelSourceRoot Include="@(SourceRoot)" Condition="'%(SourceRoot.NestedRoot)' == ''">
|
| <EscapedKey>$([MSBuild]::ValueOrDefault('%(Identity)', '').Replace(',', ',,').Replace('=', '=='))</EscapedKey>
|
| <EscapedValue>$([MSBuild]::ValueOrDefault('%(MappedPath)', '').Replace(',', ',,').Replace('=', '=='))</EscapedValue>
|
| </_TopLevelSourceRoot>
|
| </ItemGroup>
|
|
|
| <PropertyGroup Condition="'@(_TopLevelSourceRoot)' != ''">
|
| |
| |
| |
| |
| |
| |
|
|
| <PathMap>@(_TopLevelSourceRoot->'%(EscapedKey)=%(EscapedValue)', ','),$(PathMap)</PathMap>
|
| </PropertyGroup>
|
| </Target>
|
| </Project>
|
|
|