This repository has been archived by the owner on Jan 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 241
Conversation
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
…targets This enables projects in the buildtools repo to use the latest targets instead of the set that comes from the buildtools package. Ideally we can fix the build sequencing in the future to also permit use of the live task DLL for everything but the Task DLL project.
Currently our projects which required runtime specific assets were referencing those from the compile graph. Fix this to actually use the runtime graph. For non-desktop EXEs we're currently hardcoding win7-x64. Desktop EXEs are AnyCPU.
I've added two projects following a similar pattern to GenFacades. They are nearly identical except the desktop version brings in mscorlib-based refs and resolves against nuget packages as a desktop project.
Referencing this package brings in a targets file that emits a CS with file to the output directory (overridable to any path chosen by the project). In practice I expect projects to override this to point to a location under source control in another project that builds the reference assembly. This can be used to automate the production/update of reference assemblies. I've chosen to emit source since any API diffs will clearly show up in source control.
<?xml version="1.0" encoding="utf-8" ?> | ||
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<GenAPITargetPath Condition="'$(GenAPITargetPath)' == ''">$(TargetDir)$(TargetName).cs</GenAPITargetPath> |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Changes LGTM |
This also updates CCI.Extensions to stable packages where available.
0f3d621
to
e2a25b0
Compare
Ok, should be feature complete now. Please have a look. |
Aliases were not working at all due to a couple bugs in the parsing logic. 1. We weren't looking for the aliased name 2. After finding the aliased name we missed a case that officialName wasn't used. 3. We weren't setting match when the alias was determined to be the winning match.
This allows folks to specify a file with a copyright/license header to be prepended to the output of GenAPI.
This allows folks to specify which APIs should be specifically excluded in addition to other API selection parameters.
Have GenAPI opt into style that is consistent with CoreFx.
The tool was using OpenWrite which will open an existing files at position 0 if it exists. If the output of the tool happened to be shorter we'd be left with garbage at the end of the file. Use CreateText instead. It will throw away the contents.
e2a25b0
to
87e907b
Compare
Wes reviewed these latest changes over the shoulder and signed off. Merging. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This change adds GenAPI to the buildtools repo and a package for shipping the desktop version.
Referencing this package brings in a targets file that emits a CS with file to the output
directory (overridable to any path chosen by the project). In practice I expect projects
to override this to point to a location under source control in another project that builds
the reference assembly.
This can be used to automate the production/update of reference assemblies.
I've chosen to emit source since any API diffs will clearly show up in source control.
This change uncovered a problem in the Microsoft.Cci package which I am fixing internally. I'll update this PR once a new version of that package is published.