f4bb13acaa
* rel/1.1.0: (41 commits) Updating the Sdk to one that includes the error surfacing work. Update NuGet to 4.3.0-preview2-4082 Update NuGet to 4.3.0-preview1-4081 and SDK to corresponding 1.1.0 based version Updating MSBuild to 15.3.0-preview-000246-05 to match VS. Updating the global.json creation to use the IFile interface and adding a unit test to cover it. Making restore use a config file so that it does not use fallback folders that may exist in the machine. Dropping a global.json when running the first run experience with a version that matches the version of the CLI being used in the command that triggered the first run. Updating the websdk version for 1.0 Trying to fix the opensuse42 test failure, where we tried to invoke a tool that target 1.0.4 where the 1.0 runtime is not available. Pinning the stage0 to the last build out of rel/1.0.1 and adding a project to download 1.0 dependencies for test assets. Updating the branding to rel/1.1.0 Dummy commit. Adding the access token to the lzma url. Dummy change to force a build. Reverting the msbuild version to the release version. Adding the web feed to nuget.config, as some packages failed to mirror and we need a build ASAP. Updating the msbuild, SDK and Web SDK versions. Dummy commit to kick off the build. the FSharp.NET.Sdk version `-bundled` contains only the Sdk dir bump f# sdk package version ...
45 lines
2 KiB
XML
45 lines
2 KiB
XML
<Project ToolsVersion="15.0" DefaultTargets="CopySdkToOutput">
|
|
<!-- workaround for https://github.com/Microsoft/msbuild/issues/885 -->
|
|
<!-- renaming the property because the original property is a global property and therefore
|
|
cannot be redefined at runtime. -->
|
|
<PropertyGroup>
|
|
<CLIBuildDllPath>$([MSBuild]::Unescape($(CLIBuildDll)))</CLIBuildDllPath>
|
|
</PropertyGroup>
|
|
|
|
<UsingTask TaskName="DotNetRestore" AssemblyFile="$(CLIBuildDllPath)" />
|
|
|
|
<Target Name="CopySdkToOutput"
|
|
DependsOnTargets="PrepareBundledSdksProps;
|
|
EnsureSdkRestored;
|
|
GetSdkItemsToCopy"
|
|
Inputs="@(SdkContent)"
|
|
Outputs="@(SdkContent->'$(SdkLayoutDirectory)/%(RecursiveDir)%(FileName)%(Extension)')">
|
|
<Copy SourceFiles="@(SdkContent)"
|
|
DestinationFiles="@(SdkContent->'$(SdkLayoutDirectory)/%(RecursiveDir)%(FileName)%(Extension)')" />
|
|
|
|
<Message Text="Copied Sdk $(SdkPackageName) from $(SdkNuPkgPath) to $(SdkLayoutDirectory)."
|
|
Importance="High" />
|
|
</Target>
|
|
|
|
<Target Name="GetSdkItemsToCopy">
|
|
<ItemGroup>
|
|
<SdkContent Include="$(SdkNuPkgPath)/**/*"
|
|
Exclude="$(SdkNuPkgPath)/$(SdkPackageName).nuspec;
|
|
$(SdkNuPkgPath)/$(SdkPackageName).$(SdkPackageVersion).nupkg;
|
|
$(SdkNuPkgPath)/$(SdkPackageName).$(SdkPackageVersion).nupkg.sha512" />
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
<Target Name="EnsureSdkRestored"
|
|
Condition="!Exists('$(SdkNuPkgPath)/$(SdkPackageName.ToLower()).nuspec')">
|
|
<DotNetRestore ToolPath="$(Stage0Directory)"
|
|
ProjectPath="$(MSBuildThisFileDirectory)/sdks/sdks.csproj"
|
|
AdditionalParameters="/p:SdkPackageName=$(SdkPackageName) /p:SdkPackageVersion=$(SdkPackageVersion)" />
|
|
</Target>
|
|
|
|
<Target Name="PrepareBundledSdksProps">
|
|
<PropertyGroup>
|
|
<SdkNuPkgPath>$(NuGetPackagesDir)/$(SdkPackageName.ToLower())/$(SdkPackageVersion.ToLower())</SdkNuPkgPath>
|
|
</PropertyGroup>
|
|
</Target>
|
|
</Project>
|