SFNuGet.Build
1.0.0-alpha-00
See the version list below for details.
dotnet add package SFNuGet.Build --version 1.0.0-alpha-00
NuGet\Install-Package SFNuGet.Build -Version 1.0.0-alpha-00
<PackageReference Include="SFNuGet.Build" Version="1.0.0-alpha-00" />
paket add SFNuGet.Build --version 1.0.0-alpha-00
#r "nuget: SFNuGet.Build, 1.0.0-alpha-00"
// Install SFNuGet.Build as a Cake Addin #addin nuget:?package=SFNuGet.Build&version=1.0.0-alpha-00&prerelease // Install SFNuGet.Build as a Cake Tool #tool nuget:?package=SFNuGet.Build&version=1.0.0-alpha-00&prerelease
This is designed to be added as a dependency of an SFNuGet service package.
After you install your first SFNuGet package, you'll need to update your .sfproj.
Open the application project (.sfproj) in a text editor and import the MSBuild targets by adding this line:
<Import Project="..\packages\SFNuGet.Build.1.0.0-alpha-00\build\SFNuGet.Build.targets" Condition="Exists('..\packages\SFNuGet.Build.1.0.0-alpha-00\build\SFNuGet.Build.targets')" />
and for people who haven't run package restoration, add this under the ValidateMSBuildFiles
target:
<Error Condition="!Exists('..\packages\SFNuGet.Build.1.0.0-alpha-00\build\SFNuGet.Build.targets')" Text="Unable to find the '..\packages\SFNuGet.Build.1.0.0-alpha-00\build\SFNuGet.Build.targets' file. Please restore the 'SFNuGet.Build' NuGet package" />
You should end up with this:
<Import Project="$(ApplicationProjectTargetsPath)" Condition="Exists('$(ApplicationProjectTargetsPath)')" />
<Import Project="..\packages\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.2\build\Microsoft.VisualStudio.Azure.Fabric.Application.targets" Condition="Exists('..\packages\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.2\build\Microsoft.VisualStudio.Azure.Fabric.Application.targets')" />
<Import Project="..\packages\SFNuGet.Build.1.0.0-alpha-00\build\SFNuGet.Build.targets" Condition="Exists('..\packages\SFNuGet.Build.1.0.0-alpha-00\build\SFNuGet.Build.targets')" />
<Target Name="ValidateMSBuildFiles">
<Error Condition="!Exists('..\packages\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.2\build\Microsoft.VisualStudio.Azure.Fabric.Application.props')" Text="Unable to find the '..\packages\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.2\build\Microsoft.VisualStudio.Azure.Fabric.Application.props' file. Please restore the 'Microsoft.VisualStudio.Azure.Fabric.MSBuild' Nuget package" />
<Error Condition="!Exists('..\packages\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.2\build\Microsoft.VisualStudio.Azure.Fabric.Application.targets')" Text="Unable to find the '..\packages\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.2\build\Microsoft.VisualStudio.Azure.Fabric.Application.targets' file. Please restore the 'Microsoft.VisualStudio.Azure.Fabric.MSBuild' Nuget package" />
<Error Condition="!Exists('..\packages\SFNuGet.Build.1.0.0-alpha-00\build\SFNuGet.Build.targets')" Text="Unable to find the '..\packages\SFNuGet.Build.1.0.0-alpha-00\build\SFNuGet.Build.targets' file. Please restore the 'SFNuGet.Build' NuGet package" />
</Target>
```
(I'd love this to be automated [but-](https://github.com/Azure/service-fabric-issues/issues/558#issuecomment-356816774).)
Learn more about Target Frameworks and .NET Standard.
This package has 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 |
---|---|---|
1.0.1 | 1,120 | 1/17/2018 |
1.0.0 | 991 | 1/12/2018 |
1.0.0-alpha-00 | 838 | 1/11/2018 |
Initial release.