SagMor.MSBuild.RemoteReference 0.1.3

Register the RemoteReference property to fetch dependencies from a URL

Install-Package SagMor.MSBuild.RemoteReference -Version 0.1.3
dotnet add package SagMor.MSBuild.RemoteReference --version 0.1.3
<PackageReference Include="SagMor.MSBuild.RemoteReference" Version="0.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SagMor.MSBuild.RemoteReference --version 0.1.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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)&lt;Identifier&gt; 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>

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)&lt;Identifier&gt; 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>

  • .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 History

Version Downloads Last updated
0.1.3 72 9/17/2020