-
Notifications
You must be signed in to change notification settings - Fork 245
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
Emit new package-related properties in generated C# project file. #169
Merged
Merged
Changes from 8 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
1af3741
Emit new package-related properties in generated C# project file.
mpiroc 2bd4319
Fix test expectations.
mpiroc 19f9ef8
Address feedback from code review, and allow dotnet packages to have …
mpiroc 4ca58e5
Restore accidentally deleted file.
mpiroc a350715
Merge branch 'master' into pirocchi/metadata
mpiroc e4a0611
Update README for dotnet target spec changes.
mpiroc aae26fd
Update README based on PR feedback.
mpiroc 369b6d1
Merge remote-tracking branch 'origin/master' into pirocchi/metadata
mpiroc 1939577
Merge branch 'master' into pirocchi/metadata and fix conflicts.
mpiroc 6d2f1d1
Update test expectations.
mpiroc b1ed6d8
Merge remote-tracking branch 'origin/master' into pirocchi/metadata
mpiroc 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 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 |
---|---|---|
|
@@ -86,7 +86,8 @@ Edit your `package.json`: | |
} | ||
}, | ||
"dotnet": { | ||
"namespace": "Acme.Hello" | ||
"namespace": "Acme.HelloNamespace", | ||
"packageId": "Acme.HelloPackage" | ||
}, | ||
"sphinx": { } | ||
} | ||
|
@@ -136,7 +137,8 @@ You should also see a `.jsii` file in the root: | |
"schema": "jsii/1.0", | ||
"targets": { | ||
"dotnet": { | ||
"namespace": "Acme.Hello" | ||
"namespace": "Acme.HelloNamespace", | ||
"packageId": "Acme.HelloPackage" | ||
}, | ||
"java": { | ||
"maven": { | ||
|
@@ -262,10 +264,26 @@ The following targets are currently supported: | |
|
||
* `dotnet` - packages the module as a .NET/NuGet package. Requires the following config: | ||
|
||
```json | ||
```js | ||
{ | ||
"dotnet": { | ||
"namespace": "Acme.Hello" | ||
/* Required. */ | ||
"namespace": "Acme.HelloNamespace", | ||
|
||
/* Required. */ | ||
"packageId": "Acme.HelloPackage", | ||
|
||
/* Optional. Default: Value of packageId. */ | ||
"title": "ACME Hello", | ||
|
||
/* Optional. Default: null (no icon). */ | ||
"iconUrl": "path/to/icon.svg", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add comments with defaults to all fields There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ✔️ |
||
|
||
/* Optional. Used in conjunction with assemblyOriginatorKey. Default: false. */ | ||
"signAssembly": true, | ||
|
||
/* Optional. Used in conjunction with signAssembly. Default: null. */ | ||
"assemblyOriginatorKey": "path/to/key.snk" | ||
} | ||
} | ||
``` | ||
|
This file contains 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 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 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 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 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 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 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 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 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.
Why do we have this? Isn't this the same as description? If it's not provided, what is the default?
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.
It is not--
title
is a short human-readable name, while description is more detailed. If a NuGet package has no title, it defaults to the package'spackageId
. Updated comments to reflect this.✔️