| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Dongbo Wang (@daxian-dbw) I think I'm a little late with the PR, but it could still be useful for a while. |
Sorry, something went wrong.
|
Ilya (@iSazonov) We still need to have TypeCatalogGen in our build. With the type catalog, you can use a .NET type without caring whether the assembly that contains it is already loaded because powershell is able to look it up in the type catalog and load the assembly automatically. So it would be a breaking change if we remove the type catalog. And TypeCatalogGen will be useful for new features too, for example, the extension methods support Staffan Gustafsson (@powercode) is working on -- we will need to do some analysis of all reference assemblies at build time to build a cache of all .NET extension methods, which will improve the runtime performance. So this PR is not late 😄 |
Sorry, something went wrong.
|
Travis Plunk (@TravisEz13) Dongbo Wang (@daxian-dbw) Could you please continue the code review? |
Sorry, something went wrong.
|
Dongbo Wang (@daxian-dbw) Are you ok with this change now? |
Sorry, something went wrong.
|
Travis Plunk (@TravisEz13) I haven't got the time to carefully review this yet. Will do it soon. |
Sorry, something went wrong.
|
Dongbo Wang (@daxian-dbw) Could you please review? |
Sorry, something went wrong.
|
Will the TypeCatalogGen target execute when we running dotnet restore or dotnet build on Microsoft.PowerShell.SDK.csproj? |
Sorry, something went wrong.
|
We call dotnet msbuild .\Microsoft.PowerShell.SDK.csproj /t:"Clean;TypeCatalogGen" "/property:DesignTimeBuild=true" in Build.psm1 in the same point as before - so the behavior must be the same. Ah, sorry - your question of a direct call - it needs to be checked explicitly because dependencies is deeply. Update: I preserve current logic - currently we call Start-PSBuild -TypeGen (and dotnet msbuild .\Microsoft.PowerShell.SDK.csproj /t:_GetDependencies "/property:DesignTimeBuild=true;_DependencyFile=$ps_inc_file" /nologo) to update the type catalog and also the type catalog file CorePsTypeCatalog.cs will be generated if it absent (or changed, or we have updates in type references.). |
Sorry, something went wrong.
|
Great. My concern was that the type catalog (both .inc and .cs) would be generated when just running Start-PSBuild for a build. I will continue the review. |
Sorry, something went wrong.
…ame="TypeCatalogGen")
|
Dongbo Wang (@daxian-dbw) Do you want to review? |
Sorry, something went wrong.
|
This PR has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs within 10 days. |
Sorry, something went wrong.
|
This PR has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs within 10 days. |
Sorry, something went wrong.
|
Should I fix or close the PR? |
Sorry, something went wrong.
|
Sorry that I completely lost the context here. I won't have much time for code review recently. I'm fine we close this PR for now and we can revive it when needed. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Related #3400
(Also it is one step to unblock #3690)
Now Microsoft.PowerShell.SDK.csproj: