SagMor.MSBuild.RemoteReference 0.1.3

<Sdk Name="SagMor.MSBuild.RemoteReference" Version="0.1.3" />
For projects that support Sdk, copy this XML node into the project file to reference the package.

MSBuild RemoteReference SDK

This is a MSBuild Sdk that allows projects to declare references to remote assets.

Usage

On your MSBuild project insert:

    <Sdk Name="SagMor.MSBuild.RemoteReference" Version="0.1.3" />

    <ItemGroup>
        <RemoteReference Include="<Identifier>"
            Uri="<Uri>"
            Hash="<SHA256 Hash>" />
    </ItemGroup>

And MSBuild will download the file to the $(BaseRemoteReferencePath)<Identifier> folder

Example

Downloading and copying helm.exe

    <Sdk Name="SagMor.MSBuild.RemoteReference" Version="0.1.3" />
    <ItemGroup>
        <RemoteReference Include="Helm"
            Uri="https://get.helm.sh/helm-v3.3.1-windows-amd64.zip"
            Hash="ee175565a81d1288769280b00ff1b78a77b225001471d0dd76117f909e707447"
            Unzip="true" />
    </ItemGroup>

    <ItemGroup>
        <None Include="$(BaseRemoteReferencePath)Helm\windows-amd64\helm.exe">
            <Link>helm.exe</Link>
            <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
        </None>
    </ItemGroup>
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.3 425 9/17/2020