|
453 | 453 | <RootNamespace></RootNamespace> |
454 | 454 | <DocumentationFile>$(OutputPath)$(AssemblyName).xml</DocumentationFile> |
455 | 455 | </PropertyGroup> |
456 | | - |
| 456 | + |
| 457 | + <PropertyGroup> |
| 458 | + <PackageLicenceUrl Condition="'$(PackageLicenceUrl)' == ''">https://github.com/Microsoft/visualfsharp/blob/master/License.txt</PackageLicenceUrl> |
| 459 | + <PackageProjectUrl Condition="'$(PackageProjectUrl)' == ''">https://github.com/Microsoft/visualfsharp</PackageProjectUrl> |
| 460 | + <PackageVersion Condition="'$(PackageVersion)' == ''" >$(NuGetPerBuildPreReleaseVersion)</PackageVersion> |
| 461 | + <PackageAuthors Condition="'$(PackageAuthors)' == ''" >Microsoft</PackageAuthors> |
| 462 | + <PackageTags Condition="'$(PackageTags)' == ''" >Visual F# Compiler FSharp coreclr functional programming</PackageTags> |
| 463 | + </PropertyGroup> |
| 464 | + |
| 465 | + <!-- This build step copies files to the output folder while replacing build variables in the text of those file. --> |
457 | 466 | <PropertyGroup> |
458 | 467 | <CompileDependsOn>$(CompileDependsOn);CopyAndSubstituteTextFiles</CompileDependsOn> |
459 | 468 | </PropertyGroup> |
| 469 | + |
460 | 470 | <Target |
461 | 471 | Name="CopyAndSubstituteTextFiles" |
462 | 472 | Inputs="@(CopyAndSubstituteText)" |
463 | 473 | Outputs="@(CopyAndSubstituteText->'$(OutDir)%(TargetFilename)')" > |
464 | | - <Exec Command="$(FsiToolPath)\$(FsiToolExe) --exec $(MSBuildThisFileDirectory)scripts/subst.fsx --in:"%(CopyAndSubstituteText.FullPath)" --out:"$(OutDir)%(CopyAndSubstituteText.TargetFilename)" --pattern1:"%(CopyAndSubstituteText.Pattern1)" --replacement1:"%(CopyAndSubstituteText.Replacement1)" --pattern2:"%(CopyAndSubstituteText.Pattern2)" --replacement2:"%(CopyAndSubstituteText.Replacement2)" " /> |
| 474 | + <Exec Command="$(FsiToolPath)\$(FsiToolExe) --exec $(MSBuildThisFileDirectory)scripts/subst.fsx --in:"%(CopyAndSubstituteText.FullPath)" --out:"$(OutDir)%(CopyAndSubstituteText.TargetFilename)" --pattern1:"%(CopyAndSubstituteText.Pattern1)" --replacement1:"%(CopyAndSubstituteText.Replacement1)" --pattern2:"%(CopyAndSubstituteText.Pattern2)" --replacement2:"%(CopyAndSubstituteText.Replacement2)" " /> |
465 | 475 | <!-- Make sure it will get cleaned --> |
466 | 476 | <CreateItem Include="$(OutDir)%(CopyAndSubstituteText.TargetFilename)"> |
467 | 477 | <Output TaskParameter="Include" ItemName="FileWrites"/> |
|
480 | 490 | </ItemGroup> |
481 | 491 | </Target> |
482 | 492 |
|
483 | | - <Target Name="nugetrestore" BeforeTargets="Build" Condition=" '$(TargetFramework)' == 'coreclr' and '$(DOTNET_PUBLISH)' != 'true' "> |
484 | | - <Exec Command="$(MSBuildThisFileDirectory)..\.nuget\nuget.exe restore -PackagesDirectory $(MSBuildThisFileDirectory)..\packages -Config $(MSBuildThisFileDirectory)..\.nuget\NuGet.Config project.json"/> |
| 493 | + <Target Name="dotnetrestore" BeforeTargets="Build" Condition=" '$(TargetFramework)' == 'coreclr' "> |
| 494 | + <Exec Command="$(MSBuildThisFileDirectory)..\.nuget\nuget.exe restore -PackagesDirectory $(MSBuildThisFileDirectory)..\packages -Config $(MSBuildThisFileDirectory)..\.nuget\NuGet.Config project.json" /> |
| 495 | + </Target> |
| 496 | + |
| 497 | + <Target Name="nugetpack" AfterTargets="Build" Condition="'$(TargetFramework)' == 'coreclr' " |
| 498 | + Inputs="@(PackageNuspec)" Outputs='$(OutputPath.TrimEnd("\"))\nuget\"%(PackageNuspec.Filename)).nupkg'> |
| 499 | + <PropertyGroup> |
| 500 | + <PackageProperties>-prop "licenseUrl=$(PackageLicenceUrl)" -prop "version=$(PackageVersion)" -prop "authors=$(PackageAuthors)" -prop "projectUrl=$(PackageProjectUrl)" -prop "tags=$(PackageTags)"</PackageProperties> |
| 501 | + </PropertyGroup> |
| 502 | + <Exec Command='$(MSBuildThisFileDirectory)..\.nuget\nuget.exe pack %(PackageNuspec.Filename)%(PackageNuspec.Extension) -BasePath "$(OutputPath.TrimEnd("\"))" -ExcludeEmptyDirectories $(PackageProperties) -OutputDirectory "$(OutputPath.TrimEnd("\"))"' /> |
485 | 503 | </Target> |
486 | 504 |
|
487 | 505 | <Target Name="dotnetrestore" BeforeTargets="Build" Condition=" '$(TargetFramework)' == 'coreclr' and '$(DOTNET_PUBLISH)' == 'true' "> |
|
0 commit comments