Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6cb64f2

Browse files
authored
Add support for easy DesignTime Assembly Packing (#4239)
* Enable pack for type providers* Add support to msbuild simplify to pack for typeprovider packages* Add transitive dependencies
1 parentdaf9b9e commit6cb64f2

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

‎src/fsharp/FSharp.Build/Microsoft.FSharp.NetSdk.targets‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,31 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
7373
<PackageReferenceInclude="FSharp.Core"Version="$(FSharpCoreImplicitPackageVersion)"Condition=" '$(DisableImplicitFSharpCoreReference)' != 'true'"></PackageReference>
7474
</ItemGroup>
7575

76+
<PropertyGroup>
77+
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);PackageFSharpDesignTimeTools</TargetsForTfmSpecificContentInPackage>
78+
</PropertyGroup>
79+
80+
<TargetName="PackageFSharpDesignTimeTools"DependsOnTargets="_GetFrameworkAssemblyReferences">
81+
<PropertyGroup>
82+
<FSharpDesignTimeProtocol Condition =" '$(FSharpDesignTimeProtocol)' == ''">fsharp41</FSharpDesignTimeProtocol>
83+
<FSharpToolsDirectory Condition =" '$(FSharpToolsDirectory)' == ''">tools</FSharpToolsDirectory>
84+
</PropertyGroup>
85+
86+
<ErrorText="'$(FSharpToolsDirectory)' is an invalid value for 'FSharpToolsDirectory' valid values are 'typeproviders' and 'tools'."Condition="'$(FSharpToolsDirectory)' != 'typeproviders' and '$(FSharpToolsDirectory)' != 'tools'" />
87+
<ErrorText="The 'FSharpDesignTimeProtocol' property can be only 'fsharp41'"Condition="'$(FSharpDesignTimeProtocol)' != 'fsharp41'" />
88+
89+
<ItemGroup>
90+
<_ResolvedProjectOutputFiles
91+
Include="%(_ResolvedProjectReferencePaths.RootDir)%(_ResolvedProjectReferencePaths.Directory)/**/*"
92+
Exclude="%(_ResolvedProjectReferencePaths.RootDir)%(_ResolvedProjectReferencePaths.Directory)/**/FSharp.Core.dll;%(_ResolvedProjectReferencePaths.RootDir)%(_ResolvedProjectReferencePaths.Directory)/**/System.ValueTuple.dll"
93+
Condition="'%(_ResolvedProjectReferencePaths.IsFSharpDesignTimeProvider)' == 'true'">
94+
<NearestTargetFramework>%(_ResolvedProjectReferencePaths.NearestTargetFramework)</NearestTargetFramework>
95+
</_ResolvedProjectOutputFiles>
96+
97+
<TfmSpecificPackageFileInclude="@(_ResolvedProjectOutputFiles)">
98+
<PackagePath>$(FSharpToolsDirectory)/$(FSharpDesignTimeProtocol)/%(_ResolvedProjectOutputFiles.NearestTargetFramework)/%(_ResolvedProjectOutputFiles.FileName)%(_ResolvedProjectOutputFiles.Extension)</PackagePath>
99+
</TfmSpecificPackageFile>
100+
</ItemGroup>
101+
</Target>
102+
76103
</Project>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp