Skip to content

Commit

Permalink
Merge pull request #61 from Azure/myget-symbols
Browse files Browse the repository at this point in the history
MyGet symbol packages publishing
  • Loading branch information
markcowl authored Oct 13, 2018
2 parents 3dab736 + 58edfe5 commit 6557ed7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions build/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Build

## Purpose
This folder contains the MSBuild `.proj` files for running certain build configurations in this repository.
4 changes: 2 additions & 2 deletions build/publish.proj
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<Target Name="All">
<Message Importance="high" Text="Publish: All started" />
<ItemGroup>
<PackagePaths Include="$(PackDir)*.nupkg" />
<PackagePaths Include="$(PackDir)*.nupkg" Exclude="$(PackDir)*symbols.nupkg" />
</ItemGroup>
<Exec Command="$(NuGet) push %(PackagePaths.FullPath) -ApiKey $(NuGetApiKey) -Source https://www.myget.org/F/azure-powershell/api/v2/package" />
<Exec Command="$(NuGet) push %(PackagePaths.FullPath) -ApiKey $(NuGetApiKey) -Source https://www.myget.org/F/azure-powershell/api/v2/package -SymbolSource https://www.myget.org/F/azure-powershell/symbols/api/v2/package -SymbolApiKey $(NuGetApiKey)" />
<PropertyGroup>
<!-- https://stackoverflow.com/a/41618979/294804 -->
<ReleaseCommand>[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://api.github.com/repos/Azure/azure-powershell-common/releases' -Headers @{ 'Authorization' = 'Token $(GitHubAccessToken)' } -Method Post -Body (ConvertTo-Json @{ 'tag_name' = '$(ReleaseVersion)'; 'target_commitish' = '$(CommitId)'; 'name' = '$(ReleaseVersion)'; 'body' = 'Azure PowerShell Common version $(ReleaseVersion)'; 'draft' = $false; 'prerelease' = $false })</ReleaseCommand>
Expand Down
7 changes: 6 additions & 1 deletion src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@ All dependencies for all projects are managed within the `src` folder for this r
- Use NuGet package manager within Visual Studio [`Right click project -> Manage NuGet Packages...`] to add/update/remove dependencies for any project

### How to add/update dependencies
- TODO: Add this information
- TODO: Add this information

## Acquiring Symbols in Visual Studio
We publish the symbols for this repository to our MyGet feed. The URL for our symbols MyGet feed is: https://www.myget.org/F/azure-powershell/symbols/

To add this feed to your Visual Studio, please follow the steps here: https://docs.myget.org/docs/reference/symbols#Consuming_symbol_packages_in_Visual_Studio

0 comments on commit 6557ed7

Please sign in to comment.