Skip to content

Update instructions for building from source - #5072

Merged
Dongbo Wang (daxian-dbw) merged 3 commits into
PowerShell:masterfrom
kylesferrazza:build-instructions
Oct 13, 2017
Merged

Dongbo Wang (daxian-dbw) merged 3 commits into
PowerShell:masterfrom
kylesferrazza:build-instructions

Conversation

@kylesferrazza

Copy link
Copy Markdown
Contributor

Internals.md updated to use the new System.Management.Automation dll required for TypeCatalogGen.
Also, build.sh no longer exists, so I added the custom msbuild target to the instructions.

@TravisEz13

Copy link
Copy Markdown
Member

Ilya (@iSazonov) Can you review?

@iSazonov

Copy link
Copy Markdown
Collaborator

LGTM.

Out of the PR.
Dongbo Wang (@daxian-dbw) About "lack of GetAssemblies()" - it seems .Net Core 2.0 has it. Can we remove TypeCatalogGen? I don't found a tracking Issue.

@daxian-dbw

Copy link
Copy Markdown
Member

Ilya (@iSazonov) we cannot remove TypeCatalogGen. When you use a type like [System.Net.Http.HttpClient], the type catalog generated by TypeCatalogGen kicks in to figure out which assembly should be loaded. The type catalog also plays a role when you are doing a tab completion on a type like [httpcl<tab>. The reason is that GetAssemblies() can only give you the loaded assemblies, so without the type catalog, you need to make sure System.Net.Http.dll is loaded before using any types from it.

@iSazonov

Copy link
Copy Markdown
Collaborator

Dongbo Wang (@daxian-dbw) Thanks for clarify!
This comment in the code is misleading and must be corrected.

@daxian-dbw

Copy link
Copy Markdown
Member

Ilya (@iSazonov) Agreed. I will send out a PR shortly to correct it.

@daxian-dbw
Dongbo Wang (daxian-dbw) merged commit a2dc405 into PowerShell:master Oct 13, 2017
@kylesferrazza
Kyle Sferrazza (kylesferrazza) deleted the build-instructions branch October 13, 2017 19:41
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
- Use new S.M.A.dll for build instructions
- Include custom build target in `internals.md` - build.sh no longer exists
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants