|
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
| <PropertyGroup>
|
| <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
| <FSharpBuildAssemblyFile Condition=" '$(FSharpBuildAssemblyFile)' =='' ">$(MSBuildThisFileDirectory)FSharp.Build.dll</FSharpBuildAssemblyFile>
|
| </PropertyGroup>
|
|
|
| <UsingTask TaskName="Fsc" AssemblyFile="$(FSharpBuildAssemblyFile)" />
|
| <UsingTask TaskName="Fsi" AssemblyFile="$(FSharpBuildAssemblyFile)" />
|
| <UsingTask TaskName="FSharpEmbedResourceText" AssemblyFile="$(FSharpBuildAssemblyFile)" />
|
| <UsingTask TaskName="FSharpEmbedResXSource" AssemblyFile="$(FSharpBuildAssemblyFile)" />
|
| <UsingTask TaskName="CreateFSharpManifestResourceName" AssemblyFile="$(FSharpBuildAssemblyFile)" />
|
| <UsingTask TaskName="WriteCodeFragment" AssemblyFile="$(FSharpBuildAssemblyFile)" />
|
| <UsingTask TaskName="FSharpPlatformInformation" AssemblyFile="$(FSharpBuildAssemblyFile)" />
|
| <UsingTask TaskName="SubstituteText" AssemblyFile="$(FSharpBuildAssemblyFile)" />
|
|
|
| <PropertyGroup>
|
| <ImportByWildcardBeforeMicrosoftFSharpTargets Condition="'$(ImportByWildcardBeforeMicrosoftFSharpTargets)' == ''">true</ImportByWildcardBeforeMicrosoftFSharpTargets>
|
| <ImportByWildcardAfterMicrosoftFSharpTargets Condition="'$(ImportByWildcardAfterMicrosoftFSharpTargets)' == ''">true</ImportByWildcardAfterMicrosoftFSharpTargets>
|
| </PropertyGroup>
|
|
|
| <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\$(MSBuildThisFile)\ImportBefore\*" Condition="'$(ImportByWildcardBeforeMicrosoftFSharpTargets)' == 'true' and exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\$(MSBuildThisFile)\ImportBefore')"/>
|
|
|
| <PropertyGroup>
|
| <DefaultLanguageSourceExtension>.fs</DefaultLanguageSourceExtension>
|
| <Language>F#</Language>
|
| <TargetRuntime>Managed</TargetRuntime>
|
| <Tailcalls Condition="'$(Tailcalls)'==''">$(Optimize)</Tailcalls>
|
| <FrameworkRegistryBase Condition="'$(TargetFrameworkIdentifier)'=='Silverlight'">Software\Microsoft\Microsoft SDKs\$(TargetFrameworkIdentifier)</FrameworkRegistryBase>
|
|
|
| <RootNamespace Condition="'$(RootNamespace)'==''">RootNamespace</RootNamespace>
|
| <Actual32Bit Condition="'$(TargetFrameworkVersion)'=='v2.0' or '$(TargetFrameworkVersion)'=='v3.0' or '$(TargetFrameworkVersion)'=='v3.5' or '$(TargetFrameworkVersion)'=='v4.0'">false</Actual32Bit>
|
| <Actual32Bit Condition="!('$(TargetFrameworkVersion)'=='v2.0' or '$(TargetFrameworkVersion)'=='v3.0' or '$(TargetFrameworkVersion)'=='v3.5' or '$(TargetFrameworkVersion)'=='v4.0')">$(Prefer32Bit)</Actual32Bit>
|
| </PropertyGroup>
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| <PropertyGroup Condition="'$(FSharp_Shim_Present)' == 'true'">
|
| <FSharpPreferNetFrameworkTools Condition="'$(FSharpPreferNetFrameworkTools)' == ''">true</FSharpPreferNetFrameworkTools>
|
| </PropertyGroup>
|
|
|
| <PropertyGroup Condition="'$(FSharp_Shim_Present)' == 'true' and '$(FSharpPreferNetFrameworkTools)' == 'true'">
|
|
|
|
|
|
|
| <FSharpPreferAnyCpuTools Condition="'$(FSharpPreferAnyCpuTools)' == '' and '$(FSharpPrefer64BitTools)' == '' and '$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture)' == 'Arm64'">false</FSharpPreferAnyCpuTools>
|
| <FSharpPreferAnyCpuTools Condition="'$(FSharpPreferAnyCpuTools)' == '' and '$(FSharpPrefer64BitTools)' == '' and '$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture)' != 'Arm64'">true</FSharpPreferAnyCpuTools>
|
|
|
|
|
| <FSharpPreferAnyCpuTools Condition="'$(FSharpPreferAnyCpuTools)' == ''">$(FSharpPrefer64BitTools)</FSharpPreferAnyCpuTools>
|
|
|
| <FscToolPath>$(Fsc_NetFramework_ToolPath)</FscToolPath>
|
| <FscToolExe Condition="'$(FSharpPreferAnyCpuTools)' != 'false'">$(Fsc_NetFramework_AnyCpu_ToolExe)</FscToolExe>
|
| <FscToolExe Condition="'$(FSharpPreferAnyCpuTools)' == 'false'">$(Fsc_NetFramework_PlatformSpecific_ToolExe)</FscToolExe>
|
|
|
| <DotnetFscCompilerPath></DotnetFscCompilerPath>
|
| </PropertyGroup>
|
|
|
| <PropertyGroup Condition="'$(FSharp_Shim_Present)' == 'true' and '$(FSharpPreferNetFrameworkTools)' != 'true'">
|
| <FscToolPath>$(Fsc_Dotnet_ToolPath)</FscToolPath>
|
| <FscToolExe>$(Fsc_Dotnet_ToolExe)</FscToolExe>
|
| <DotnetFscCompilerPath>"$(Fsc_Dotnet_DotnetFscCompilerPath)"</DotnetFscCompilerPath>
|
| </PropertyGroup>
|
|
|
| <PropertyGroup>
|
|
|
| <FSharpPreferNetFrameworkTools Condition="'$(FSharpPreferNetFrameworkTools)'!='true'">false</FSharpPreferNetFrameworkTools>
|
| <FSharpPrefer64BitTools Condition="'$(FSharpPrefer64BitTools)'!='false'">true</FSharpPrefer64BitTools>
|
| </PropertyGroup>
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| <PropertyGroup>
|
| <CreateManifestResourceNamesDependsOn></CreateManifestResourceNamesDependsOn>
|
| </PropertyGroup>
|
|
|
| <PropertyGroup>
|
| <UsingXBuild>false</UsingXBuild>
|
| <UsingXBuild Condition="'$(MSBuildAssemblyVersion)' == ''">true</UsingXBuild>
|
| </PropertyGroup>
|
|
|
| <Target
|
| Name="CreateManifestResourceNames"
|
| Condition="'@(EmbeddedResource)' != ''"
|
| DependsOnTargets="$(CreateManifestResourceNamesDependsOn)"
|
| >
|
|
|
| <ItemGroup>
|
| <_Temporary Remove="@(_Temporary)" />
|
| </ItemGroup>
|
|
|
|
|
|
|
|
|
|
|
|
|
| <CreateFSharpManifestResourceName
|
| Condition="'@(ResxWithNoCulture)' != '' AND '$(UsingXBuild)' == 'true'"
|
| UseStandardResourceNames="$(UseStandardResourceNames)"
|
| ResourceFiles="@(ResxWithNoCulture)" RootNamespace="$(RootNamespace)">
|
| <Output TaskParameter = "ManifestResourceNames" ItemName = "ManifestResourceWithNoCultureName" />
|
| </CreateFSharpManifestResourceName>
|
|
|
| <CreateFSharpManifestResourceName
|
| Condition="'@(NonResxWithNoCulture)' != '' AND '$(UsingXBuild)' == 'true'"
|
| UseStandardResourceNames="$(UseStandardResourceNames)"
|
| ResourceFiles="@(NonResxWithNoCulture)" RootNamespace="$(RootNamespace)">
|
| <Output TaskParameter = "ManifestResourceNames" ItemName = "ManifestNonResxWithNoCulture" />
|
| </CreateFSharpManifestResourceName>
|
|
|
| <CreateFSharpManifestResourceName
|
| Condition="'@(ResxWithCulture)' != '' AND '$(UsingXBuild)' == 'true'"
|
| UseStandardResourceNames="$(UseStandardResourceNames)"
|
| ResourceFiles="@(ResxWithCulture)" RootNamespace="$(RootNamespace)">
|
| <Output TaskParameter = "ManifestResourceNames" ItemName = "ManifestResourceWithCultureName" />
|
| </CreateFSharpManifestResourceName>
|
|
|
| <CreateFSharpManifestResourceName
|
| Condition="'@(NonResxWithCulture)' != '' AND '$(UsingXBuild)' == 'true'"
|
| UseStandardResourceNames="$(UseStandardResourceNames)"
|
| ResourceFiles="@(NonResxWithCulture)" RootNamespace="$(RootNamespace)">
|
| <Output TaskParameter = "ManifestResourceNames" ItemName = "ManifestNonResxWithCulture" />
|
| </CreateFSharpManifestResourceName>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| <CreateFSharpManifestResourceName
|
| ResourceFiles="@(EmbeddedResource)"
|
| RootNamespace="$(RootNamespace)"
|
| UseStandardResourceNames="$(UseStandardResourceNames)"
|
| Condition="'%(EmbeddedResource.ManifestResourceName)' == '' and ('%(EmbeddedResource.WithCulture)' == 'false' or '%(EmbeddedResource.Type)' == 'Resx') AND '$(UsingXBuild)' == 'false'">
|
|
|
| <Output TaskParameter="ResourceFilesWithManifestResourceNames" ItemName="_Temporary" />
|
|
|
| </CreateFSharpManifestResourceName>
|
|
|
|
|
| <CreateFSharpManifestResourceName
|
| ResourceFiles="@(EmbeddedResource)"
|
| RootNamespace="$(RootNamespace)"
|
| UseStandardResourceNames="$(UseStandardResourceNames)"
|
| PrependCultureAsDirectory="false"
|
| Condition="'%(EmbeddedResource.ManifestResourceName)' == '' and '%(EmbeddedResource.WithCulture)' == 'true' and '%(EmbeddedResource.Type)' == 'Non-Resx' AND '$(UsingXBuild)' == 'false'">
|
|
|
| <Output TaskParameter="ResourceFilesWithManifestResourceNames" ItemName="_Temporary" />
|
|
|
| </CreateFSharpManifestResourceName>
|
|
|
|
|
| <ItemGroup>
|
| <EmbeddedResource Remove="@(EmbeddedResource)" Condition="'%(EmbeddedResource.ManifestResourceName)' == ''"/>
|
| <EmbeddedResource Include="@(_Temporary)" />
|
| <_Temporary Remove="@(_Temporary)" />
|
| </ItemGroup>
|
| </Target>
|
|
|
| <ItemGroup>
|
| <DocFileItem Include="$(DocumentationFile)" Condition="'$(DocumentationFile)'!=''"/>
|
| </ItemGroup>
|
|
|
| <ItemGroup Condition="'$(_DebugSymbolsProduced)' == 'true' and '$(PdbFile)' != ''">
|
| <_DebugSymbolsIntermediatePathTemporary Include="$(PdbFile)"/>
|
|
|
| <_DebugSymbolsIntermediatePath Include="@(_DebugSymbolsIntermediatePathTemporary->'%(RootDir)%(Directory)%(Filename).pdb')"/>
|
| </ItemGroup>
|
|
|
| <PropertyGroup>
|
| <CoreCompileDependsOn>_ComputeNonExistentFileProperty</CoreCompileDependsOn>
|
| </PropertyGroup>
|
|
|
| <Target Name="GenerateFSharpTextResources"
|
| BeforeTargets="CoreResGen;PrepareForBuild">
|
|
|
| <MakeDir Directories="$(IntermediateOutputPath)" />
|
|
|
|
|
| <FSharpEmbedResXSource EmbeddedResource="@(EmbeddedResource)" IntermediateOutputPath="$(IntermediateOutputPath)" TargetFramework="$(TargetFramework)">
|
| <Output TaskParameter="GeneratedSource" ItemName="_FsGeneratedResXSource" />
|
| </FSharpEmbedResXSource>
|
|
|
| <ItemGroup>
|
| <Compile Include="@(_FsGeneratedResXSource)" CompileOrder="CompileBefore" />
|
| <FsGeneratedSource Include="@(_FsGeneratedResXSource)" />
|
| <FileWrites Include="@(_FsGeneratedResXSource)" />
|
| </ItemGroup>
|
|
|
|
|
| <FSharpEmbedResourceText EmbeddedText="@(EmbeddedText)" IntermediateOutputPath="$(IntermediateOutputPath)">
|
| <Output TaskParameter="GeneratedSource" ItemName="_FsGeneratedTxtSource" />
|
| <Output TaskParameter="GeneratedResx" ItemName="_FsGeneratedResx" />
|
| </FSharpEmbedResourceText>
|
|
|
| <ItemGroup>
|
| <Compile Include="@(_FsGeneratedTxtSource)" CompileOrder="CompileBefore" />
|
| <FsGeneratedSource Include="@(_FsGeneratedTxtSource)" />
|
| <EmbeddedResource Include="@(_FsGeneratedResx)" />
|
| <FileWrites Include="@(_FsGeneratedTxtSource)" />
|
| <FileWrites Include="@(_FsGeneratedResx)" />
|
| </ItemGroup>
|
| </Target>
|
|
|
| <Target Name="FSharpSourceCodeCompileOrder">
|
|
|
| <ItemGroup>
|
| <__Sources Remove="@(__Sources)" />
|
| <__Sources Include="@(Compile->WithMetadataValue('CompileOrder', 'CompileFirst'))" />
|
| <__Sources Include="@(CompileBefore)" />
|
| <__Sources Include="@(Compile->WithMetadataValue('CompileOrder', 'CompileBefore'))" />
|
| <__Sources Include="@(Compile->WithMetadataValue('CompileOrder', ''))" />
|
| <__Sources Include="@(Compile->WithMetadataValue('CompileOrder', 'CompileAfter'))" />
|
| <__Sources Include="@(CompileAfter)" />
|
| <__Sources Include="@(Compile->WithMetadataValue('CompileOrder', 'CompileLast'))" />
|
| </ItemGroup>
|
| <ItemGroup>
|
| <Compile Remove="@(Compile)" />
|
| <CompileBefore Remove="@(CompileBefore)" />
|
| <CompileAfter Remove="@(CompileAfter)" />
|
| <Compile Include="@(__Sources)" />
|
| </ItemGroup>
|
| <Message Importance="low" Text="FSharpSourceCodeCompileOrder:Sources: '@(__Sources)'" />
|
| </Target>
|
|
|
| <Target
|
| Name="CoreCompile"
|
| Inputs="$(MSBuildAllProjects);
|
| @(CompileBefore);
|
| @(Compile);
|
| @(CompileAfter);
|
| @(FscCompilerTools);
|
| @(_CoreCompileResourceInputs);
|
| @(ManifestNonResxWithNoCultureOnDisk);
|
| $(ApplicationIcon);
|
| $(AssemblyOriginatorKeyFile);
|
| @(ReferencePathWithRefAssemblies);
|
| @(CompiledLicenseFile);
|
| @(EmbeddedDocumentation);
|
| $(Win32Resource);
|
| $(Win32Manifest);
|
| @(CustomAdditionalCompileInputs);
|
| $(VersionFile);
|
| $(KeyOriginatorFile);
|
| $(UseSource);
|
| $(LoadSource);
|
| $(SourceLink)"
|
| Outputs="@(DocFileItem);
|
| @(IntermediateAssembly);
|
| @(IntermediateRefAssembly);
|
| @(_DebugSymbolsIntermediatePath);
|
| $(NonExistentFile);
|
| @(CustomAdditionalCompileOutputs)"
|
| Returns="@(FscCommandLineArgs)"
|
| DependsOnTargets="$(CoreCompileDependsOn);FSharpSourceCodeCompileOrder"
|
| >
|
|
|
| <Error
|
| Condition="'$(SilverlightVersion)' != '' and '$(SilverlightVersion)' != 'v5.0'"
|
| Text="In this version of Visual Studio, F# for Silverlight can only target Silverlight v5.0. Use a prior version of Visual Studio to target previous versions of Silverlight with F#."
|
| />
|
|
|
| <Warning
|
| Condition="'$(Win32ResourceFile)' != '' "
|
| Text="The property <Win32ResourceFile> has been renamed to <Win32Resource>. Update your project file to ensure that the correct value is passed via the --win32res option to the F# compiler."
|
| />
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| <ItemGroup>
|
| <ActualEmbeddedResources
|
| Condition=" '$(UsingXBuild)' == true"
|
| Include="@(_CoreCompileResourceInputs);@(ManifestResourceWithNoCulture);@(ManifestNonResxWithNoCultureOnDisk);@(CompiledLicenseFile);@(AdditionalEmbeddedResource)" />
|
| <ActualEmbeddedResources
|
| Condition=" '$(UsingXBuild)' != true"
|
| Include="@(_CoreCompileResourceInputs);@(CompiledLicenseFile);@(AdditionalEmbeddedResource)" />
|
| </ItemGroup>
|
|
|
| <ItemGroup>
|
| <EmbeddedFiles Include="@(Embed)" KeepDuplicates="false" />
|
| <EmbeddedFiles Include="@(FsGeneratedSource)" KeepDuplicates="false" Condition="'$(SourceLink)'!='' or '$(EmbeddedFiles)'!='' or '$(EmbedAllSources)'!=''" />
|
| </ItemGroup>
|
|
|
|
|
|
|
| <PropertyGroup>
|
| <FscOtherFlags Condition="'$(SimpleResolution)' == 'true'">--simpleresolution $(OtherFlags)</FscOtherFlags>
|
| <FscOtherFlags Condition="'$(SimpleResolution)' != 'true'">$(OtherFlags)</FscOtherFlags>
|
| </PropertyGroup>
|
|
|
|
|
|
|
| <Fsc Condition="'%(_CoreCompileResourceInputs.WithCulture)' != 'true'"
|
| BaseAddress="$(BaseAddress)"
|
| ChecksumAlgorithm="$(PdbChecksumAlgorithm)"
|
| CodePage="$(CodePage)"
|
| CompilerTools="@(FscCompilerTools)"
|
| CompressMetadata="$(CompressMetadata)"
|
| DebugSymbols="$(DebugSymbols)"
|
| DebugType="$(DebugType)"
|
| DefineConstants="$(DefineConstants)"
|
| DelaySign="$(DelaySign)"
|
| Deterministic="$(Deterministic)"
|
| DisabledWarnings="$(NoWarn)"
|
| DocumentationFile="$(DocumentationFile)"
|
| DotnetFscCompilerPath="$(DotnetFscCompilerPath)"
|
| EmbedAllSources="$(EmbedAllSources)"
|
| Embed="@(EmbeddedFiles)"
|
| GenerateInterfaceFile="$(GenerateInterfaceFile)"
|
| HighEntropyVA="$(HighEntropyVA)"
|
| KeyFile="$(KeyOriginatorFile)"
|
| LangVersion="$(LangVersion)"
|
| LCID="$(LCID)"
|
| NoFramework="true"
|
| NoInterfaceData="$(NoInterfaceData)"
|
| NoOptimizationData="$(NoOptimizationData)"
|
| Optimize="$(Optimize)"
|
| ReflectionFree="$(ReflectionFree)"
|
| OtherFlags="$(FscOtherFlags)"
|
| OutputAssembly="@(IntermediateAssembly)"
|
| OutputRefAssembly="@(IntermediateRefAssembly)"
|
| ParallelCompilation="@(ParallelCompilation)"
|
| PathMap="$(PathMap)"
|
| PdbFile="$(PdbFile)"
|
| Platform="$(PlatformTarget)"
|
| Prefer32Bit="$(Actual32Bit)"
|
| PreferredUILang="$(PreferredUILang)"
|
| ProvideCommandLineArgs="$(ProvideCommandLineArgs)"
|
| PublicSign="$(PublicSign)"
|
| RealSig="$(RealSig)"
|
| References="@(ReferencePathWithRefAssemblies)"
|
| ReferencePath="$(ReferencePathWithRefAssemblies)"
|
| RefOnly="$(ProduceOnlyReferenceAssembly)"
|
| Resources="@(ActualEmbeddedResources)"
|
| SkipCompilerExecution="$(SkipCompilerExecution)"
|
| SourceLink="$(SourceLink)"
|
| Sources="@(Compile)"
|
| SubsystemVersion="$(SubsystemVersion)"
|
| Tailcalls="$(Tailcalls)"
|
| TargetType="$(OutputType)"
|
| TargetProfile="$(TargetProfile)"
|
| ToolExe="$(FscToolExe)"
|
| ToolPath="$(FscToolPath)"
|
| TreatWarningsAsErrors="$(TreatWarningsAsErrors)"
|
| UseStandardResourceNames="$(UseStandardResourceNames)"
|
| Utf8Output="$(Utf8Output)"
|
| VersionFile="$(VersionFile)"
|
| VisualStudioStyleErrors="$(VisualStudioStyleErrors)"
|
| WarningLevel="$(WarningLevel)"
|
| WarningsAsErrors="$(WarningsAsErrors)"
|
| WarningsNotAsErrors="$(WarningsNotAsErrors)"
|
| WarnOn="$(WarnOn)"
|
| Win32IconFile="$(ApplicationIcon)"
|
| Win32ManifestFile="$(Win32Manifest)"
|
| Win32ResourceFile="$(Win32Resource)"
|
| Nullable="$(Nullable)">
|
| <Output TaskParameter="CommandLineArgs" ItemName="FscCommandLineArgs" />
|
| </Fsc>
|
|
|
| <ItemGroup>
|
| <_CoreCompileResourceInputs Remove="@(_CoreCompileResourceInputs)" />
|
| </ItemGroup>
|
|
|
| <CallTarget Targets="$(TargetsTriggeredByCompilation)" Condition="'$(TargetsTriggeredByCompilation)' != ''" />
|
| </Target>
|
|
|
| <Import Project="$(MSBuildBinPath)\Microsoft.Common.targets" />
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
| <Target Name="GenerateTargetFrameworkMonikerAttribute" BeforeTargets="BeforeCompile" DependsOnTargets="PrepareForBuild;GetReferenceAssemblyPaths" Inputs="$(MSBuildThisFileFullPath)" Outputs="$(TargetFrameworkMonikerAssemblyAttributesPath)" Condition="'$(GenerateTargetFrameworkAttribute)' == 'true'">
|
|
|
| <PropertyGroup>
|
|
|
| <AdditionalSourcesText Condition="'$(TargetFrameworkMoniker)' != '' and '$(TargetingClr2Framework)' != 'true'">
|
| $(AdditionalSourcesText)
|
| namespace Microsoft.BuildSettings
|
| [<System.Runtime.Versioning.TargetFrameworkAttribute("$(TargetFrameworkMoniker)", FrameworkDisplayName="$(TargetFrameworkMonikerDisplayName)")>]
|
| do ()
|
| </AdditionalSourcesText>
|
| </PropertyGroup>
|
|
|
| |
|
|
| <WriteLinesToFile
|
| File="$(TargetFrameworkMonikerAssemblyAttributesPath)"
|
| Lines="$(AdditionalSourcesText)"
|
| Condition="'$(AdditionalSourcesText)' != ''"
|
| ContinueOnError="true"
|
| Overwrite="true"/>
|
|
|
| <ItemGroup Condition="'$(AdditionalSourcesText)' != ''">
|
| <Compile Include="$(TargetFrameworkMonikerAssemblyAttributesPath)"><CompileOrder>CompileBefore</CompileOrder></Compile>
|
| <_FsGeneratedTfmAttributesSource Include="$(TargetFrameworkMonikerAssemblyAttributesPath)" />
|
| </ItemGroup>
|
| </Target>
|
|
|
| |
| |
| |
| |
| |
| |
|
|
| <Target Name="RedirectFSharpCoreReferenceToNewRedistributableLocation" BeforeTargets="ResolveAssemblyReferences">
|
| <PropertyGroup>
|
| <_OldRootSdkLocation>$(MSBuildProgramFiles32)\Reference Assemblies\Microsoft\FSharp</_OldRootSdkLocation>
|
|
|
| <NewFSharpSdkLocation Condition=" '$(NewFSharpSdkLocation)' == '' ">$(VsInstallRoot)\Common7\IDE\CommonExtensions\Microsoft\FSharpSdk</NewFSharpSdkLocation>
|
|
|
| <_CoreRelativeSuffix>.NETCore\$(TargetFSharpCoreVersion)\FSharp.Core.dll</_CoreRelativeSuffix>
|
| <_FrameworkRelativeSuffix>.NETFramework\v4.0\$(TargetFSharpCoreVersion)\FSharp.Core.dll</_FrameworkRelativeSuffix>
|
| <_PortableRelativeSuffix>.NETPortable\$(TargetFSharpCoreVersion)\FSharp.Core.dll</_PortableRelativeSuffix>
|
|
|
|
|
| <_OldCoreSdkPath>$(_OldRootSdkLocation)\$(_CoreRelativeSuffix)</_OldCoreSdkPath>
|
| <_NewCoreSdkPath>$(NewFSharpSdkLocation)\$(_CoreRelativeSuffix)</_NewCoreSdkPath>
|
|
|
|
|
| <_OldFrameworkSdkPath>$(_OldRootSdkLocation)\$(_FrameworkRelativeSuffix)</_OldFrameworkSdkPath>
|
| <_NewFrameworkSdkPath>$(NewFSharpSdkLocation)\$(_FrameworkRelativeSuffix)</_NewFrameworkSdkPath>
|
|
|
|
|
| <_OldPortableSdkPath>$(_OldRootSdkLocation)\$(_PortableRelativeSuffix)</_OldPortableSdkPath>
|
| <_NewPortableSdkPath>$(NewFSharpSdkLocation)\$(_PortableRelativeSuffix)</_NewPortableSdkPath>
|
| </PropertyGroup>
|
|
|
| <ItemGroup>
|
|
|
| <Reference Condition="'%(Reference.Identity)' == 'FSharp.Core' and
|
| '%(Reference.HintPath)' == '$(_OldCoreSdkPath)' and
|
| Exists('$(_NewCoreSdkPath)')">
|
| <HintPath>$(_NewCoreSdkPath)</HintPath>
|
| </Reference>
|
|
|
|
|
| <Reference Condition="'%(Reference.Identity)' == 'FSharp.Core' and
|
| '%(Reference.HintPath)' == '$(_OldFrameworkSdkPath)' and
|
| Exists('$(_NewFrameworkSdkPath)')">
|
| <HintPath>$(_NewFrameworkSdkPath)</HintPath>
|
| </Reference>
|
|
|
|
|
| <Reference Condition="'%(Reference.Identity)' == 'FSharp.Core' and
|
| '%(Reference.HintPath)' == '$(_OldPortableSdkPath)' and
|
| Exists('$(_NewPortableSdkPath)')">
|
| <HintPath>$(_NewPortableSdkPath)</HintPath>
|
| </Reference>
|
| </ItemGroup>
|
| </Target>
|
|
|
| <Target Name="RedirectTPReferenceToNewRedistributableLocation" BeforeTargets="ResolveAssemblyReferences">
|
| <PropertyGroup>
|
| <_OldRefAssemTPLocation>Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\4.3.0.0\Type Providers\FSharp.Data.TypeProviders.dll</_OldRefAssemTPLocation>
|
| <_OldSdkTPLocationPrefix>$(MSBuildProgramFiles32)\Microsoft SDKs\F#</_OldSdkTPLocationPrefix>
|
| <_OldSdkTPLocationSuffix>Framework\v4.0\FSharp.Data.TypeProviders.dll</_OldSdkTPLocationSuffix>
|
| </PropertyGroup>
|
|
|
| <ItemGroup>
|
|
|
| <ReferenceToInboxTP Include="@(Reference)"
|
| Condition="'%(Reference.Identity)' == 'FSharp.Data.TypeProviders' and
|
| $([System.String]::new('%(Reference.HintPath)').EndsWith('$(_OldRefAssemTPLocation)', System.StringComparison.OrdinalIgnoreCase))" />
|
| <ReferenceToInboxTP Include="@(Reference)"
|
| Condition="'%(Reference.Identity)' == 'FSharp.Data.TypeProviders' and
|
| $([System.String]::new('%(Reference.HintPath)').StartsWith('$(_OldSdkTPLocationPrefix)', System.StringComparison.OrdinalIgnoreCase)) and
|
| $([System.String]::new('%(Reference.HintPath)').EndsWith('$(_OldSdkTPLocationSuffix)', System.StringComparison.OrdinalIgnoreCase))" />
|
|
|
| </ItemGroup>
|
| <Error
|
| Text="This Project references an obsolete TypeProvider: FSharp.Data.TypeProviders.dll, this was removed In Visual Studio 2019 16.7.0. Consider Switching to the NuGet package version: https://www.nuget.org/packages/FSharp.Data.TypeProviders."
|
| Condition=" '@(ReferenceToInboxTP->Count())' != '0' " />
|
| </Target>
|
|
|
| <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\$(MSBuildThisFile)\ImportAfter\*" Condition="'$(ImportByWildcardAfterMicrosoftFSharpTargets)' == 'true' and exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\$(MSBuildThisFile)\ImportAfter')"/>
|
| </Project>
|
|
|