-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Add scripts to generate unified Nuget package #6167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
TravisEz13
merged 14 commits into
PowerShell:master
from
adityapatwardhan:nugetPackaging
Feb 26, 2018
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
4ab2f15
[Package] Add scripts to generate unified Nuget package
adityapatwardhan 6909291
Update documentation
adityapatwardhan b6e54d2
[Package] Add back function to create nuget content package
adityapatwardhan 17de320
[Package] Fix spelling error
adityapatwardhan 3527234
[Package] Address code review comments
adityapatwardhan 0fd7037
[Package] Address more code review comments
adityapatwardhan b985d2d
[Package] Added missing Start-NativeExecution blocks
adityapatwardhan b8439b3
[Package] Added MacOS build
adityapatwardhan 238e15a
[Package] Addressed code review feedback
adityapatwardhan 74c35a1
[Package] Fixed typos
adityapatwardhan 7ac1e43
[Package] Addressed code review feedback
adityapatwardhan 31438c7
Added comment for tracking bug
adityapatwardhan 1270819
Updated README.md
adityapatwardhan abd3bb4
Fix spelling error
adityapatwardhan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
docs/host-powershell/sample-dotnet2.0-powershell-crossplatform/MyApp/MyApp.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
|
|
||
| <PropertyGroup> | ||
| <TargetFramework>netcoreapp2.0</TargetFramework> | ||
| <AssemblyName>MyApp</AssemblyName> | ||
| <OutputType>Exe</OutputType> | ||
| <RuntimeIdentifiers>win10-x64;linux-x64;osx.10.12-x64</RuntimeIdentifiers> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Include="Microsoft.PowerShell.SDK" Version="6.0.1.1" /> | ||
| </ItemGroup> | ||
| </Project> | ||
25 changes: 25 additions & 0 deletions
25
docs/host-powershell/sample-dotnet2.0-powershell-crossplatform/MyApp/Program.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| using System; | ||
| using System.Management.Automation; | ||
|
|
||
| namespace Application.Test | ||
| { | ||
| public class Program | ||
| { | ||
| /// <summary> | ||
| /// Managed entry point shim, which starts the actual program | ||
| /// </summary> | ||
| public static int Main(string[] args) | ||
| { | ||
| using (PowerShell ps = PowerShell.Create()) | ||
| { | ||
| Console.WriteLine("\nEvaluating 'Get-Command Write-Output' in PS Core Runspace\n"); | ||
| var results = ps.AddScript("Get-Command Write-Output").Invoke(); | ||
| Console.WriteLine(results[0].ToString()); | ||
| } | ||
| return 0; | ||
| } | ||
| } | ||
| } |
8 changes: 8 additions & 0 deletions
8
docs/host-powershell/sample-dotnet2.0-powershell-crossplatform/NuGet.config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <configuration> | ||
| <packageSources> | ||
| <add key="nuget.org" value="https://api.nuget.org/v3/index.json" /> | ||
| <add key="dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" /> | ||
| <add key="powershell-core" value="https://powershell.myget.org/F/powershell-core/api/v3/index.json" /> | ||
| </packageSources> | ||
| </configuration> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a readme.md for this sample
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make sure it's covered by the markdown tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't add a new readme.md. Instead, add a new section to https://github.com/PowerShell/PowerShell/blob/master/docs/host-powershell/README.md
The new section should be the first section, called
PowerShell Core v6.0.1.1 and LaterThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added new section.