Add Azure Artifacts instructions to readme (#297)

* Add reference to dailies.

* Tweak
This commit is contained in:
BruceHaley 2022-04-12 16:21:37 -07:00 коммит произвёл GitHub
Родитель 4eada98682
Коммит 6fe9cc2f59
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 52 добавлений и 0 удалений

Просмотреть файл

@ -28,6 +28,13 @@ For those new to Power-Fx, this video should answer many of your questions:
| Microsoft.PowerFx.Interpreter | [![BotBuilder Badge](https://buildstats.info/nuget/Microsoft.PowerFx.Interpreter?includePreReleases=true&dWidth=70)](https://www.nuget.org/packages/Microsoft.PowerFx.Interpreter/)
| Microsoft.PowerFx.Transport.Attributes | [![BotBuilder Badge](https://buildstats.info/nuget/Microsoft.PowerFx.Transport.Attributes?includePreReleases=true&dWidth=70)](https://www.nuget.org/packages/Microsoft.PowerFx.Transport.Attributes/)
## Daily Builds
Daily builds of the Power Fx packages are published to Azure Artifacts.
- The [Azure Artifacts daily feed](https://dev.azure.com/ConversationalAI/BotFramework/_packaging?_a=feed&feed=SDK) carries the most recent packages. To consume them, specify this package source:
`https://pkgs.dev.azure.com/ConversationalAI/BotFramework/_packaging/SDK/nuget/v3/index.json`
- For detailed instructions [visit this page](dailyBuilds.md).
## Samples
There are samples demonstrating how to consume Power Fx at: https://github.com/microsoft/power-fx-host-samples

45
dailyBuilds.md Normal file
Просмотреть файл

@ -0,0 +1,45 @@
# Consuming Power Fx daily builds
## Connect to the feed
Daily NuGet packages for Power Fx are published to [`Azure Artifacts`](https://dev.azure.com/ConversationalAI/BotFramework/_packaging?_a=feed&feed=SDK) (filter by "PowerFx").
Follow the configuration steps below, depending on your case:
### Using dotnet command line
Add a nuget.config file to your project in the same folder as your .csproj or .sln file
```<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="SDK" value="https://pkgs.dev.azure.com/ConversationalAI/BotFramework/_packaging/SDK/nuget/v3/index.json" />
</packageSources>
</configuration>
```
Restore packages (the interactive flag allows dotnet to prompt you for credentials)
```
dotnet restore --interactive
```
`Note: You don't need --interactive every time. dotnet will prompt you to add --interactive if it needs updated credentials.`
### Using Visual Studio
On the Tools menu, select Options > NuGet Package Manager > Package Sources. Select the green plus in the upper-right corner and enter the name and source URL below.
Name
```
SDK
```
Source
```
https://pkgs.dev.azure.com/ConversationalAI/BotFramework/_packaging/SDK/nuget/v3/index.json
```
`Note: You need to do this on every machine that needs access to your packages. Use the command line instructions above if you want to complete the setup once and check it in to your repository.`
On the Tools menu, select Options > NuGet Package Manager > Package Manager Console. Find a package you want to use, copy the Package Manager command, and paste it in the Package Manager Console.
For example:
```
Install-Package Microsoft.PowerFx.Core
```